Changeset 89c57b6 in mainline for uspace/lib/c/include/ipc/netif.h


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (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 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/netif.h

    rcefb126 r89c57b6  
    2727 */
    2828
    29 /** @addtogroup netif
     29/** @addtogroup libc
    3030 * @{
    3131 */
     
    3535 */
    3636
    37 #ifndef __NET_NETIF_MESSAGES_H__
    38 #define __NET_NETIF_MESSAGES_H__
     37#ifndef LIBC_NETIF_MESSAGES_H_
     38#define LIBC_NETIF_MESSAGES_H_
    3939
    40 #include <ipc/ipc.h>
     40#include <ipc/net.h>
    4141
    42 #include <net_messages.h>
    43 
    44 /** Network interface common module messages.
    45  */
     42/** Network interface common module messages. */
    4643typedef enum {
    4744        /** Probe device message.
    48          *  @see netif_probe_req()
     45         * @see netif_probe_req()
    4946         */
    5047        NET_NETIF_PROBE = NET_NETIF_FIRST,
     48       
    5149        /** Send packet message.
    52          *  @see netif_send_msg()
     50         * @see netif_send_msg()
    5351         */
    5452        NET_NETIF_SEND,
     53       
    5554        /** Start device message.
    56          *  @see netif_start_req()
     55         * @see netif_start_req()
    5756         */
    5857        NET_NETIF_START,
     58       
    5959        /** Get device usage statistics message.
    60          *  @see netif_stats_req()
     60         * @see netif_stats_req()
    6161         */
    6262        NET_NETIF_STATS,
     63       
    6364        /** Stop device message.
    64          *  @see netif_stop_req()
     65         * @see netif_stop_req()
    6566         */
    6667        NET_NETIF_STOP,
     68       
    6769        /** Get device address message.
    68          *  @see netif_get_addr_req()
     70         * @see netif_get_addr_req()
    6971         */
    7072        NET_NETIF_GET_ADDR,
    7173} netif_messages;
    7274
    73 /** @name Network interface specific message parameters definitions
    74  */
     75/** @name Network interface specific message parameters definitions */
    7576/*@{*/
    7677
    7778/** Return the interrupt number message parameter.
    78  * @param[in] call The message call structure.
     79 *
     80 * @param[in] call Mmessage call structure.
     81 *
    7982 */
    80 #define NETIF_GET_IRQ(call) \
    81         ({int irq = (int) IPC_GET_ARG2(*call); irq;})
     83#define NETIF_GET_IRQ(call) ((int) IPC_GET_ARG2(call))
    8284
    8385/** Return the input/output address message parameter.
    84  * @param[in] call The message call structure.
     86 *
     87 * @param[in] call Message call structure.
     88 *
    8589 */
    86 #define NETIF_GET_IO(call) \
    87         ({int io = (int) IPC_GET_ARG3(*call); io;})
     90#define NETIF_GET_IO(call) ((void *) IPC_GET_ARG3(call))
    8891
    8992/*@}*/
Note: See TracChangeset for help on using the changeset viewer.