Changes in uspace/srv/net/nil/nildummy/nildummy.h [fe8dfa6:30b2d02] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/nildummy/nildummy.h
rfe8dfa6 r30b2d02 45 45 46 46 /** Type definition of the dummy nil global data. 47 *48 47 * @see nildummy_globals 49 *50 48 */ 51 49 typedef struct nildummy_globals nildummy_globals_t; 52 50 53 51 /** Type definition of the dummy nil device specific data. 54 *55 52 * @see nildummy_device 56 *57 53 */ 58 54 typedef struct nildummy_device nildummy_device_t; 59 55 56 /** Type definition of the dummy nil device specific data pointer. 57 * @see nildummy_device 58 */ 59 typedef nildummy_device_t *nildummy_device_ref; 60 60 61 /** Type definition of the dummy nil protocol specific data. 61 *62 62 * @see nildummy_proto 63 *64 63 */ 65 typedef struct nildummy_proto nildummy_proto_t; 64 typedef struct nildummy_proto nildummy_proto_t; 65 66 /** Type definition of the dummy nil protocol specific data pointer. 67 * @see nildummy_proto 68 */ 69 typedef nildummy_proto_t *nildummy_proto_ref; 66 70 67 71 /** Dummy nil device map. 68 * 69 * Map devices to the dummy nil device specific data. 72 * Maps devices to the dummy nil device specific data. 70 73 * @see device.h 71 *72 74 */ 73 75 DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t); … … 77 79 /** Device identifier. */ 78 80 device_id_t device_id; 79 80 81 /** Device driver service. */ 81 82 services_t service; 82 83 83 /** Driver phone. */ 84 84 int phone; 85 86 85 /** Maximal transmission unit. */ 87 86 size_t mtu; 88 89 87 /** Actual device hardware address. */ 90 measured_string_t *addr; 91 88 measured_string_ref addr; 92 89 /** Actual device hardware address data. */ 93 uint8_t*addr_data;90 char *addr_data; 94 91 }; 95 92 … … 98 95 /** Protocol service. */ 99 96 services_t service; 100 101 97 /** Protocol module phone. */ 102 98 int phone; … … 104 100 105 101 /** Dummy nil global data. */ 106 struct 102 struct nildummy_globals { 107 103 /** Networking module phone. */ 108 104 int net_phone; 109 110 /** Lock for devices. */ 105 /** Safety lock for devices. */ 111 106 fibril_rwlock_t devices_lock; 112 113 107 /** All known Ethernet devices. */ 114 108 nildummy_devices_t devices; 115 116 109 /** Safety lock for protocols. */ 117 110 fibril_rwlock_t protos_lock; 118 119 111 /** Default protocol. */ 120 112 nildummy_proto_t proto;
Note:
See TracChangeset
for help on using the changeset viewer.