Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/arp/arp.h

    ra64c64d raadf01e  
    5151
    5252
     53/** Type definition of the ARP global data.
     54 *  @see arp_globals
     55 */
     56typedef struct arp_globals      arp_globals_t;
     57
    5358/** Type definition of the ARP device specific data.
    5459 *  @see arp_device
     
    6166typedef arp_device_t *          arp_device_ref;
    6267
    63 /** Type definition of the ARP global data.
    64  *  @see arp_globals
    65  */
    66 typedef struct arp_globals      arp_globals_t;
    67 
    6868/** Type definition of the ARP protocol specific data.
    6969 *  @see arp_proto
     
    7575 */
    7676typedef arp_proto_t *           arp_proto_ref;
    77 
    78 /** ARP address map.
    79  *  Translates addresses.
    80  *  @see generic_char_map.h
    81  */
    82 GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t)
    8377
    8478/** ARP address cache.
     
    9488INT_MAP_DECLARE(arp_protos, arp_proto_t)
    9589
     90/** ARP address map.
     91 *  Translates addresses.
     92 *  @see generic_char_map.h
     93 */
     94GENERIC_CHAR_MAP_DECLARE(arp_addr, measured_string_t)
     95
    9696/** ARP device specific data.
    9797 */
    9898struct arp_device{
     99        /** Device identifier.
     100         */
     101        device_id_t device_id;
     102        /** Hardware type.
     103         */
     104        hw_type_t hardware;
     105        /** Packet dimension.
     106         */
     107        packet_dimension_t packet_dimension;
    99108        /** Actual device hardware address.
    100109         */
     
    109118         */
    110119        char * broadcast_data;
    111         /** Device identifier.
     120        /** Device module service.
    112121         */
    113         device_id_t device_id;
    114         /** Hardware type.
    115          */
    116         hw_type_t hardware;
    117         /** Packet dimension.
    118          */
    119         packet_dimension_t packet_dimension;
     122        services_t service;
    120123        /** Device module phone.
    121124         */
     
    125128         */
    126129        arp_protos_t protos;
    127         /** Device module service.
    128          */
    129         services_t service;
    130 };
    131 
    132 /** ARP global data.
    133  */
    134 struct  arp_globals{
    135         /** ARP address cache.
    136          */
    137         arp_cache_t cache;
    138         /** The client connection processing function.
    139          *  The module skeleton propagates its own one.
    140          */
    141         async_client_conn_t client_connection;
    142         /** Networking module phone.
    143          */
    144         int net_phone;
    145         /** Safety lock.
    146          */
    147         fibril_rwlock_t lock;
    148130};
    149131
     
    151133 */
    152134struct arp_proto{
     135        /** Protocol service.
     136         */
     137        services_t service;
    153138        /** Actual device protocol address.
    154139         */
     
    160145         */
    161146        arp_addr_t addresses;
    162         /** Protocol service.
     147};
     148
     149/** ARP global data.
     150 */
     151struct  arp_globals{
     152        /** Networking module phone.
    163153         */
    164         services_t service;
     154        int net_phone;
     155        /** Safety lock.
     156         */
     157        fibril_rwlock_t lock;
     158        /** ARP address cache.
     159         */
     160        arp_cache_t cache;
     161        /** The client connection processing function.
     162         *  The module skeleton propagates its own one.
     163         */
     164        async_client_conn_t client_connection;
    165165};
    166166
Note: See TracChangeset for help on using the changeset viewer.