Changeset 609243f4 in mainline for uspace/srv/net/net/net.h
- Timestamp:
- 2011-10-07T15:46:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2c50e1
- Parents:
- f51b1d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.h
rf51b1d3 r609243f4 1 1 /* 2 2 * Copyright (c) 2009 Lukas Mejdrech 3 * Copyright (c) 2011 Radim Vansa 3 4 * All rights reserved. 4 5 * … … 45 46 #include <adt/module_map.h> 46 47 #include <net/packet.h> 48 #include <devman.h> 47 49 48 50 /** @name Modules definitions 49 51 * @{ 50 52 */ 51 52 #define NE2000_FILENAME "/srv/ne2000"53 #define NE2000_NAME "ne2000"54 53 55 54 #define ETHERNET_FILENAME "/srv/eth" … … 58 57 #define IP_FILENAME "/srv/ip" 59 58 #define IP_NAME "ip" 60 61 #define LO_FILENAME "/srv/lo"62 #define LO_NAME "lo"63 59 64 60 #define NILDUMMY_FILENAME "/srv/nildummy" … … 77 73 #define CONF_MTU "MTU" /**< Maximum transmission unit configuration label. */ 78 74 #define CONF_NAME "NAME" /**< Network interface name configuration label. */ 79 #define CONF_ NETIF "NETIF" /**< Network interface module name configurationlabel. */75 #define CONF_HWPATH "HWPATH" /**< Network interface hardware pathname label. */ 80 76 #define CONF_NIL "NIL" /**< Network interface layer module name configuration label. */ 81 77 … … 85 81 #define CONF_DIR "/cfg/net" /**< Configuration directory. */ 86 82 #define CONF_GENERAL_FILE "general" /**< General configuration file. */ 83 #define CONF_EXT ".nic" /**< Extension for NIC's configuration files. */ 87 84 88 85 /** Configuration settings. … … 98 95 */ 99 96 typedef struct { 97 uint8_t *name; /**< System-unique network interface name. */ 98 nic_device_id_t id; /**< System-unique network interface identifier. */ 100 99 measured_strings_t configuration; /**< Configuration. */ 101 100 102 101 /** Serving network interface driver module index. */ 103 module_t *driver; 102 devman_handle_t handle; /**< Handle for devman */ 103 async_sess_t *sess; /**< Driver session. */ 104 104 105 device_id_t id; /**< System-unique network interface identifier. */105 module_t *nil; /**< Serving link layer module index. */ 106 106 module_t *il; /**< Serving internet layer module index. */ 107 uint8_t *name; /**< System-unique network interface name. */108 module_t *nil; /**< Serving link layer module index. */109 107 } netif_t; 110 108 … … 124 122 modules_t modules; /**< Available modules. */ 125 123 126 /** Network interface structure indices by names. */127 char_map_t netif_ names;124 /** Network interface structure indices by hardware path. */ 125 char_map_t netif_hwpaths; 128 126 129 127 /** Present network interfaces. */
Note:
See TracChangeset
for help on using the changeset viewer.