Changeset efedee77 in mainline for uspace/lib/net/netif/netif_remote.c


Ignore:
Timestamp:
2010-11-02T22:38:46Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af894a21
Parents:
aab02fb (diff), e06ef614 (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/lib/net/netif/netif_remote.c

    raab02fb refedee77  
    2727 */
    2828
    29 /** @addtogroup netif
     29/** @addtogroup libnet
    3030 * @{
    3131 */
     
    3535 */
    3636
     37#include <netif_remote.h>
     38#include <packet_client.h>
     39#include <generic.h>
     40
    3741#include <ipc/services.h>
     42#include <ipc/netif.h>
    3843
    39 #include <net_modules.h>
     44#include <net/modules.h>
    4045#include <adt/measured_strings.h>
    41 #include <packet/packet.h>
    42 #include <packet/packet_client.h>
    43 #include <net_device.h>
    44 #include <netif_remote.h>
    45 #include <netif_messages.h>
     46#include <net/packet.h>
     47#include <net/device.h>
    4648
     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 the
     59 *                      netif_get_addr_message() function.
     60 */
    4761int netif_get_addr_req_remote(int netif_phone, device_id_t device_id,
    4862    measured_string_ref *address, char **data)
     
    5266}
    5367
    54 int netif_probe_req_remote(int netif_phone, device_id_t device_id, int irq, int io)
     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 */
     78int
     79netif_probe_req_remote(int netif_phone, device_id_t device_id, int irq, int io)
    5580{
    5681        return async_req_3_0(netif_phone, NET_NETIF_PROBE, device_id, irq, io);
    5782}
    5883
    59 int netif_send_msg_remote(int netif_phone, device_id_t device_id, packet_t packet,
     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 */
     94int
     95netif_send_msg_remote(int netif_phone, device_id_t device_id, packet_t packet,
    6096    services_t sender)
    6197{
     
    64100}
    65101
     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 the
     110 *                      netif_start_message() function.
     111 */
    66112int netif_start_req_remote(int netif_phone, device_id_t device_id)
    67113{
     
    69115}
    70116
     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 the
     125 *                      netif_stop_message() function.
     126 */
    71127int netif_stop_req_remote(int netif_phone, device_id_t device_id)
    72128{
     
    74130}
    75131
     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 */
    76139int netif_stats_req_remote(int netif_phone, device_id_t device_id,
    77140    device_stats_ref stats)
     
    90153}
    91154
    92 int netif_bind_service_remote(services_t service, device_id_t device_id, services_t me,
    93     async_client_conn_t receiver)
     155/** Create bidirectional connection with the network interface module and
     156 * registers the message receiver.
     157 *
     158 * @param[in] service   The network interface module service.
     159 * @param[in] device_id The device identifier.
     160 * @param[in] me        The requesting module service.
     161 * @param[in] receiver  The message receiver.
     162 *
     163 * @return              The phone of the needed service.
     164 * @return              EOK on success.
     165 * @return              Other error codes as defined for the bind_service()
     166 *                      function.
     167 */
     168int
     169netif_bind_service_remote(services_t service, device_id_t device_id,
     170    services_t me, async_client_conn_t receiver)
    94171{
    95172        return bind_service(service, device_id, me, 0, receiver);
Note: See TracChangeset for help on using the changeset viewer.