Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_IF_ARCNET_H |
| 8 | #define _LINUX_IF_ARCNET_H |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/if_ether.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define ARC_P_IP 212 |
| 12 | #define ARC_P_IPV6 196 |
| 13 | #define ARC_P_ARP 213 |
| 14 | #define ARC_P_RARP 214 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define ARC_P_IPX 250 |
| 16 | #define ARC_P_NOVELL_EC 236 |
| 17 | #define ARC_P_IP_RFC1051 240 |
| 18 | #define ARC_P_ARP_RFC1051 241 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define ARC_P_ETHER 232 |
| 20 | #define ARC_P_DATAPOINT_BOOT 0 |
| 21 | #define ARC_P_DATAPOINT_MOUNT 1 |
| 22 | #define ARC_P_POWERLAN_BEACON 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define ARC_P_POWERLAN_BEACON2 243 |
| 24 | #define ARC_P_LANSOFT 251 |
| 25 | #define ARC_P_ATALK 0xDD |
| 26 | #define ARCNET_ALEN 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | struct arc_rfc1201 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 28 | __u8 proto; |
| 29 | __u8 split_flag; |
| 30 | __be16 sequence; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 31 | __u8 payload[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | }; |
| 33 | #define RFC1201_HDR_SIZE 4 |
| 34 | struct arc_rfc1051 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __u8 proto; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 36 | __u8 payload[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 37 | }; |
| 38 | #define RFC1051_HDR_SIZE 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | struct arc_eth_encap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 40 | __u8 proto; |
| 41 | struct ethhdr eth; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 42 | __u8 payload[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | }; |
| 44 | #define ETH_ENCAP_HDR_SIZE 14 |
| 45 | struct arc_cap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 46 | __u8 proto; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | __u8 cookie[sizeof(int)]; |
| 48 | union { |
| 49 | __u8 ack; |
| 50 | __u8 raw[0]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | } mes; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | }; |
| 53 | struct arc_hardware { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 54 | __u8 source; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 55 | __u8 dest; |
| 56 | __u8 offset[2]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | }; |
| 58 | #define ARC_HDR_SIZE 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | struct archdr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 60 | struct arc_hardware hard; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 61 | union { |
| 62 | struct arc_rfc1201 rfc1201; |
| 63 | struct arc_rfc1051 rfc1051; |
| 64 | struct arc_eth_encap eth_encap; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 65 | struct arc_cap cap; |
| 66 | __u8 raw[0]; |
| 67 | } soft; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | #endif |