Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/nildummy/nildummy.h

    r30b2d02 rfe8dfa6  
    4545
    4646/** Type definition of the dummy nil global data.
     47 *
    4748 * @see nildummy_globals
     49 *
    4850 */
    4951typedef struct nildummy_globals nildummy_globals_t;
    5052
    5153/** Type definition of the dummy nil device specific data.
     54 *
    5255 * @see nildummy_device
     56 *
    5357 */
    5458typedef struct nildummy_device nildummy_device_t;
    5559
    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 *
    5864 */
    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;
     65typedef struct nildummy_proto nildummy_proto_t;
    7066
    7167/** 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.
    7370 * @see device.h
     71 *
    7472 */
    7573DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t);
     
    7977        /** Device identifier. */
    8078        device_id_t device_id;
     79       
    8180        /** Device driver service. */
    8281        services_t service;
     82       
    8383        /** Driver phone. */
    8484        int phone;
     85       
    8586        /** Maximal transmission unit. */
    8687        size_t mtu;
     88       
    8789        /** Actual device hardware address. */
    88         measured_string_ref addr;
     90        measured_string_t *addr;
     91       
    8992        /** Actual device hardware address data. */
    90         char *addr_data;
     93        uint8_t *addr_data;
    9194};
    9295
     
    9598        /** Protocol service. */
    9699        services_t service;
     100       
    97101        /** Protocol module phone. */
    98102        int phone;
     
    100104
    101105/** Dummy nil global data. */
    102 struct  nildummy_globals {
     106struct nildummy_globals {
    103107        /** Networking module phone. */
    104108        int net_phone;
    105         /** Safety lock for devices. */
     109       
     110        /** Lock for devices. */
    106111        fibril_rwlock_t devices_lock;
     112       
    107113        /** All known Ethernet devices. */
    108114        nildummy_devices_t devices;
     115       
    109116        /** Safety lock for protocols. */
    110117        fibril_rwlock_t protos_lock;
     118       
    111119        /** Default protocol. */
    112120        nildummy_proto_t proto;
Note: See TracChangeset for help on using the changeset viewer.