Changeset d7ff048 in mainline for uspace/srv/net/net/net.h
- Timestamp:
- 2011-10-08T13:08:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf08ff0
- Parents:
- 8367d1d (diff), 80099c19 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.h
r8367d1d rd7ff048 1 1 /* 2 2 * Copyright (c) 2009 Lukas Mejdrech 3 * Copyright (c) 2011 Radim Vansa 3 4 * All rights reserved. 4 5 * … … 31 32 */ 32 33 33 /** @file34 * Networking subsystem central module.35 *36 */37 38 34 #ifndef NET_NET_H_ 39 35 #define NET_NET_H_ … … 45 41 #include <adt/module_map.h> 46 42 #include <net/packet.h> 43 #include <devman.h> 47 44 48 /** @name Modules definitions 49 * @{ 50 */ 51 52 #define NE2000_FILENAME "/srv/ne2000" 53 #define NE2000_NAME "ne2000" 45 #define NAME "net" 54 46 55 47 #define ETHERNET_FILENAME "/srv/eth" … … 58 50 #define IP_FILENAME "/srv/ip" 59 51 #define IP_NAME "ip" 60 61 #define LO_FILENAME "/srv/lo"62 #define LO_NAME "lo"63 52 64 53 #define NILDUMMY_FILENAME "/srv/nildummy" … … 77 66 #define CONF_MTU "MTU" /**< Maximum transmission unit configuration label. */ 78 67 #define CONF_NAME "NAME" /**< Network interface name configuration label. */ 79 #define CONF_ NETIF "NETIF" /**< Network interface module name configurationlabel. */68 #define CONF_HWPATH "HWPATH" /**< Network interface hardware pathname label. */ 80 69 #define CONF_NIL "NIL" /**< Network interface layer module name configuration label. */ 81 70 … … 85 74 #define CONF_DIR "/cfg/net" /**< Configuration directory. */ 86 75 #define CONF_GENERAL_FILE "general" /**< General configuration file. */ 76 #define CONF_EXT ".nic" /**< Extension for NIC's configuration files. */ 87 77 88 78 /** Configuration settings. … … 98 88 */ 99 89 typedef struct { 100 measured_strings_t configuration; /**< Configuration. */ 90 /** System-unique network interface name. */ 91 uint8_t *name; 92 /** System-unique network interface identifier. */ 93 nic_device_id_t id; 94 /** Configuration. */ 95 measured_strings_t configuration; 101 96 102 97 /** Serving network interface driver module index. */ 103 module_t *driver; 98 devman_handle_t handle; /**< Handle for devman */ 99 async_sess_t *sess; /**< Driver session. */ 104 100 105 device_id_t id; /**< System-unique network interface identifier. */ 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. */ 101 module_t *nil; /**< Serving link layer module index. */ 102 module_t *il; /**< Serving internet layer module index. */ 109 103 } netif_t; 110 104 … … 124 118 modules_t modules; /**< Available modules. */ 125 119 126 /** Network interface structure indices by names. */127 char_map_t netif_ names;120 /** Network interface structure indices by hardware path. */ 121 char_map_t netif_hwpaths; 128 122 129 123 /** Present network interfaces. */ … … 131 125 } net_globals_t; 132 126 133 extern int add_configuration(measured_strings_t *, const uint8_t *,134 const uint8_t *);135 extern int net_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);136 extern int net_initialize_build(async_client_conn_t);137 extern int net_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, size_t *);138 139 127 #endif 140 128
Note:
See TracChangeset
for help on using the changeset viewer.