diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-22 05:58:05 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-27 05:04:12 -0400 |
commit | 83ef7c75939f45f8da46976cdca4db0727276a2d (patch) | |
tree | 65463156511af958e28f4fabc3acdfa2dd3798f9 /tools/firewire/nosy-dump.h | |
parent | 269fe1023191a338736c71ba4f4db13839747772 (diff) |
tools/firewire: nosy-dump: use linux/firewire-constants.h
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'tools/firewire/nosy-dump.h')
-rw-r--r-- | tools/firewire/nosy-dump.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/tools/firewire/nosy-dump.h b/tools/firewire/nosy-dump.h index fe8be630efaa..3a4b5b33ba5d 100644 --- a/tools/firewire/nosy-dump.h +++ b/tools/firewire/nosy-dump.h | |||
@@ -3,36 +3,11 @@ | |||
3 | 3 | ||
4 | #define array_length(array) (sizeof(array) / sizeof(array[0])) | 4 | #define array_length(array) (sizeof(array) / sizeof(array[0])) |
5 | 5 | ||
6 | #define TCODE_WRITE_QUADLET 0x0 | 6 | #define ACK_NO_ACK 0x0 |
7 | #define TCODE_WRITE_BLOCK 0x1 | ||
8 | #define TCODE_WRITE_RESPONSE 0x2 | ||
9 | #define TCODE_READ_QUADLET 0x4 | ||
10 | #define TCODE_READ_BLOCK 0x5 | ||
11 | #define TCODE_READ_QUADLET_RESPONSE 0x6 | ||
12 | #define TCODE_READ_BLOCK_RESPONSE 0x7 | ||
13 | #define TCODE_CYCLE_START 0x8 | ||
14 | #define TCODE_LOCK_REQUEST 0x9 | ||
15 | #define TCODE_ISO_DATA 0xa | ||
16 | #define TCODE_LOCK_RESPONSE 0xb | ||
17 | #define TCODE_PHY_PACKET 0x10 | ||
18 | |||
19 | #define ACK_NO_ACK 0x0 | ||
20 | #define ACK_COMPLETE 0x1 | ||
21 | #define ACK_PENDING 0x2 | ||
22 | #define ACK_BUSY_X 0x4 | ||
23 | #define ACK_BUSY_A 0x5 | ||
24 | #define ACK_BUSY_B 0x6 | ||
25 | #define ACK_DATA_ERROR 0xd | ||
26 | #define ACK_TYPE_ERROR 0xe | ||
27 | |||
28 | #define ACK_DONE(a) ((a >> 2) == 0) | 7 | #define ACK_DONE(a) ((a >> 2) == 0) |
29 | #define ACK_BUSY(a) ((a >> 2) == 1) | 8 | #define ACK_BUSY(a) ((a >> 2) == 1) |
30 | #define ACK_ERROR(a) ((a >> 2) == 3) | 9 | #define ACK_ERROR(a) ((a >> 2) == 3) |
31 | 10 | ||
32 | #define SPEED_100 0x0 | ||
33 | #define SPEED_200 0x1 | ||
34 | #define SPEED_400 0x2 | ||
35 | |||
36 | #include <stdint.h> | 11 | #include <stdint.h> |
37 | 12 | ||
38 | struct phy_packet { | 13 | struct phy_packet { |
@@ -92,6 +67,8 @@ struct phy_packet { | |||
92 | uint32_t ack; | 67 | uint32_t ack; |
93 | }; | 68 | }; |
94 | 69 | ||
70 | #define TCODE_PHY_PACKET 0x10 | ||
71 | |||
95 | #define PHY_PACKET_CONFIGURATION 0x00 | 72 | #define PHY_PACKET_CONFIGURATION 0x00 |
96 | #define PHY_PACKET_LINK_ON 0x01 | 73 | #define PHY_PACKET_LINK_ON 0x01 |
97 | #define PHY_PACKET_SELF_ID 0x02 | 74 | #define PHY_PACKET_SELF_ID 0x02 |