AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
#include "ntv2macdriverinterface.h"
#include "ntv2nubaccess.h"
#include "ntv2utils.h"
#include <time.h>
#include <syslog.h>
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <iomanip>
#include "ntv2devicefeatures.h"
#include "ajabase/system/lock.h"
#include "ajabase/system/debug.h"
#include "ajabase/system/atomic.h"
#include "ajabase/system/systemtime.h"
#include <mach/mach.h>
Go to the source code of this file.
Macros | |
#define | HEX2(__x__) xHEX0N(0xFF & uint8_t (__x__),2) |
#define | HEX4(__x__) xHEX0N(0xFFFF & uint16_t(__x__),4) |
#define | HEX8(__x__) xHEX0N(0xFFFFFFFF & uint32_t(__x__),8) |
#define | HEX16(__x__) xHEX0N(uint64_t(__x__),16) |
#define | KR(_kr_) "kernResult=" << HEX8(_kr_) << "(" << GetKernErrStr(_kr_) << ")" |
#define | INSTP(_p_) HEX0N(uint64_t(_p_),16) |
#define | DIFAIL(__x__) AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
#define | DIWARN(__x__) AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
#define | DINOTE(__x__) AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
#define | DIINFO(__x__) AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
#define | DIDBG(__x__) AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
#define | MDIFAIL(__x__) AJA_sERROR (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
#define | MDIWARN(__x__) AJA_sWARNING(AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
#define | MDINOTE(__x__) AJA_sNOTICE (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
#define | MDIINFO(__x__) AJA_sINFO (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
#define | MDIDBG(__x__) AJA_sDEBUG (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
#define | OS_IOMasterPort(_x_, _y_) ::IOMasterPort ((_x_), (_y_)) |
#define | OS_IOServiceOpen(_w_, _x_, _y_, _z_) ::IOServiceOpen((_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOServiceClose(_x_) ::IOServiceClose ((_x_)) |
#define | OS_IOServiceMatching(_x_) ::IOServiceMatching ((_x_)) |
#define | OS_IOServiceNameMatching(_x_) ::IOServiceNameMatching((_x_)) |
#define | OS_IOServiceGetMatchingServices(_x_, _y_, _z_) ::IOServiceGetMatchingServices ((_x_), (_y_), (_z_)) |
#define | OS_IOIteratorNext(_x_) ::IOIteratorNext ((_x_)) |
#define | OS_IOObjectRelease(_x_) ::IOObjectRelease ((_x_)) |
#define | OS_IORegistryEntryCreateCFProperty(_w_, _x_, _y_, _z_) ::IORegistryEntryCreateCFProperty ((_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOConnectCallMethod(_q_, _r_, _s_, _t_, _u_, _v_, _w_, _x_, _y_, _z_) ::IOConnectCallMethod ((_q_), (_r_), (_s_), (_t_), (_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOConnectCallScalarMethod(_u_, _v_, _w_, _x_, _y_, _z_) ::IOConnectCallScalarMethod ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOConnectCallStructMethod(_u_, _v_, _w_, _x_, _y_, _z_) ::IOConnectCallStructMethod ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOConnectMapMemory(_u_, _v_, _w_, _x_, _y_, _z_) ::IOConnectMapMemory ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
#define | OS_IOKitGetBusyState(_x_, _y_) ::IOKitGetBusyState ((_x_), (_y_)) |
#define | OS_IOKitWaitQuiet(_x_, _y_) ::IOKitWaitQuiet ((_x_), (_y_)) |
Functions | |
static const char * | GetKernErrStr (const kern_return_t inError) |
static const string | sNTV2PCIKEXTClassName ("com_aja_iokit_ntv2") |
static const string | sNTV2PCIDEXTName ("AJANTV2") |
const uint32_t | kAgentAppFcc (((((uint32_t)( 'A'))<< 24)|(((uint32_t)( 'j'))<< 16)|(((uint32_t)( 'a'))<< 8)|(((uint32_t)( 'A'))<< 0))) |
Variables | |
static AJALock | gLegalDevIDsLock |
static NTV2DeviceIDSet | gLegalDeviceIDs |
static const uint32_t | sIntEnumToStatKeys [] |
#define DIDBG | ( | __x__ | ) | AJA_sDEBUG (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
Definition at line 54 of file ntv2macdriverinterface.cpp.
#define DIFAIL | ( | __x__ | ) | AJA_sERROR (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
Definition at line 50 of file ntv2macdriverinterface.cpp.
#define DIINFO | ( | __x__ | ) | AJA_sINFO (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
Definition at line 53 of file ntv2macdriverinterface.cpp.
#define DINOTE | ( | __x__ | ) | AJA_sNOTICE (AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
Definition at line 52 of file ntv2macdriverinterface.cpp.
#define DIWARN | ( | __x__ | ) | AJA_sWARNING(AJA_DebugUnit_DriverInterface, INSTP(this) << "::" << AJAFUNC << ": " << __x__) |
Definition at line 51 of file ntv2macdriverinterface.cpp.
#define HEX16 | ( | __x__ | ) | xHEX0N(uint64_t(__x__),16) |
Definition at line 46 of file ntv2macdriverinterface.cpp.
#define HEX2 | ( | __x__ | ) | xHEX0N(0xFF & uint8_t (__x__),2) |
Definition at line 43 of file ntv2macdriverinterface.cpp.
#define HEX4 | ( | __x__ | ) | xHEX0N(0xFFFF & uint16_t(__x__),4) |
Definition at line 44 of file ntv2macdriverinterface.cpp.
#define HEX8 | ( | __x__ | ) | xHEX0N(0xFFFFFFFF & uint32_t(__x__),8) |
Definition at line 45 of file ntv2macdriverinterface.cpp.
#define INSTP | ( | _p_ | ) | HEX0N(uint64_t(_p_),16) |
Definition at line 48 of file ntv2macdriverinterface.cpp.
#define KR | ( | _kr_ | ) | "kernResult=" << HEX8(_kr_) << "(" << GetKernErrStr(_kr_) << ")" |
Definition at line 47 of file ntv2macdriverinterface.cpp.
#define MDIDBG | ( | __x__ | ) | AJA_sDEBUG (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
Definition at line 60 of file ntv2macdriverinterface.cpp.
#define MDIFAIL | ( | __x__ | ) | AJA_sERROR (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
Definition at line 56 of file ntv2macdriverinterface.cpp.
#define MDIINFO | ( | __x__ | ) | AJA_sINFO (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
Definition at line 59 of file ntv2macdriverinterface.cpp.
#define MDINOTE | ( | __x__ | ) | AJA_sNOTICE (AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
Definition at line 58 of file ntv2macdriverinterface.cpp.
#define MDIWARN | ( | __x__ | ) | AJA_sWARNING(AJA_DebugUnit_DriverInterface, AJAFUNC << ": " << __x__) |
Definition at line 57 of file ntv2macdriverinterface.cpp.
#define OS_IOConnectCallMethod | ( | _q_, | |
_r_, | |||
_s_, | |||
_t_, | |||
_u_, | |||
_v_, | |||
_w_, | |||
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IOConnectCallMethod ((_q_), (_r_), (_s_), (_t_), (_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
Definition at line 74 of file ntv2macdriverinterface.cpp.
#define OS_IOConnectCallScalarMethod | ( | _u_, | |
_v_, | |||
_w_, | |||
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IOConnectCallScalarMethod ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
Definition at line 75 of file ntv2macdriverinterface.cpp.
#define OS_IOConnectCallStructMethod | ( | _u_, | |
_v_, | |||
_w_, | |||
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IOConnectCallStructMethod ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
Definition at line 76 of file ntv2macdriverinterface.cpp.
#define OS_IOConnectMapMemory | ( | _u_, | |
_v_, | |||
_w_, | |||
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IOConnectMapMemory ((_u_), (_v_), (_w_), (_x_), (_y_), (_z_)) |
Definition at line 77 of file ntv2macdriverinterface.cpp.
#define OS_IOIteratorNext | ( | _x_ | ) | ::IOIteratorNext ((_x_)) |
Definition at line 71 of file ntv2macdriverinterface.cpp.
#define OS_IOKitGetBusyState | ( | _x_, | |
_y_ | |||
) | ::IOKitGetBusyState ((_x_), (_y_)) |
Definition at line 78 of file ntv2macdriverinterface.cpp.
#define OS_IOKitWaitQuiet | ( | _x_, | |
_y_ | |||
) | ::IOKitWaitQuiet ((_x_), (_y_)) |
Definition at line 79 of file ntv2macdriverinterface.cpp.
#define OS_IOMasterPort | ( | _x_, | |
_y_ | |||
) | ::IOMasterPort ((_x_), (_y_)) |
Definition at line 65 of file ntv2macdriverinterface.cpp.
#define OS_IOObjectRelease | ( | _x_ | ) | ::IOObjectRelease ((_x_)) |
Definition at line 72 of file ntv2macdriverinterface.cpp.
#define OS_IORegistryEntryCreateCFProperty | ( | _w_, | |
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IORegistryEntryCreateCFProperty ((_w_), (_x_), (_y_), (_z_)) |
Definition at line 73 of file ntv2macdriverinterface.cpp.
#define OS_IOServiceClose | ( | _x_ | ) | ::IOServiceClose ((_x_)) |
Definition at line 67 of file ntv2macdriverinterface.cpp.
#define OS_IOServiceGetMatchingServices | ( | _x_, | |
_y_, | |||
_z_ | |||
) | ::IOServiceGetMatchingServices ((_x_), (_y_), (_z_)) |
Definition at line 70 of file ntv2macdriverinterface.cpp.
#define OS_IOServiceMatching | ( | _x_ | ) | ::IOServiceMatching ((_x_)) |
Definition at line 68 of file ntv2macdriverinterface.cpp.
#define OS_IOServiceNameMatching | ( | _x_ | ) | ::IOServiceNameMatching((_x_)) |
Definition at line 69 of file ntv2macdriverinterface.cpp.
#define OS_IOServiceOpen | ( | _w_, | |
_x_, | |||
_y_, | |||
_z_ | |||
) | ::IOServiceOpen((_w_), (_x_), (_y_), (_z_)) |
Definition at line 66 of file ntv2macdriverinterface.cpp.
|
static |
Definition at line 1430 of file ntv2macdriverinterface.cpp.
const uint32_t kAgentAppFcc | ( | ((((uint32_t)('A'))<< 24)|(((uint32_t)('j'))<< 16)|(((uint32_t)('a'))<< 8)|(((uint32_t)('A'))<< 0)) | ) |
|
static |
|
static |
|
static |
Definition at line 36 of file ntv2macdriverinterface.cpp.
|
static |
Definition at line 35 of file ntv2macdriverinterface.cpp.
|
static |
Definition at line 700 of file ntv2macdriverinterface.cpp.