Changeset b5e68c8 in mainline for uspace/srv/net/nil/nildummy/nildummy.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (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/nil/nildummy/nildummy.h
re80329d6 rb5e68c8 45 45 46 46 /** Type definition of the dummy nil global data. 47 * 47 48 * @see nildummy_globals 49 * 48 50 */ 49 51 typedef struct nildummy_globals nildummy_globals_t; 50 52 51 53 /** Type definition of the dummy nil device specific data. 54 * 52 55 * @see nildummy_device 56 * 53 57 */ 54 58 typedef struct nildummy_device nildummy_device_t; 55 59 56 /** Type definition of the dummy nil device specific data pointer. 57 * @see nildummy_device 60 /** Type definition of the dummy nil protocol specific data. 61 * 62 * @see nildummy_proto 63 * 58 64 */ 59 typedef nildummy_device_t *nildummy_device_ref; 60 61 /** Type definition of the dummy nil protocol specific data. 62 * @see nildummy_proto 63 */ 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; 65 typedef struct nildummy_proto nildummy_proto_t; 70 66 71 67 /** Dummy nil device map. 72 * Maps devices to the dummy nil device specific data. 68 * 69 * Map devices to the dummy nil device specific data. 73 70 * @see device.h 71 * 74 72 */ 75 73 DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t); … … 79 77 /** Device identifier. */ 80 78 device_id_t device_id; 79 81 80 /** Device driver service. */ 82 81 services_t service; 82 83 83 /** Driver phone. */ 84 84 int phone; 85 85 86 /** Maximal transmission unit. */ 86 87 size_t mtu; 88 87 89 /** Actual device hardware address. */ 88 measured_string_ref addr; 90 measured_string_t *addr; 91 89 92 /** Actual device hardware address data. */ 90 char*addr_data;93 uint8_t *addr_data; 91 94 }; 92 95 … … 95 98 /** Protocol service. */ 96 99 services_t service; 100 97 101 /** Protocol module phone. */ 98 102 int phone; … … 100 104 101 105 /** Dummy nil global data. */ 102 struct 106 struct nildummy_globals { 103 107 /** Networking module phone. */ 104 108 int net_phone; 105 /** Safety lock for devices. */ 109 110 /** Lock for devices. */ 106 111 fibril_rwlock_t devices_lock; 112 107 113 /** All known Ethernet devices. */ 108 114 nildummy_devices_t devices; 115 109 116 /** Safety lock for protocols. */ 110 117 fibril_rwlock_t protos_lock; 118 111 119 /** Default protocol. */ 112 120 nildummy_proto_t proto;
Note:
See TracChangeset
for help on using the changeset viewer.