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