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 | |
Jakub Kicinski | 949d6b4 | 2022-07-20 16:57:58 -0700 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | |
YOSHIFUJI Hideaki / 吉藤英明 | 6752c8d | 2013-03-25 08:26:16 +0000 | [diff] [blame] | 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 */ |
Andy Shevchenko | 29192a1 | 2022-07-26 17:49:06 +0300 | [diff] [blame] | 16 | u8 fifo[6]; /* FIFO addr */ |
YOSHIFUJI Hideaki / 吉藤英明 | 6752c8d | 2013-03-25 08:26:16 +0000 | [diff] [blame] | 17 | } __packed uc; |
| 18 | }; |
| 19 | |
| 20 | /* Pseudo L2 Header */ |
| 21 | #define FWNET_HLEN 18 |
| 22 | struct fwnet_header { |
| 23 | u8 h_dest[FWNET_ALEN]; /* destination address */ |
| 24 | __be16 h_proto; /* packet type ID field */ |
| 25 | } __packed; |
| 26 | |
| 27 | #endif |