Subversion Repositories HelenOS

Rev

Rev 4558 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4558 Rev 4704
1
/*
1
/*
2
 * Copyright (c) 2009 Lukas Mejdrech
2
 * Copyright (c) 2009 Lukas Mejdrech
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
8
 *
8
 *
9
 * - Redistributions of source code must retain the above copyright
9
 * - Redistributions of source code must retain the above copyright
10
 *   notice, this list of conditions and the following disclaimer.
10
 *   notice, this list of conditions and the following disclaimer.
11
 * - Redistributions in binary form must reproduce the above copyright
11
 * - Redistributions in binary form must reproduce the above copyright
12
 *   notice, this list of conditions and the following disclaimer in the
12
 *   notice, this list of conditions and the following disclaimer in the
13
 *   documentation and/or other materials provided with the distribution.
13
 *   documentation and/or other materials provided with the distribution.
14
 * - The name of the author may not be used to endorse or promote products
14
 * - The name of the author may not be used to endorse or promote products
15
 *   derived from this software without specific prior written permission.
15
 *   derived from this software without specific prior written permission.
16
 *
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup net_nil
29
/** @addtogroup net_nil
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
34
 *  Hardware types according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009.
34
 *  Hardware types according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009.
35
 *  Names similar to the linux src/include/linux/if_arp.h header file.
35
 *  Names similar to the linux src/include/linux/if_arp.h header file.
36
 */
36
 */
37
 
37
 
38
#ifndef __NET_HW_TYPES_H__
38
#ifndef __NET_HW_TYPES_H__
39
#define __NET_HW_TYPES_H__
39
#define __NET_HW_TYPES_H__
40
 
40
 
41
#include <sys/types.h>
41
#include <sys/types.h>
42
 
42
 
-
 
43
/** Network interface layer type type definition.
-
 
44
 */
43
typedef uint8_t hw_type_t;
45
typedef uint8_t hw_type_t;
44
 
46
 
-
 
47
/** @name Network interface layer types definitions
-
 
48
 */
-
 
49
/*@{*/
-
 
50
 
45
/** Ethernet (10Mb) hardware type.
51
/** Ethernet (10Mb) hardware type.
46
 */
52
 */
47
#define HW_ETHER        1
53
#define HW_ETHER        1
48
 
54
 
49
/** Experimental Ethernet (3Mb) hardware type.
55
/** Experimental Ethernet (3Mb) hardware type.
50
 */
56
 */
51
#define HW_EETHER       2
57
#define HW_EETHER       2
52
 
58
 
53
/** Amateur Radio AX.25 hardware type.
59
/** Amateur Radio AX.25 hardware type.
54
 */
60
 */
55
#define HW_AX25     3
61
#define HW_AX25     3
56
 
62
 
57
/** Proteon ProNET Token Ring hardware type.
63
/** Proteon ProNET Token Ring hardware type.
58
 */
64
 */
59
#define HW_PRONET       4
65
#define HW_PRONET       4
60
 
66
 
61
/** Chaos hardware type.
67
/** Chaos hardware type.
62
 */
68
 */
63
#define HW_CHAOS        5
69
#define HW_CHAOS        5
64
 
70
 
65
/** IEEE 802 Networks hardware type.
71
/** IEEE 802 Networks hardware type.
66
 */
72
 */
67
#define HW_IEEE802      6
73
#define HW_IEEE802      6
68
 
74
 
69
/** ARCNET hardware type.
75
/** ARCNET hardware type.
70
 */
76
 */
71
#define HW_ARCNET       7
77
#define HW_ARCNET       7
72
 
78
 
73
/** Hyperchannel hardware type.
79
/** Hyperchannel hardware type.
74
 */
80
 */
75
#define HW_Hyperchannel     8
81
#define HW_Hyperchannel     8
76
 
82
 
77
/** Lanstar hardware type.
83
/** Lanstar hardware type.
78
 */
84
 */
79
#define HW_Lanstar      9
85
#define HW_Lanstar      9
80
 
86
 
81
/** Autonet Short Address hardware type.
87
/** Autonet Short Address hardware type.
82
 */
88
 */
83
#define HW_ASA      10
89
#define HW_ASA      10
84
 
90
 
85
/** LocalTalk hardware type.
91
/** LocalTalk hardware type.
86
 */
92
 */
87
#define HW_LocalTalk        11
93
#define HW_LocalTalk        11
88
 
94
 
89
/** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type.
95
/** LocalNet (IBM PCNet or SYTEK LocalNET) hardware type.
90
 */
96
 */
91
#define HW_LocalNet     12
97
#define HW_LocalNet     12
92
 
98
 
93
/** Ultra link hardware type.
99
/** Ultra link hardware type.
94
 */
100
 */
95
#define HW_Ultra_link       13
101
#define HW_Ultra_link       13
96
 
102
 
97
/** SMDS hardware type.
103
/** SMDS hardware type.
98
 */
104
 */
99
#define HW_SMDS     14
105
#define HW_SMDS     14
100
 
106
 
101
/** Frame Relay DLCI hardware type.
107
/** Frame Relay DLCI hardware type.
102
 */
108
 */
103
#define HW_DLCI     15
109
#define HW_DLCI     15
104
 
110
 
105
/** Asynchronous Transmission Mode (ATM) hardware type.
111
/** Asynchronous Transmission Mode (ATM) hardware type.
106
 */
112
 */
107
#define HW_ATM      16
113
#define HW_ATM      16
108
 
114
 
109
/** HDLC hardware type.
115
/** HDLC hardware type.
110
 */
116
 */
111
#define HW_HDLC     17
117
#define HW_HDLC     17
112
 
118
 
113
/** Fibre Channel hardware type.
119
/** Fibre Channel hardware type.
114
 */
120
 */
115
#define HW_Fibre_Channel        18
121
#define HW_Fibre_Channel        18
116
 
122
 
117
/** Asynchronous Transmission Mode (ATM) hardware type.
123
/** Asynchronous Transmission Mode (ATM) hardware type.
118
 */
124
 */
119
#define HW_ATM2     19
125
#define HW_ATM2     19
120
 
126
 
121
/** Serial Line hardware type.
127
/** Serial Line hardware type.
122
 */
128
 */
123
#define HW_Serial_Line      20
129
#define HW_Serial_Line      20
124
 
130
 
125
/** Asynchronous Transmission Mode (ATM) hardware type.
131
/** Asynchronous Transmission Mode (ATM) hardware type.
126
 */
132
 */
127
#define HW_ATM3     21
133
#define HW_ATM3     21
128
 
134
 
129
/** MIL-STD-188-220 hardware type.
135
/** MIL-STD-188-220 hardware type.
130
 */
136
 */
131
#define HW_MIL_STD_188_220      22
137
#define HW_MIL_STD_188_220      22
132
 
138
 
133
/** Metricom hardware type.
139
/** Metricom hardware type.
134
 */
140
 */
135
#define HW_METRICOM     23
141
#define HW_METRICOM     23
136
 
142
 
137
/** IEEE 1394.1995 hardware type.
143
/** IEEE 1394.1995 hardware type.
138
 */
144
 */
139
#define HW_IEEE1394     24
145
#define HW_IEEE1394     24
140
 
146
 
141
/** MAPOS hardware type.
147
/** MAPOS hardware type.
142
 */
148
 */
143
#define HW_MAPOS        25
149
#define HW_MAPOS        25
144
 
150
 
145
/** Twinaxial hardware type.
151
/** Twinaxial hardware type.
146
 */
152
 */
147
#define HW_Twinaxial        26
153
#define HW_Twinaxial        26
148
 
154
 
149
/** EUI-64 hardware type.
155
/** EUI-64 hardware type.
150
 */
156
 */
151
#define HW_EUI64        27
157
#define HW_EUI64        27
152
 
158
 
153
/** HIPARP hardware type.
159
/** HIPARP hardware type.
154
 */
160
 */
155
#define HW_HIPARP       28
161
#define HW_HIPARP       28
156
 
162
 
157
/** IP and ARP over ISO 7816-3 hardware type.
163
/** IP and ARP over ISO 7816-3 hardware type.
158
 */
164
 */
159
#define HW_ISO_7816_3       29
165
#define HW_ISO_7816_3       29
160
 
166
 
161
/** ARPSec hardware type.
167
/** ARPSec hardware type.
162
 */
168
 */
163
#define HW_ARPSec       30
169
#define HW_ARPSec       30
164
 
170
 
165
/** IPsec tunnel hardware type.
171
/** IPsec tunnel hardware type.
166
 */
172
 */
167
#define HW_IPsec_tunnel     31
173
#define HW_IPsec_tunnel     31
168
 
174
 
169
/** InfiniBand (TM) hardware type.
175
/** InfiniBand (TM) hardware type.
170
 */
176
 */
171
#define HW_INFINIBAND       32
177
#define HW_INFINIBAND       32
172
 
178
 
173
/** TIA-102 Project 25 Common Air Interface (CAI) hardware type.
179
/** TIA-102 Project 25 Common Air Interface (CAI) hardware type.
174
 */
180
 */
175
#define HW_CAI      33
181
#define HW_CAI      33
176
 
182
 
177
/** Wiegand Interface hardware type.
183
/** Wiegand Interface hardware type.
178
 */
184
 */
179
#define HW_Wiegand      34
185
#define HW_Wiegand      34
180
 
186
 
181
/** Pure IP hardware type.
187
/** Pure IP hardware type.
182
 */
188
 */
183
#define HW_Pure_IP      35
189
#define HW_Pure_IP      35
184
 
190
 
-
 
191
/*@}*/
-
 
192
 
185
#endif
193
#endif
186
 
194
 
187
/** @}
195
/** @}
188
 */
196
 */
189
 
197