Ignore:
File:
1 edited

Legend:

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

    rfe8dfa6 r30b2d02  
    4545
    4646/** Type definition of the dummy nil global data.
    47  *
    4847 * @see nildummy_globals
    49  *
    5048 */
    5149typedef struct nildummy_globals nildummy_globals_t;
    5250
    5351/** Type definition of the dummy nil device specific data.
    54  *
    5552 * @see nildummy_device
    56  *
    5753 */
    5854typedef struct nildummy_device nildummy_device_t;
    5955
     56/** Type definition of the dummy nil device specific data pointer.
     57 * @see nildummy_device
     58 */
     59typedef nildummy_device_t *nildummy_device_ref;
     60
    6061/** Type definition of the dummy nil protocol specific data.
    61  *
    6262 * @see nildummy_proto
    63  *
    6463 */
    65 typedef struct nildummy_proto nildummy_proto_t;
     64typedef struct nildummy_proto   nildummy_proto_t;
     65
     66/** Type definition of the dummy nil protocol specific data pointer.
     67 * @see nildummy_proto
     68 */
     69typedef nildummy_proto_t *nildummy_proto_ref;
    6670
    6771/** 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.
    7073 * @see device.h
    71  *
    7274 */
    7375DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t);
     
    7779        /** Device identifier. */
    7880        device_id_t device_id;
    79        
    8081        /** Device driver service. */
    8182        services_t service;
    82        
    8383        /** Driver phone. */
    8484        int phone;
    85        
    8685        /** Maximal transmission unit. */
    8786        size_t mtu;
    88        
    8987        /** Actual device hardware address. */
    90         measured_string_t *addr;
    91        
     88        measured_string_ref addr;
    9289        /** Actual device hardware address data. */
    93         uint8_t *addr_data;
     90        char *addr_data;
    9491};
    9592
     
    9895        /** Protocol service. */
    9996        services_t service;
    100        
    10197        /** Protocol module phone. */
    10298        int phone;
     
    104100
    105101/** Dummy nil global data. */
    106 struct nildummy_globals {
     102struct  nildummy_globals {
    107103        /** Networking module phone. */
    108104        int net_phone;
    109        
    110         /** Lock for devices. */
     105        /** Safety lock for devices. */
    111106        fibril_rwlock_t devices_lock;
    112        
    113107        /** All known Ethernet devices. */
    114108        nildummy_devices_t devices;
    115        
    116109        /** Safety lock for protocols. */
    117110        fibril_rwlock_t protos_lock;
    118        
    119111        /** Default protocol. */
    120112        nildummy_proto_t proto;
Note: See TracChangeset for help on using the changeset viewer.