Subversion Repositories HelenOS

Rev

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

Rev 4261 Rev 4307
Line 35... Line 35...
35
 */
35
 */
36
 
36
 
37
#ifndef __NET_NETIF_H__
37
#ifndef __NET_NETIF_H__
38
#define __NET_NETIF_H__
38
#define __NET_NETIF_H__
39
 
39
 
-
 
40
#include <async.h>
40
#include <rwlock.h>
41
#include <rwlock.h>
41
 
42
 
-
 
43
#include <ipc/ipc.h>
-
 
44
 
-
 
45
#include "../err.h"
-
 
46
 
42
#include "../include/device.h"
47
#include "../include/device.h"
43
 
48
 
-
 
49
#include "../structures/packet/packet.h"
-
 
50
 
44
/** Network interface module skeleton global data.
51
/** Network interface module skeleton global data.
45
 */
52
 */
46
typedef struct netif_globals    netif_globals_t;
53
typedef struct netif_globals    netif_globals_t;
47
 
54
 
48
/** Type definition of the device specific data.
55
/** Type definition of the device specific data.
Line 81... Line 88...
81
/** Network interface module skeleton global data.
88
/** Network interface module skeleton global data.
82
 */
89
 */
83
struct  netif_globals{
90
struct  netif_globals{
84
    /** Networking module phone.
91
    /** Networking module phone.
85
     */
92
     */
86
    int     networking_phone;
93
    int     net_phone;
87
    /** Device map.
94
    /** Device map.
88
     */
95
     */
89
    device_map_t    device_map;
96
    device_map_t    device_map;
90
    /** Safety lock.
97
    /** Safety lock.
91
     */
98
     */
Line 113... Line 120...
113
 
120
 
114
/** \todo
121
/** \todo
115
 */
122
 */
116
packet_t netif_packet_get_1( size_t content );
123
packet_t netif_packet_get_1( size_t content );
117
 
124
 
-
 
125
int netif_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count );
-
 
126
int netif_init_module( async_client_conn_t client_connection );
-
 
127
int netif_run_module( void );
-
 
128
 
118
#endif
129
#endif
119
 
130
 
120
/** @}
131
/** @}
121
 */
132
 */
122
 
133