The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | **************************************************************************** |
| 11 | ****************************************************************************/ |
| 12 | #ifndef _LINUX_IF_ARCNET_H |
| 13 | #define _LINUX_IF_ARCNET_H |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 15 | #include <linux/if_ether.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 16 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 17 | #define ARC_P_IP 212 |
| 18 | #define ARC_P_IPV6 196 |
| 19 | #define ARC_P_ARP 213 |
| 20 | #define ARC_P_RARP 214 |
| 21 | #define ARC_P_IPX 250 |
| 22 | #define ARC_P_NOVELL_EC 236 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 23 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 24 | #define ARC_P_IP_RFC1051 240 |
| 25 | #define ARC_P_ARP_RFC1051 241 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 26 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 27 | #define ARC_P_ETHER 232 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 28 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 29 | #define ARC_P_DATAPOINT_BOOT 0 |
| 30 | #define ARC_P_DATAPOINT_MOUNT 1 |
| 31 | #define ARC_P_POWERLAN_BEACON 8 |
| 32 | #define ARC_P_POWERLAN_BEACON2 243 |
| 33 | #define ARC_P_LANSOFT 251 |
| 34 | #define ARC_P_ATALK 0xDD |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 35 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 36 | #define ARCNET_ALEN 1 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 37 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 38 | struct arc_rfc1201 |
| 39 | { |
| 40 | uint8_t proto; |
| 41 | uint8_t split_flag; |
| 42 | uint16_t sequence; |
| 43 | uint8_t payload[0]; |
| 44 | }; |
| 45 | #define RFC1201_HDR_SIZE 4 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 46 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 47 | struct arc_rfc1051 |
| 48 | { |
| 49 | uint8_t proto; |
| 50 | uint8_t payload[0]; |
| 51 | }; |
| 52 | #define RFC1051_HDR_SIZE 1 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 53 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 54 | struct arc_eth_encap |
| 55 | { |
| 56 | uint8_t proto; |
| 57 | struct ethhdr eth; |
| 58 | uint8_t payload[0]; |
| 59 | }; |
| 60 | #define ETH_ENCAP_HDR_SIZE 14 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 61 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 62 | struct arc_cap |
| 63 | { |
| 64 | uint8_t proto; |
| 65 | uint8_t cookie[sizeof(int)]; |
| 66 | union { |
| 67 | uint8_t ack; |
| 68 | uint8_t raw[0]; |
| 69 | } mes; |
| 70 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 71 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 72 | struct arc_hardware |
| 73 | { |
| 74 | uint8_t source, |
| 75 | dest, |
| 76 | offset[2]; |
| 77 | }; |
| 78 | #define ARC_HDR_SIZE 4 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 79 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 80 | struct archdr |
| 81 | { |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 82 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 83 | struct arc_hardware hard; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 84 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 85 | union { |
| 86 | struct arc_rfc1201 rfc1201; |
| 87 | struct arc_rfc1051 rfc1051; |
| 88 | struct arc_eth_encap eth_encap; |
| 89 | struct arc_cap cap; |
| 90 | uint8_t raw[0]; |
| 91 | } soft; |
| 92 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 93 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 94 | #endif |