Changeset 6b82009 in mainline for uspace/lib/net/include/netif_skel.h


Ignore:
Timestamp:
2011-06-22T20:41:41Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef09a7a
Parents:
55091847
Message:

networking stack: convert to the new async framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/include/netif_skel.h

    r55091847 r6b82009  
    3939#define NET_NETIF_SKEL_H_
    4040
    41 #include <async.h>
    4241#include <fibril_synch.h>
    4342#include <ipc/services.h>
    44 
    4543#include <adt/measured_strings.h>
    4644#include <net/device.h>
    4745#include <net/packet.h>
     46#include <async.h>
    4847
    4948/** Network interface device specific data. */
    5049typedef struct {
    51         device_id_t device_id;  /**< Device identifier. */
    52         int nil_phone;          /**< Receiving network interface layer phone. */
    53         device_state_t state;   /**< Actual device state. */
    54         void *specific;         /**< Driver specific data. */
     50        device_id_t device_id;   /**< Device identifier. */
     51        device_state_t state;    /**< Actual device state. */
     52        void *specific;          /**< Driver specific data. */
    5553} netif_device_t;
    5654
     
    6563/** Network interface module skeleton global data. */
    6664typedef struct {
    67         int net_phone;                  /**< Networking module phone. */
     65        async_sess_t *sess;             /**< Networking module session. */
     66        async_sess_t *nil_sess;         /**< Network interface layer session. */
    6867        netif_device_map_t device_map;  /**< Device map. */
    6968        fibril_rwlock_t lock;           /**< Safety lock. */
     
    127126 * @return Other error codes as defined for the specific module
    128127 *         message implementation.
    129  
    130128 *
    131129 */
     
    207205extern packet_t *netif_packet_get_1(size_t);
    208206
    209 extern int netif_module_start(void);
     207extern int netif_module_start(sysarg_t);
    210208
    211209#endif
Note: See TracChangeset for help on using the changeset viewer.