aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/firewire-constants.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 16:29:36 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 16:30:08 -0400
commit9b6a51746ffe8d619f1097675d2dc5e303470024 (patch)
tree52668d7adc6f5c1d347d65072878cf1f82670364 /include/linux/firewire-constants.h
parentfc0b60f1dc311a2f7443ce46305edd287b2d8947 (diff)
parentd79406dd140a3e6eed6f26b17f0c6620fe30b50c (diff)
Merge branch 'juju' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'juju' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: (138 commits) firewire: Convert OHCI driver to use standard goto unwinding for error handling. firewire: Always use parens with sizeof. firewire: Drop single buffer request support. firewire: Add a comment to describe why we split the sg list. firewire: Return SCSI_MLQUEUE_HOST_BUSY for out of memory cases in queuecommand. firewire: Handle the last few DMA mapping error cases. firewire: Allocate scsi_host up front and allocate the sbp2_device as hostdata. firewire: Provide module aliase for backwards compatibility. firewire: Add to fw-core-y instead of assigning fw-core-objs in Makefile. firewire: Break out shared IEEE1394 constant to separate header file. firewire: Use linux/*.h instead of asm/*.h header files. firewire: Uppercase most macro names. firewire: Coding style cleanup: no spaces after function names. firewire: Convert card_rwsem to a regular mutex. firewire: Clean up comment style. firewire: Use lib/ implementation of CRC ITU-T. CRC ITU-T V.41 firewire: Rename fw-device-cdev.c to fw-cdev.c and move header to include/linux. firewire: Future proof the iso ioctls by adding a handle for the iso context. firewire: Add read/write and size annotations to IOC numbers. ... Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/firewire-constants.h')
-rw-r--r--include/linux/firewire-constants.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/include/linux/firewire-constants.h b/include/linux/firewire-constants.h
new file mode 100644
index 000000000000..b316770a43fd
--- /dev/null
+++ b/include/linux/firewire-constants.h
@@ -0,0 +1,67 @@
1#ifndef _LINUX_FIREWIRE_CONSTANTS_H
2#define _LINUX_FIREWIRE_CONSTANTS_H
3
4#define TCODE_WRITE_QUADLET_REQUEST 0x0
5#define TCODE_WRITE_BLOCK_REQUEST 0x1
6#define TCODE_WRITE_RESPONSE 0x2
7#define TCODE_READ_QUADLET_REQUEST 0x4
8#define TCODE_READ_BLOCK_REQUEST 0x5
9#define TCODE_READ_QUADLET_RESPONSE 0x6
10#define TCODE_READ_BLOCK_RESPONSE 0x7
11#define TCODE_CYCLE_START 0x8
12#define TCODE_LOCK_REQUEST 0x9
13#define TCODE_STREAM_DATA 0xa
14#define TCODE_LOCK_RESPONSE 0xb
15
16#define EXTCODE_MASK_SWAP 0x1
17#define EXTCODE_COMPARE_SWAP 0x2
18#define EXTCODE_FETCH_ADD 0x3
19#define EXTCODE_LITTLE_ADD 0x4
20#define EXTCODE_BOUNDED_ADD 0x5
21#define EXTCODE_WRAP_ADD 0x6
22#define EXTCODE_VENDOR_DEPENDENT 0x7
23
24/* Juju specific tcodes */
25#define TCODE_LOCK_MASK_SWAP (0x10 | EXTCODE_MASK_SWAP)
26#define TCODE_LOCK_COMPARE_SWAP (0x10 | EXTCODE_COMPARE_SWAP)
27#define TCODE_LOCK_FETCH_ADD (0x10 | EXTCODE_FETCH_ADD)
28#define TCODE_LOCK_LITTLE_ADD (0x10 | EXTCODE_LITTLE_ADD)
29#define TCODE_LOCK_BOUNDED_ADD (0x10 | EXTCODE_BOUNDED_ADD)
30#define TCODE_LOCK_WRAP_ADD (0x10 | EXTCODE_WRAP_ADD)
31#define TCODE_LOCK_VENDOR_DEPENDENT (0x10 | EXTCODE_VENDOR_DEPENDENT)
32
33#define RCODE_COMPLETE 0x0
34#define RCODE_CONFLICT_ERROR 0x4
35#define RCODE_DATA_ERROR 0x5
36#define RCODE_TYPE_ERROR 0x6
37#define RCODE_ADDRESS_ERROR 0x7
38
39/* Juju specific rcodes */
40#define RCODE_SEND_ERROR 0x10
41#define RCODE_CANCELLED 0x11
42#define RCODE_BUSY 0x12
43#define RCODE_GENERATION 0x13
44#define RCODE_NO_ACK 0x14
45
46#define SCODE_100 0x0
47#define SCODE_200 0x1
48#define SCODE_400 0x2
49#define SCODE_800 0x3
50#define SCODE_1600 0x4
51#define SCODE_3200 0x5
52#define SCODE_BETA 0x3
53
54#define ACK_COMPLETE 0x1
55#define ACK_PENDING 0x2
56#define ACK_BUSY_X 0x4
57#define ACK_BUSY_A 0x5
58#define ACK_BUSY_B 0x6
59#define ACK_DATA_ERROR 0xd
60#define ACK_TYPE_ERROR 0xe
61
62#define RETRY_1 0x00
63#define RETRY_X 0x01
64#define RETRY_A 0x02
65#define RETRY_B 0x03
66
67#endif /* _LINUX_FIREWIRE_CONSTANTS_H */