Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
YOSHIFUJI Hideaki / 吉藤英明 | 6752c8d | 2013-03-25 08:26:16 +0000 | [diff] [blame] | 2 | #ifndef _NET_FIREWIRE_H |
| 3 | #define _NET_FIREWIRE_H |
| 4 | |
| 5 | /* Pseudo L2 address */ |
| 6 | #define FWNET_ALEN 16 |
| 7 | union fwnet_hwaddr { |
| 8 | u8 u[FWNET_ALEN]; |
| 9 | /* "Hardware address" defined in RFC2734/RF3146 */ |
| 10 | struct { |
| 11 | __be64 uniq_id; /* EUI-64 */ |
| 12 | u8 max_rec; /* max packet size */ |
| 13 | u8 sspd; /* max speed */ |
| 14 | __be16 fifo_hi; /* hi 16bits of FIFO addr */ |
| 15 | __be32 fifo_lo; /* lo 32bits of FIFO addr */ |
| 16 | } __packed uc; |
| 17 | }; |
| 18 | |
| 19 | /* Pseudo L2 Header */ |
| 20 | #define FWNET_HLEN 18 |
| 21 | struct fwnet_header { |
| 22 | u8 h_dest[FWNET_ALEN]; /* destination address */ |
| 23 | __be16 h_proto; /* packet type ID field */ |
| 24 | } __packed; |
| 25 | |
| 26 | #endif |