Ignore:
File:
1 edited

Legend:

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

    r609243f4 rfe8dfa6  
    3434#define __NET_NIL_REMOTE_H__
    3535
     36#include <ipc/services.h>
    3637#include <net/device.h>
    3738#include <net/packet.h>
    38 #include <devman.h>
    3939#include <generic.h>
    40 #include <async.h>
    4140
    4241#define nil_bind_service(service, device_id, me, receiver) \
    4342        bind_service(service, device_id, me, 0, receiver)
    4443
    45 #define nil_packet_size_req(sess, device_id, packet_dimension) \
    46         generic_packet_size_req_remote(sess, NET_NIL_PACKET_SPACE, \
     44#define nil_packet_size_req(nil_phone, device_id, packet_dimension) \
     45        generic_packet_size_req_remote(nil_phone, NET_NIL_PACKET_SPACE, \
    4746            device_id, packet_dimension)
    4847
    49 #define nil_get_addr_req(sess, device_id, address, data) \
    50         generic_get_addr_req(sess, NET_NIL_ADDR, device_id, address, data)
     48#define nil_get_addr_req(nil_phone, device_id, address, data) \
     49        generic_get_addr_req(nil_phone, NET_NIL_ADDR, device_id, address, data)
    5150
    52 #define nil_get_broadcast_addr_req(sess, device_id, address, data) \
    53         generic_get_addr_req(sess, NET_NIL_BROADCAST_ADDR, device_id, \
     51#define nil_get_broadcast_addr_req(nil_phone, device_id, address, data) \
     52        generic_get_addr_req(nil_phone, NET_NIL_BROADCAST_ADDR, device_id, \
    5453            address, data)
    5554
    56 #define nil_send_msg(sess, device_id, packet, sender) \
    57         generic_send_msg_remote(sess, NET_NIL_SEND, device_id, \
     55#define nil_send_msg(nil_phone, device_id, packet, sender) \
     56        generic_send_msg_remote(nil_phone, NET_NIL_SEND, device_id, \
    5857            packet_get_id(packet), sender, 0)
    5958
    60 extern int nil_device_req(async_sess_t *, nic_device_id_t, devman_handle_t,
    61     size_t);
    62 extern int nil_device_state_msg(async_sess_t *, nic_device_id_t, sysarg_t);
    63 extern int nil_received_msg(async_sess_t *, nic_device_id_t, packet_id_t);
    64 extern int nil_addr_changed_msg(async_sess_t *, nic_device_id_t,
    65     const nic_address_t *);
     59#define nil_device_req(nil_phone, device_id, mtu, netif_service) \
     60        generic_device_req_remote(nil_phone, NET_NIL_DEVICE, device_id, mtu, \
     61            netif_service)
     62
     63extern int nil_device_state_msg(int, device_id_t, int);
     64extern int nil_received_msg(int, device_id_t, packet_t *, services_t);
    6665
    6766#endif
Note: See TracChangeset for help on using the changeset viewer.