Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a9b6bec in mainline for uspace/lib/c/include/ipc/net.h


Ignore:
Timestamp:
2010-12-14T20:19:41Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
11658b64
Parents:
37f7cfe (diff), 228e490 (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

Extra changes: ipcarg_t is sysarg_t and
IPC_GET_METHOD is IPC_GET_IMETHOD.

File:
1 edited

Legend:

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

    r37f7cfe ra9b6bec  
    192192 */
    193193#define IS_NET_MESSAGE(call) \
    194         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_FIRST, NET_LAST)
     194        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_FIRST, NET_LAST)
    195195
    196196/** Returns a value indicating whether the IPC call is an ARP message.
     
    198198 */
    199199#define IS_NET_ARP_MESSAGE(call) \
    200         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_ARP_FIRST, NET_ARP_LAST)
     200        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_ARP_FIRST, NET_ARP_LAST)
    201201
    202202/** Returns a value indicating whether the IPC call is an Ethernet message.
     
    204204 */
    205205#define IS_NET_ETH_MESSAGE(call) \
    206         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_ETH_FIRST, NET_ETH_LAST)
     206        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_ETH_FIRST, NET_ETH_LAST)
    207207
    208208/** Returns a value indicating whether the IPC call is an ICMP message.
     
    210210 */
    211211#define IS_NET_ICMP_MESSAGE(call) \
    212         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_ICMP_FIRST, NET_ICMP_LAST)
     212        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_ICMP_FIRST, NET_ICMP_LAST)
    213213
    214214/** Returns a value indicating whether the IPC call is an inter-network layer
     
    217217 */
    218218#define IS_NET_IL_MESSAGE(call) \
    219         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_IL_FIRST, NET_IL_LAST)
     219        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_IL_FIRST, NET_IL_LAST)
    220220
    221221/** Returns a value indicating whether the IPC call is an IP message.
     
    223223 */
    224224#define IS_NET_IP_MESSAGE(call) \
    225         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_IP_FIRST, NET_IP_LAST)
     225        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_IP_FIRST, NET_IP_LAST)
    226226
    227227/** Returns a value indicating whether the IPC call is a generic networking
     
    230230 */
    231231#define IS_NET_NET_MESSAGE(call) \
    232         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_NET_FIRST, NET_NET_LAST)
     232        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_NET_FIRST, NET_NET_LAST)
    233233
    234234/** Returns a value indicating whether the IPC call is a network interface layer
     
    237237 */
    238238#define IS_NET_NIL_MESSAGE(call) \
    239         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_NIL_FIRST, NET_NIL_LAST)
     239        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_NIL_FIRST, NET_NIL_LAST)
    240240
    241241/** Returns a value indicating whether the IPC call is a packet manaagement
     
    244244 */
    245245#define IS_NET_PACKET_MESSAGE(call) \
    246         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_PACKET_FIRST, NET_PACKET_LAST)
     246        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_PACKET_FIRST, NET_PACKET_LAST)
    247247
    248248/** Returns a value indicating whether the IPC call is a socket message.
     
    250250 */
    251251#define IS_NET_SOCKET_MESSAGE(call) \
    252         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_SOCKET_FIRST, NET_SOCKET_LAST)
     252        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_SOCKET_FIRST, NET_SOCKET_LAST)
    253253
    254254/** Returns a value indicating whether the IPC call is a TCP message.
     
    256256 */
    257257#define IS_NET_TCP_MESSAGE(call) \
    258         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_TCP_FIRST, NET_TCP_LAST)
     258        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_TCP_FIRST, NET_TCP_LAST)
    259259
    260260/** Returns a value indicating whether the IPC call is a transport layer message.
     
    262262 */
    263263#define IS_NET_TL_MESSAGE(call) \
    264         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_TL_FIRST, NET_TL_LAST)
     264        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_TL_FIRST, NET_TL_LAST)
    265265
    266266/** Returns a value indicating whether the IPC call is a UDP message.
     
    268268 */
    269269#define IS_NET_UDP_MESSAGE(call) \
    270         IS_IN_INTERVAL(IPC_GET_METHOD(*call), NET_UDP_FIRST, NET_UDP_LAST)
     270        IS_IN_INTERVAL(IPC_GET_IMETHOD(*call), NET_UDP_FIRST, NET_UDP_LAST)
    271271
    272272/*@}*/
     
    370370#define IPC_SET_DEVICE(answer, value) \
    371371        do { \
    372                 ipcarg_t argument = (ipcarg_t) (value); \
     372                sysarg_t argument = (sysarg_t) (value); \
    373373                IPC_SET_ARG1(*answer, argument); \
    374374        } while (0)
     
    379379#define IPC_SET_ADDR(answer, value) \
    380380        do { \
    381                 ipcarg_t argument = (ipcarg_t) (value); \
     381                sysarg_t argument = (sysarg_t) (value); \
    382382                IPC_SET_ARG1(*answer, argument); \
    383383        } while (0)
     
    388388#define IPC_SET_PREFIX(answer, value) \
    389389        do { \
    390                 ipcarg_t argument = (ipcarg_t) (value); \
     390                sysarg_t argument = (sysarg_t) (value); \
    391391                IPC_SET_ARG2(*answer, argument); \
    392392        } while (0)
     
    397397#define IPC_SET_CONTENT(answer, value) \
    398398        do { \
    399                 ipcarg_t argument = (ipcarg_t) (value); \
     399                sysarg_t argument = (sysarg_t) (value); \
    400400                IPC_SET_ARG3(*answer, argument); \
    401401        } while (0)
     
    406406#define IPC_SET_SUFFIX(answer, value) \
    407407        do { \
    408                 ipcarg_t argument = (ipcarg_t) (value); \
     408                sysarg_t argument = (sysarg_t) (value); \
    409409                IPC_SET_ARG4(*answer, argument); \
    410410        } while (0)
Note: See TracChangeset for help on using the changeset viewer.