summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar aeb 2000-11-22 23:12:56 +0000
committerGravatar aeb 2000-11-22 23:12:56 +0000
commite656d9f2f6c50bf3a17c67da7e0d131ff7f94302 (patch)
tree99d21880746a44a97a671af1946a619c308883bd /src
parentFix raw1394_start_iso_write() which uses wrong variable. (diff)
Added ieee1394.h header.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@40 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to '')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/ieee1394.h36
2 files changed, 37 insertions, 1 deletions
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 */