Subversion Repositories HelenOS

Rev

Rev 4351 | Rev 4578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4351 Rev 4502
Line 48... Line 48...
48
 
48
 
49
#define NET_NETIF_COUNT     8
49
#define NET_NETIF_COUNT     8
50
#define NET_NET_COUNT       9
50
#define NET_NET_COUNT       9
51
#define NET_NIL_COUNT       7
51
#define NET_NIL_COUNT       7
52
#define NET_ETH_COUNT       0
52
#define NET_ETH_COUNT       0
53
#define NET_IL_COUNT        4
53
#define NET_IL_COUNT        5
54
#define NET_IP_COUNT        0
54
#define NET_IP_COUNT        2
55
#define NET_ARP_COUNT       4
55
#define NET_ARP_COUNT       4
56
#define NET_RARP_COUNT      0
56
#define NET_RARP_COUNT      0
57
#define NET_ICMP_COUNT      0
57
#define NET_ICMP_COUNT      0
-
 
58
#define NET_TL_COUNT        1
58
#define NET_UDP_COUNT       0
59
#define NET_UDP_COUNT       0
59
#define NET_TCP_COUNT       0
60
#define NET_TCP_COUNT       0
60
#define NET_PACKET_COUNT    5
61
#define NET_PACKET_COUNT    5
61
#define NET_SOCKET_COUNT    0
62
#define NET_SOCKET_COUNT    0
62
 
63
 
Line 82... Line 83...
82
#define NET_ARP_LAST        ( NET_ARP_FIRST + NET_ARP_COUNT )
83
#define NET_ARP_LAST        ( NET_ARP_FIRST + NET_ARP_COUNT )
83
#define NET_RARP_FIRST      ( NET_ARP_LAST + 0 )
84
#define NET_RARP_FIRST      ( NET_ARP_LAST + 0 )
84
#define NET_RARP_LAST       ( NET_RARP_FIRST + NET_RARP_COUNT )
85
#define NET_RARP_LAST       ( NET_RARP_FIRST + NET_RARP_COUNT )
85
#define NET_ICMP_FIRST      ( NET_RARP_LAST + 0 )
86
#define NET_ICMP_FIRST      ( NET_RARP_LAST + 0 )
86
#define NET_ICMP_LAST       ( NET_ICMP_FIRST + NET_ICMP_COUNT )
87
#define NET_ICMP_LAST       ( NET_ICMP_FIRST + NET_ICMP_COUNT )
-
 
88
 
87
#define NET_UDP_FIRST       ( NET_ICMP_LAST + 0 )
89
#define NET_TL_FIRST        ( NET_ICMP_LAST + 0 )
-
 
90
#define NET_TL_LAST         ( NET_TL_FIRST + NET_TL_COUNT )
-
 
91
#define NET_UDP_FIRST       ( NET_TL_LAST + 0 )
88
#define NET_UDP_LAST        ( NET_UDP_FIRST + NET_UDP_COUNT )
92
#define NET_UDP_LAST        ( NET_UDP_FIRST + NET_UDP_COUNT )
89
#define NET_TCP_FIRST       ( NET_UDP_LAST + 0 )
93
#define NET_TCP_FIRST       ( NET_UDP_LAST + 0 )
90
#define NET_TCP_LAST        ( NET_TCP_FIRST + NET_TCP_COUNT )
94
#define NET_TCP_LAST        ( NET_TCP_FIRST + NET_TCP_COUNT )
91
 
95
 
92
#define NET_SOCKET_FIRST    ( NET_TCP_LAST + 0 )
96
#define NET_SOCKET_FIRST    ( NET_TCP_LAST + 0 )
Line 107... Line 111...
107
#define IS_NET_ETH_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ETH_FIRST, NET_ETH_LAST )
111
#define IS_NET_ETH_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ETH_FIRST, NET_ETH_LAST )
108
#define IS_NET_IL_MESSAGE( call )       IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IL_FIRST, NET_IL_LAST )
112
#define IS_NET_IL_MESSAGE( call )       IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IL_FIRST, NET_IL_LAST )
109
#define IS_NET_IP_MESSAGE( call )       IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IP_FIRST, NET_IP_LAST )
113
#define IS_NET_IP_MESSAGE( call )       IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_IP_FIRST, NET_IP_LAST )
110
#define IS_NET_ARP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ARP_FIRST, NET_ARP_LAST )
114
#define IS_NET_ARP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_ARP_FIRST, NET_ARP_LAST )
111
#define IS_NET_RARP_MESSAGE( call )     IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_RARP_FIRST, NET_RARP_LAST )
115
#define IS_NET_RARP_MESSAGE( call )     IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_RARP_FIRST, NET_RARP_LAST )
-
 
116
#define IS_NET_TL_MESSAGE( call )       IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_TL_FIRST, NET_TL_LAST )
112
#define IS_NET_UDP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_UDP_FIRST, NET_UDP_LAST )
117
#define IS_NET_UDP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_UDP_FIRST, NET_UDP_LAST )
113
#define IS_NET_TCP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_TCP_FIRST, NET_TCP_LAST )
118
#define IS_NET_TCP_MESSAGE( call )      IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_TCP_FIRST, NET_TCP_LAST )
114
#define IS_NET_SOCKET_MESSAGE( call )   IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_SOCKET_FIRST, NET_SOCKET_LAST )
119
#define IS_NET_SOCKET_MESSAGE( call )   IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_SOCKET_FIRST, NET_SOCKET_LAST )
115
#define IS_NET_PACKET_MESSAGE( call )   IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_PACKET_FIRST, NET_PACKET_LAST )
120
#define IS_NET_PACKET_MESSAGE( call )   IS_IN_INTERVAL( IPC_GET_METHOD( * call ), NET_PACKET_FIRST, NET_PACKET_LAST )
116
 
121
 
Line 119... Line 124...
119
#define IPC_GET_DEVICE( call )      ( device_id_t ) IPC_GET_ARG1( * call )
124
#define IPC_GET_DEVICE( call )      ( device_id_t ) IPC_GET_ARG1( * call )
120
 
125
 
121
/** Returns the packet identifier message parameter.
126
/** Returns the packet identifier message parameter.
122
 */
127
 */
123
#define IPC_GET_PACKET( call )      ( packet_id_t ) IPC_GET_ARG2( * call )
128
#define IPC_GET_PACKET( call )      ( packet_id_t ) IPC_GET_ARG2( * call )
124
#define IPC_GET_COUNT( call )       ( int ) IPC_GET_ARG2( * call )
129
#define IPC_GET_COUNT( call )       ( size_t ) IPC_GET_ARG2( * call )
125
#define IPC_GET_STATE( call )       ( device_state_t ) IPC_GET_ARG2( * call )
130
#define IPC_GET_STATE( call )       ( device_state_t ) IPC_GET_ARG2( * call )
126
 
131
 
127
/** Returns the device driver service message parameter.
132
/** Returns the device driver service message parameter.
128
 */
133
 */
129
#define IPC_GET_SERVICE( call )     ( services_t ) IPC_GET_ARG3( * call )
134
#define IPC_GET_SERVICE( call )     ( services_t ) IPC_GET_ARG3( * call )