From e656d9f2f6c50bf3a17c67da7e0d131ff7f94302 Mon Sep 17 00:00:00 2001 From: aeb Date: Wed, 22 Nov 2000 23:12:56 +0000 Subject: [PATCH] Added ieee1394.h header. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@40 53a565d1-3bb7-0310-b661-cf11e63c67ab --- NEWS | 1 + src/Makefile.am | 2 +- src/ieee1394.h | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/ieee1394.h diff --git a/NEWS b/NEWS index 0845ec7..0e34080 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ Version 0.8: +- added libraw1394/ieee1394.h with useful defines (especially ack and rcodes) - function to query isochronous resource manager ID - functions for isochronous sending - new raw1394_reset_bus() function to reset the bus diff --git a/src/Makefile.am b/src/Makefile.am index 78fb027..c10cae5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ libraw1394_la_SOURCES = \ raw1394_private.h # headers to be installed -pkginclude_HEADERS = raw1394.h csr.h +pkginclude_HEADERS = raw1394.h csr.h ieee1394.h # testlibraw noinst_PROGRAMS = testlibraw diff --git a/src/ieee1394.h b/src/ieee1394.h new file mode 100644 index 0000000..96a8308 --- /dev/null +++ b/src/ieee1394.h @@ -0,0 +1,36 @@ +#ifndef _LIBRAW1394_IEEE1394_H +#define _LIBRAW1394_IEEE1394_H + +#define L1394_RCODE_COMPLETE 0x0 +#define L1394_RCODE_CONFLICT_ERROR 0x4 +#define L1394_RCODE_DATA_ERROR 0x5 +#define L1394_RCODE_TYPE_ERROR 0x6 +#define L1394_RCODE_ADDRESS_ERROR 0x7 + +#define L1394_ACK_COMPLETE 0x1 +#define L1394_ACK_PENDING 0x2 +#define L1394_ACK_BUSY_X 0x4 +#define L1394_ACK_BUSY_A 0x5 +#define L1394_ACK_BUSY_B 0x6 +#define L1394_ACK_DATA_ERROR 0xd +#define L1394_ACK_TYPE_ERROR 0xe + +#define L1394_SPEED_100 0x0 +#define L1394_SPEED_200 0x1 +#define L1394_SPEED_400 0x2 + +#define L1394_SELFID_PWRCL_NO_POWER 0x0 +#define L1394_SELFID_PWRCL_PROVIDE_15W 0x1 +#define L1394_SELFID_PWRCL_PROVIDE_30W 0x2 +#define L1394_SELFID_PWRCL_PROVIDE_45W 0x3 +#define L1394_SELFID_PWRCL_USE_1W 0x4 +#define L1394_SELFID_PWRCL_USE_3W 0x5 +#define L1394_SELFID_PWRCL_USE_6W 0x6 +#define L1394_SELFID_PWRCL_USE_10W 0x7 + +#define L1394_SELFID_PORT_CHILD 0x3 +#define L1394_SELFID_PORT_PARENT 0x2 +#define L1394_SELFID_PORT_NCONN 0x1 +#define L1394_SELFID_PORT_NONE 0x0 + +#endif /* _LIBRAW1394_IEEE1394_H */