Changes in uspace/lib/net/netif/netif_remote.c [42a9f27:995689d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/netif/netif_remote.c
r42a9f27 r995689d1 27 27 */ 28 28 29 /** @addtogroup libnet29 /** @addtogroup netif 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #include <netif_remote.h>38 #include <packet_client.h>39 #include <generic.h>40 41 37 #include <ipc/services.h> 42 38 #include <ipc/netif.h> … … 45 41 #include <adt/measured_strings.h> 46 42 #include <net/packet.h> 43 #include <packet_client.h> 47 44 #include <net/device.h> 45 #include <netif_remote.h> 46 #include <generic.h> 48 47 49 /** Return the device local hardware address.50 *51 * @param[in] netif_phone The network interface phone.52 * @param[in] device_id The device identifier.53 * @param[out] address The device local hardware address.54 * @param[out] data The address data.55 * @return EOK on success.56 * @return EBADMEM if the address parameter is NULL.57 * @return ENOENT if there no such device.58 * @return Other error codes as defined for the59 * netif_get_addr_message() function.60 */61 48 int netif_get_addr_req_remote(int netif_phone, device_id_t device_id, 62 49 measured_string_ref *address, char **data) … … 66 53 } 67 54 68 /** Probe the existence of the device. 69 * 70 * @param[in] netif_phone The network interface phone. 71 * @param[in] device_id The device identifier. 72 * @param[in] irq The device interrupt number. 73 * @param[in] io The device input/output address. 74 * @return EOK on success. 75 * @return Other error codes as defined for the 76 * netif_probe_message(). 77 */ 78 int 79 netif_probe_req_remote(int netif_phone, device_id_t device_id, int irq, int io) 55 int netif_probe_req_remote(int netif_phone, device_id_t device_id, int irq, int io) 80 56 { 81 57 return async_req_3_0(netif_phone, NET_NETIF_PROBE, device_id, irq, io); 82 58 } 83 59 84 /** Send the packet queue. 85 * 86 * @param[in] netif_phone The network interface phone. 87 * @param[in] device_id The device identifier. 88 * @param[in] packet The packet queue. 89 * @param[in] sender The sending module service. 90 * @return EOK on success. 91 * @return Other error codes as defined for the generic_send_msg() 92 * function. 93 */ 94 int 95 netif_send_msg_remote(int netif_phone, device_id_t device_id, packet_t packet, 60 int netif_send_msg_remote(int netif_phone, device_id_t device_id, packet_t packet, 96 61 services_t sender) 97 62 { … … 100 65 } 101 66 102 /** Start the device.103 *104 * @param[in] netif_phone The network interface phone.105 * @param[in] device_id The device identifier.106 * @return EOK on success.107 * @return Other error codes as defined for the find_device()108 * function.109 * @return Other error codes as defined for the110 * netif_start_message() function.111 */112 67 int netif_start_req_remote(int netif_phone, device_id_t device_id) 113 68 { … … 115 70 } 116 71 117 /** Stop the device.118 *119 * @param[in] netif_phone The network interface phone.120 * @param[in] device_id The device identifier.121 * @return EOK on success.122 * @return Other error codes as defined for the find_device()123 * function.124 * @return Other error codes as defined for the125 * netif_stop_message() function.126 */127 72 int netif_stop_req_remote(int netif_phone, device_id_t device_id) 128 73 { … … 130 75 } 131 76 132 /** Return the device usage statistics.133 *134 * @param[in] netif_phone The network interface phone.135 * @param[in] device_id The device identifier.136 * @param[out] stats The device usage statistics.137 * @return EOK on success.138 */139 77 int netif_stats_req_remote(int netif_phone, device_id_t device_id, 140 78 device_stats_ref stats) … … 161 99 * @param[in] receiver The message receiver. 162 100 * 163 * @return 164 * @return 165 * @return Other error codes as defined for the bind_service()166 * function.101 * @return The phone of the needed service. 102 * @return EOK on success. 103 * @return Other error codes as defined for the bind_service() function. 104 * 167 105 */ 168 int 169 netif_bind_service_remote(services_t service, device_id_t device_id, 170 services_t me, async_client_conn_t receiver) 106 int netif_bind_service_remote(services_t service, device_id_t device_id, services_t me, 107 async_client_conn_t receiver) 171 108 { 172 109 return bind_service(service, device_id, me, 0, receiver);
Note:
See TracChangeset
for help on using the changeset viewer.