Changes in uspace/srv/net/include/nil_interface.h [91478aa:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/include/nil_interface.h
r91478aa raadf01e 71 71 * @returns Other error codes as defined for the generic_get_addr_req() function. 72 72 */ 73 #define nil_get_addr_req( nil_phone, device_id, address, data) \74 generic_get_addr_req( nil_phone, NET_NIL_ADDR, device_id, address, data)73 #define nil_get_addr_req(nil_phone, device_id, address, data) \ 74 generic_get_addr_req(nil_phone, NET_NIL_ADDR, device_id, address, data) 75 75 76 76 /** Returns the device broadcast hardware address. … … 84 84 * @returns Other error codes as defined for the generic_get_addr_req() function. 85 85 */ 86 #define nil_get_broadcast_addr_req( nil_phone, device_id, address, data) \87 generic_get_addr_req( nil_phone, NET_NIL_BROADCAST_ADDR, device_id, address, data)86 #define nil_get_broadcast_addr_req(nil_phone, device_id, address, data) \ 87 generic_get_addr_req(nil_phone, NET_NIL_BROADCAST_ADDR, device_id, address, data) 88 88 89 89 /** Sends the packet queue. … … 95 95 * @returns Other error codes as defined for the generic_send_msg() function. 96 96 */ 97 #define nil_send_msg( nil_phone, device_id, packet, sender) \98 generic_send_msg( nil_phone, NET_NIL_SEND, device_id, packet_get_id( packet ), sender, 0)97 #define nil_send_msg(nil_phone, device_id, packet, sender) \ 98 generic_send_msg(nil_phone, NET_NIL_SEND, device_id, packet_get_id(packet), sender, 0) 99 99 100 100 /** Returns the device packet dimension for sending. … … 106 106 * @returns Other error codes as defined for the generic_packet_size_req() function. 107 107 */ 108 #define nil_packet_size_req( nil_phone, device_id, packet_dimension) \109 generic_packet_size_req( nil_phone, NET_NIL_PACKET_SPACE, device_id, packet_dimension)108 #define nil_packet_size_req(nil_phone, device_id, packet_dimension) \ 109 generic_packet_size_req(nil_phone, NET_NIL_PACKET_SPACE, device_id, packet_dimension) 110 110 111 111 /** Registers new device or updates the MTU of an existing one. … … 119 119 * @returns Other error codes as defined for the generic_device_req() function. 120 120 */ 121 #define nil_device_req( nil_phone, device_id, mtu, netif_service) \122 generic_device_req( nil_phone, NET_NIL_DEVICE, device_id, mtu, netif_service)121 #define nil_device_req(nil_phone, device_id, mtu, netif_service) \ 122 generic_device_req(nil_phone, NET_NIL_DEVICE, device_id, mtu, netif_service) 123 123 124 124 /** Notifies the network interface layer about the device state change. … … 129 129 * @returns Other error codes as defined for each specific module device state function. 130 130 */ 131 int nil_device_state_msg( int nil_phone, device_id_t device_id, int state);131 int nil_device_state_msg(int nil_phone, device_id_t device_id, int state); 132 132 133 133 /** Passes the packet queue to the network interface layer. … … 140 140 * @returns Other error codes as defined for each specific module received function. 141 141 */ 142 int nil_received_msg( int nil_phone, device_id_t device_id, packet_t packet, services_t target);142 int nil_received_msg(int nil_phone, device_id_t device_id, packet_t packet, services_t target); 143 143 144 144 /** Creates bidirectional connection with the network interface layer module and registers the message receiver. … … 151 151 * @returns Other error codes as defined for the bind_service() function. 152 152 */ 153 #define nil_bind_service( service, device_id, me, receiver) \154 bind_service( service, device_id, me, 0, receiver);153 #define nil_bind_service(service, device_id, me, receiver) \ 154 bind_service(service, device_id, me, 0, receiver); 155 155 /*@}*/ 156 156
Note:
See TracChangeset
for help on using the changeset viewer.