Ignore:
File:
1 edited

Legend:

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

    r4eca056 re526f08  
    2828
    2929/** @addtogroup nildummy
    30  * @{
     30 *  @{
    3131 */
    3232
    3333/** @file
    34  * Dummy network interface layer module.
     34 *  Dummy network interface layer module.
    3535 */
    3636
    37 #ifndef NET_NILDUMMY_H_
    38 #define NET_NILDUMMY_H_
     37#ifndef __NET_NILDUMMY_H__
     38#define __NET_NILDUMMY_H__
    3939
    4040#include <fibril_synch.h>
     
    4545
    4646/** Type definition of the dummy nil global data.
    47  * @see nildummy_globals
     47 *  @see nildummy_globals
    4848 */
    49 typedef struct nildummy_globals nildummy_globals_t;
     49typedef struct nildummy_globals nildummy_globals_t;
    5050
    5151/** Type definition of the dummy nil device specific data.
    52  * @see nildummy_device
     52 *  @see nildummy_device
    5353 */
    54 typedef struct nildummy_device nildummy_device_t;
     54typedef struct nildummy_device  nildummy_device_t;
     55
     56/** Type definition of the dummy nil device specific data pointer.
     57 *  @see nildummy_device
     58 */
     59typedef nildummy_device_t *             nildummy_device_ref;
    5560
    5661/** Type definition of the dummy nil protocol specific data.
    57  * @see nildummy_proto
     62 *  @see nildummy_proto
    5863 */
    59 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;
    6070
    6171/** Dummy nil device map.
    62  * Maps devices to the dummy nil device specific data.
    63  * @see device.h
     72 *  Maps devices to the dummy nil device specific data.
     73 *  @see device.h
    6474 */
    65 DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t);
     75DEVICE_MAP_DECLARE(nildummy_devices, nildummy_device_t)
    6676
    67 /** Dummy nil device specific data. */
    68 struct nildummy_device {
    69         /** Device identifier. */
     77/** Dummy nil device specific data.
     78 */
     79struct  nildummy_device{
     80        /** Device identifier.
     81         */
    7082        device_id_t device_id;
    71         /** Device driver service. */
     83        /** Device driver service.
     84         */
    7285        services_t service;
    73         /** Driver phone. */
     86        /** Driver phone.
     87         */
    7488        int phone;
    75         /** Maximal transmission unit. */
     89        /** Maximal transmission unit.
     90         */
    7691        size_t mtu;
    77         /** Actual device hardware address. */
    78         measured_string_t *addr;
    79         /** Actual device hardware address data. */
    80         char *addr_data;
     92        /** Actual device hardware address.
     93         */
     94        measured_string_ref addr;
     95        /** Actual device hardware address data.
     96         */
     97        char * addr_data;
    8198};
    8299
    83 /** Dummy nil protocol specific data. */
    84 struct nildummy_proto {
    85         /** Protocol service. */
     100/** Dummy nil protocol specific data.
     101 */
     102struct nildummy_proto{
     103        /** Protocol service.
     104         */
    86105        services_t service;
    87         /** Protocol module phone. */
     106        /** Protocol module phone.
     107         */
    88108        int phone;
    89109};
    90110
    91 /** Dummy nil global data. */
    92 struct nildummy_globals {
    93         /** Networking module phone. */
     111/** Dummy nil global data.
     112 */
     113struct  nildummy_globals{
     114        /** Networking module phone.
     115         */
    94116        int net_phone;
    95         /** Safety lock for devices. */
     117        /** Safety lock for devices.
     118         */
    96119        fibril_rwlock_t devices_lock;
    97         /** All known Ethernet devices. */
     120        /** All known Ethernet devices.
     121         */
    98122        nildummy_devices_t devices;
    99         /** Safety lock for protocols. */
     123        /** Safety lock for protocols.
     124         */
    100125        fibril_rwlock_t protos_lock;
    101         /** Default protocol. */
     126        /** Default protocol.
     127         */
    102128        nildummy_proto_t proto;
    103129};
Note: See TracChangeset for help on using the changeset viewer.