HID: automatically call usbhid_set_leds in usbhid driver
[linux-2.6/mini2440.git] / include / linux / firewire-constants.h
blobb316770a43fdc3a420d86ef24022713b17ab73a8
1 #ifndef _LINUX_FIREWIRE_CONSTANTS_H
2 #define _LINUX_FIREWIRE_CONSTANTS_H
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
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
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)
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
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
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
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
62 #define RETRY_1 0x00
63 #define RETRY_X 0x01
64 #define RETRY_A 0x02
65 #define RETRY_B 0x03
67 #endif /* _LINUX_FIREWIRE_CONSTANTS_H */