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