Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _NET_FIREWIRE_H
0003 #define _NET_FIREWIRE_H
0004 
0005 #include <linux/types.h>
0006 
0007 /* Pseudo L2 address */
0008 #define FWNET_ALEN  16
0009 union fwnet_hwaddr {
0010     u8 u[FWNET_ALEN];
0011     /* "Hardware address" defined in RFC2734/RF3146 */
0012     struct {
0013         __be64 uniq_id;     /* EUI-64           */
0014         u8 max_rec;     /* max packet size      */
0015         u8 sspd;        /* max speed            */
0016         u8 fifo[6];     /* FIFO addr            */
0017     } __packed uc;
0018 };
0019 
0020 /* Pseudo L2 Header */
0021 #define FWNET_HLEN  18
0022 struct fwnet_header {
0023     u8 h_dest[FWNET_ALEN];  /* destination address */
0024     __be16 h_proto;     /* packet type ID field */
0025 } __packed;
0026 
0027 #endif