1 #ifndef __nosy_dump_h__
2 #define __nosy_dump_h__
4 #define array_length(array) (sizeof(array) / sizeof(array[0]))
7 #define ACK_DONE(a) ((a >> 2) == 0)
8 #define ACK_BUSY(a) ((a >> 2) == 1)
9 #define ACK_ERROR(a) ((a >> 2) == 3)
19 uint32_t identifier
:2;
25 uint32_t set_gap_count
:1;
28 uint32_t identifier
:2;
32 uint32_t more_packets
:1;
33 uint32_t initiated_reset
:1;
37 uint32_t power_class
:3;
42 uint32_t link_active
:1;
45 uint32_t identifier
:2;
49 uint32_t more_packets
:1;
63 uint32_t identifier
:2;
70 #define TCODE_PHY_PACKET 0x10
72 #define PHY_PACKET_CONFIGURATION 0x00
73 #define PHY_PACKET_LINK_ON 0x01
74 #define PHY_PACKET_SELF_ID 0x02
84 uint32_t destination
:16;
86 uint32_t offset_high
:16;
101 } read_quadlet_response
;
105 uint32_t extended_tcode
:16;
106 uint32_t data_length
:16;
112 uint32_t extended_tcode
:16;
113 uint32_t data_length
:16;
116 /* crc and ack follows. */
117 } read_block_response
;
127 uint32_t extended_tcode
:16;
128 uint32_t data_length
:16;
131 /* crc and ack follows. */
150 uint32_t data_length
:16;
161 struct link_packet packet
;
164 struct link_transaction
{
165 int request_node
, response_node
, tlabel
;
166 struct subaction
*request
, *response
;
167 struct list request_list
, response_list
;
171 int decode_fcp(struct link_transaction
*t
);
173 #endif /* __nosy_dump_h__ */