Changeset 8b5690f in mainline for uspace/lib/c/include/ipc/netif.h


Ignore:
Timestamp:
2011-02-03T05:11:01Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba38f72c
Parents:
22027b6e (diff), 86d7bfa (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/c/include/ipc/netif.h

    r22027b6e r8b5690f  
    3838#define LIBC_NETIF_MESSAGES_H_
    3939
    40 #include <ipc/ipc.h>
    4140#include <ipc/net.h>
    4241
     
    4746         */
    4847        NET_NETIF_PROBE = NET_NETIF_FIRST,
     48       
    4949        /** Send packet message.
    5050         * @see netif_send_msg()
    5151         */
    5252        NET_NETIF_SEND,
     53       
    5354        /** Start device message.
    5455         * @see netif_start_req()
    5556         */
    5657        NET_NETIF_START,
     58       
    5759        /** Get device usage statistics message.
    5860         * @see netif_stats_req()
    5961         */
    6062        NET_NETIF_STATS,
     63       
    6164        /** Stop device message.
    6265         * @see netif_stop_req()
    6366         */
    6467        NET_NETIF_STOP,
     68       
    6569        /** Get device address message.
    6670         * @see netif_get_addr_req()
     
    7377
    7478/** Return the interrupt number message parameter.
    75  * @param[in] call The message call structure.
     79 *
     80 * @param[in] call Mmessage call structure.
     81 *
    7682 */
    77 #define NETIF_GET_IRQ(call) \
    78         ({ \
    79                 int irq = (int) IPC_GET_ARG2(*call); \
    80                 irq; \
    81         })
     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         ({ \
    88                 int io = (int) IPC_GET_ARG3(*call); \
    89                 io; \
    90         })
     90#define NETIF_GET_IO(call) ((void *) IPC_GET_ARG3(call))
    9191
    9292/*@}*/
Note: See TracChangeset for help on using the changeset viewer.