File tree Expand file tree Collapse file tree 3 files changed +11
-31
lines changed Expand file tree Collapse file tree 3 files changed +11
-31
lines changed Original file line number Diff line number Diff line change 1
- #include <stdlib .h>
1
+ #include <linux/firewire-constants .h>
2
2
#include <stdio.h>
3
+ #include <stdlib.h>
4
+
3
5
#include "list.h"
4
6
#include "nosy-dump.h"
5
7
@@ -176,7 +178,7 @@ decode_fcp(struct link_transaction *t)
176
178
((unsigned long long ) t -> request -> packet .common .offset_high << 32 ) |
177
179
t -> request -> packet .common .offset_low ;
178
180
179
- if (t -> request -> packet .common .tcode != TCODE_WRITE_BLOCK )
181
+ if (t -> request -> packet .common .tcode != TCODE_WRITE_BLOCK_REQUEST )
180
182
return 0 ;
181
183
182
184
if (offset == CSR_FCP_COMMAND || offset == CSR_FCP_RESPONSE ) {
Original file line number Diff line number Diff line change 20
20
#include <byteswap.h>
21
21
#include <endian.h>
22
22
#include <fcntl.h>
23
+ #include <linux/firewire-constants.h>
23
24
#include <poll.h>
24
25
#include <popt.h>
25
26
#include <signal.h>
@@ -522,8 +523,8 @@ handle_request_packet(uint32_t *data, size_t length)
522
523
523
524
switch (sa -> ack ) {
524
525
case ACK_COMPLETE :
525
- if (p -> common .tcode != TCODE_WRITE_QUADLET &&
526
- p -> common .tcode != TCODE_WRITE_BLOCK )
526
+ if (p -> common .tcode != TCODE_WRITE_QUADLET_REQUEST &&
527
+ p -> common .tcode != TCODE_WRITE_BLOCK_REQUEST )
527
528
/* error, unified transactions only allowed for write */ ;
528
529
list_remove (& t -> link );
529
530
handle_transaction (t );
@@ -967,7 +968,7 @@ int main(int argc, const char *argv[])
967
968
968
969
filter = ~0 ;
969
970
if (!option_iso )
970
- filter &= ~(1 << TCODE_ISO_DATA );
971
+ filter &= ~(1 << TCODE_STREAM_DATA );
971
972
if (!option_cycle_start )
972
973
filter &= ~(1 << TCODE_CYCLE_START );
973
974
if (view == VIEW_STATS )
Original file line number Diff line number Diff line change 3
3
4
4
#define array_length (array ) (sizeof(array) / sizeof(array[0]))
5
5
6
- #define TCODE_WRITE_QUADLET 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
-
6
+ #define ACK_NO_ACK 0x0
28
7
#define ACK_DONE (a ) ((a >> 2) == 0)
29
8
#define ACK_BUSY (a ) ((a >> 2) == 1)
30
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
11
#include <stdint.h>
37
12
38
13
struct phy_packet {
@@ -92,6 +67,8 @@ struct phy_packet {
92
67
uint32_t ack ;
93
68
};
94
69
70
+ #define TCODE_PHY_PACKET 0x10
71
+
95
72
#define PHY_PACKET_CONFIGURATION 0x00
96
73
#define PHY_PACKET_LINK_ON 0x01
97
74
#define PHY_PACKET_SELF_ID 0x02
You can’t perform that action at this time.
0 commit comments