00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef L1394RESOURCE_H
00018 #define L1394RESOURCE_H
00019
00020 using namespace std;
00021
00022 namespace L1394{
00023
00024
00025 #define MAX_READ 10 //change if need
00026 #define MAX_WRITE 10 //change if need
00027 #define DELAY 80 //change if need
00028
00029
00030
00031 #define SUBUNIT_VIDEO_MONITOR 0x00
00032 #define SUBUNIT_DISC 0x03
00033 #define SUBUNIT_TAPE 0x04
00034 #define SUBUNIT_TUNER 0x05
00035 #define SUBUNIT_VIDEO_CAMERA 0x07
00036
00037 enum DeviceType {_Camera = 0, _Vcr, _VideoMonitor, _Disc, _Tuner};
00038 enum NodeType {_UnknownNode = 0, _Card, _FcpNode, _DccNode, _SBP2Node, _PhyNode};
00039 enum EVENT{BUSRESET = 0, NODE_DESTROY, NODE_DISABLED, NODE_ENABLED};
00040
00041
00042
00043 #define FCP_COMMAND_ADDR 0xFFFFF0000B00ULL
00044 #define FCP_RESPONSE_ADDR 0xFFFFF0000D00ULL
00045
00046
00047 #define CONTROL 0x00
00048 #define STATUS 0x01
00049 #define SPECIFIC_INQUIRY 0x02
00050 #define NOTIFY 0x03
00051 #define GENERAL_INQUIRY 0x04
00052
00053
00054 #define NOT_IMPLEMENTED 0x08
00055 #define ACCEPTED 0x09
00056 #define REJECTED 0x0a
00057 #define IN_TRANSACTION 0x0b
00058 #define IMPLEMENTED 0x0c
00059 #define CHANGED 0x0d
00060 #define INTERIM 0x0f
00061
00062
00063 #define L1394_SUCCESS 1
00064 #define L1394_FAILED -1
00065
00066 }
00067 #endif
00068