Changes in uspace/srv/net/nil/eth/eth.h [fe8dfa6:609243f4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.h
rfe8dfa6 r609243f4 1 1 /* 2 2 * Copyright (c) 2009 Lukas Mejdrech 3 * Copyright (c) 2011 Radim Vansa 3 4 * All rights reserved. 4 5 * … … 38 39 #define NET_ETH_H_ 39 40 41 #include <async.h> 40 42 #include <fibril_synch.h> 41 43 #include <ipc/services.h> 42 43 44 #include <net/device.h> 44 45 #include <adt/measured_strings.h> 46 #include <devman.h> 45 47 46 48 /** Ethernet address length. */ … … 220 222 struct eth_device { 221 223 /** Device identifier. */ 222 device_id_t device_id;223 /** Device driver service.*/224 services_t service;225 /** Driver phone. */226 int phone;224 nic_device_id_t device_id; 225 /** Device handle */ 226 devman_handle_t handle; 227 /** Driver session. */ 228 async_sess_t *sess; 227 229 /** Maximal transmission unit. */ 228 230 size_t mtu; … … 236 238 237 239 /** Actual device hardware address. */ 238 measured_string_t *addr; 239 240 /** Actual device hardware address data. */ 241 uint8_t *addr_data; 240 nic_address_t addr; 242 241 }; 243 242 … … 248 247 /** Protocol identifier. */ 249 248 int protocol; 250 /** Protocol module phone. */251 int phone;249 /** Protocol module session. */ 250 async_sess_t *sess; 252 251 }; 253 252 254 253 /** Ethernet global data. */ 255 254 struct eth_globals { 256 /** Networking module phone. */257 int net_phone;255 /** Networking module session. */ 256 async_sess_t *net_sess; 258 257 /** Safety lock for devices. */ 259 258 fibril_rwlock_t devices_lock; … … 265 264 /** 266 265 * Protocol map. 267 * Service phonemap for each protocol.266 * Service map for each protocol. 268 267 */ 269 268 eth_protos_t protos; 270 269 271 270 /** Broadcast device hardware address. */ 272 measured_string_t *broadcast_addr;271 uint8_t broadcast_addr[ETH_ADDR]; 273 272 }; 274 273
Note:
See TracChangeset
for help on using the changeset viewer.