1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _NET_FIREWIRE_H 3 #define _NET_FIREWIRE_H 4 5 #include <linux/types.h> 6 7 /* Pseudo L2 address */ 8 #define FWNET_ALEN 16 9 union fwnet_hwaddr { 10 u8 u[FWNET_ALEN]; 11 /* "Hardware address" defined in RFC2734/RF3146 */ 12 struct { 13 __be64 uniq_id; /* EUI-64 */ 14 u8 max_rec; /* max packet size */ 15 u8 sspd; /* max speed */ 16 __be16 fifo_hi; /* hi 16bits of FIFO addr */ 17 __be32 fifo_lo; /* lo 32bits of FIFO addr */ 18 } __packed uc; 19 }; 20 21 /* Pseudo L2 Header */ 22 #define FWNET_HLEN 18 23 struct fwnet_header { 24 u8 h_dest[FWNET_ALEN]; /* destination address */ 25 __be16 h_proto; /* packet type ID field */ 26 } __packed; 27 28 #endif 29