Subversion Repositories HelenOS

Rev

Rev 4704 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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