]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - tools/firewire/nosy-dump.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __nosy_dump_h__
3 #define __nosy_dump_h__
5 #define array_length(array) (sizeof(array) / sizeof(array[0]))
8 #define ACK_DONE(a) ((a >> 2) == 0)
9 #define ACK_BUSY(a) ((a >> 2) == 1)
10 #define ACK_ERROR(a) ((a >> 2) == 3)
20 uint32_t identifier
:2;
26 uint32_t set_gap_count
:1;
29 uint32_t identifier
:2;
33 uint32_t more_packets
:1;
34 uint32_t initiated_reset
:1;
38 uint32_t power_class
:3;
43 uint32_t link_active
:1;
46 uint32_t identifier
:2;
50 uint32_t more_packets
:1;
64 uint32_t identifier
:2;
71 #define TCODE_PHY_PACKET 0x10
73 #define PHY_PACKET_CONFIGURATION 0x00
74 #define PHY_PACKET_LINK_ON 0x01
75 #define PHY_PACKET_SELF_ID 0x02
85 uint32_t destination
:16;
87 uint32_t offset_high
:16;
102 } read_quadlet_response
;
106 uint32_t extended_tcode
:16;
107 uint32_t data_length
:16;
113 uint32_t extended_tcode
:16;
114 uint32_t data_length
:16;
117 /* crc and ack follows. */
118 } read_block_response
;
128 uint32_t extended_tcode
:16;
129 uint32_t data_length
:16;
132 /* crc and ack follows. */
151 uint32_t data_length
:16;
162 struct link_packet packet
;
165 struct link_transaction
{
166 int request_node
, response_node
, tlabel
;
167 struct subaction
*request
, *response
;
168 struct list request_list
, response_list
;
172 int decode_fcp(struct link_transaction
*t
);
174 #endif /* __nosy_dump_h__ */