Changes in uspace/srv/net/nil/eth/eth.h [aadf01e:21580dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth.h
raadf01e r21580dd 73 73 * @see device.h 74 74 */ 75 DEVICE_MAP_DECLARE( eth_devices, eth_device_t)75 DEVICE_MAP_DECLARE( eth_devices, eth_device_t ) 76 76 77 77 /** Ethernet protocol map. … … 79 79 * @see int_map.h 80 80 */ 81 INT_MAP_DECLARE( eth_protos, eth_proto_t)81 INT_MAP_DECLARE( eth_protos, eth_proto_t ) 82 82 83 83 /** Ethernet device specific data. … … 86 86 /** Device identifier. 87 87 */ 88 device_id_t 88 device_id_t device_id; 89 89 /** Device driver service. 90 90 */ 91 services_t 91 services_t service; 92 92 /** Driver phone. 93 93 */ 94 int 94 int phone; 95 95 /** Maximal transmission unit. 96 96 */ 97 size_t 97 size_t mtu; 98 98 /** Various device flags. 99 99 * @see ETH_DUMMY 100 100 * @see ETH_MODE_MASK 101 101 */ 102 int 102 int flags; 103 103 /** Actual device hardware address. 104 104 */ 105 measured_string_ref 105 measured_string_ref addr; 106 106 /** Actual device hardware address data. 107 107 */ 108 char * 108 char * addr_data; 109 109 }; 110 110 … … 114 114 /** Protocol service. 115 115 */ 116 services_t 116 services_t service; 117 117 /** Protocol identifier. 118 118 */ 119 int 119 int protocol; 120 120 /** Protocol module phone. 121 121 */ 122 int 122 int phone; 123 123 }; 124 124 … … 128 128 /** Networking module phone. 129 129 */ 130 int 130 int net_phone; 131 131 /** Safety lock for devices. 132 132 */ 133 fibril_rwlock_t 133 fibril_rwlock_t devices_lock; 134 134 /** All known Ethernet devices. 135 135 */ 136 eth_devices_t 136 eth_devices_t devices; 137 137 /** Safety lock for protocols. 138 138 */ 139 fibril_rwlock_t 139 fibril_rwlock_t protos_lock; 140 140 /** Protocol map. 141 141 * Service phone map for each protocol. 142 142 */ 143 eth_protos_t 143 eth_protos_t protos; 144 144 /** Broadcast device hardware address. 145 145 */ 146 measured_string_ref 146 measured_string_ref broadcast_addr; 147 147 }; 148 148
Note:
See TracChangeset
for help on using the changeset viewer.