Changeset 7715994 in mainline for uspace/srv/net/netif/netif.h


Ignore:
Timestamp:
2010-03-13T12:17:02Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ba20a6b
Parents:
d0febca (diff), 2070570 (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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/netif/netif.h

    rd0febca r7715994  
    6969 *  @see device.h
    7070 */
    71 DEVICE_MAP_DECLARE( device_map, device_t );
     71DEVICE_MAP_DECLARE(device_map, device_t);
    7272
    7373/** Network interface device specific data.
     
    7676        /** Device identifier.
    7777         */
    78         device_id_t     device_id;
     78        device_id_t device_id;
    7979        /** Receiving network interface layer phone.
    8080         */
    81         int             nil_phone;
     81        int nil_phone;
    8282        /** Actual device state.
    8383         */
    84         device_state_t  state;
     84        device_state_t state;
    8585        /** Driver specific data.
    8686         */
    87         void *          specific;
     87        void * specific;
    8888};
    8989
     
    9393        /** Networking module phone.
    9494         */
    95         int             net_phone;
     95        int net_phone;
    9696        /**     Device map.
    9797         */
    98         device_map_t    device_map;
     98        device_map_t device_map;
    9999        /** Safety lock.
    100100         */
    101         fibril_rwlock_t lock;
     101        fibril_rwlock_t lock;
    102102};
    103103
     
    109109 *  @returns EPERM if the device is not initialized.
    110110 */
    111 int     find_device( device_id_t device_id, device_ref * device );
     111int find_device(device_id_t device_id, device_ref * device);
    112112
    113113/** Clears the usage statistics.
    114114 *  @param[in] stats The usage statistics.
    115115 */
    116 void    null_device_stats( device_stats_ref stats );
     116void null_device_stats(device_stats_ref stats);
    117117
    118118// prepared for future optimalizations
     
    120120 *  @param[in] packet_id The packet identifier.
    121121 */
    122 void    netif_pq_release( packet_id_t packet_id );
     122void netif_pq_release(packet_id_t packet_id);
    123123
    124124/** Allocates new packet to handle the given content size.
     
    127127 *  @returns NULL if there is an error.
    128128 */
    129 packet_t netif_packet_get_1( size_t content );
     129packet_t netif_packet_get_1(size_t content);
    130130
    131131/** Processes the netif module messages.
     
    140140 *  @see IS_NET_NETIF_MESSAGE()
    141141 */
    142 int     netif_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
     142int netif_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count);
    143143
    144144/** Initializes the netif module.
     
    148148 *  @returns Other error codes as defined for each specific module message function.
    149149 */
    150 int     netif_init_module( async_client_conn_t client_connection );
     150int netif_init_module(async_client_conn_t client_connection);
    151151
    152152/** Starts and maintains the netif module until terminated.
    153153 *  @returns EOK after the module is terminated.
    154154 */
    155 int netif_run_module( void );
     155int netif_run_module(void);
    156156
    157157#endif
Note: See TracChangeset for help on using the changeset viewer.