1 /*****************************************************************************
2 * if_wanipe_common.h Sangoma Driver/Socket common area definitions.
4 * Author: Nenad Corbic <ncorbic@sangoma.com>
6 * Copyright: (c) 2000 Sangoma Technologies Inc.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version.
12 * ============================================================================
13 * Jan 13, 2000 Nenad Corbic Initial version
14 *****************************************************************************/
17 #ifndef _WANPIPE_SOCK_DRIVER_COMMON_H
18 #define _WANPIPE_SOCK_DRIVER_COMMON_H
21 struct net_device
*slave
;
23 atomic_t receive_block
;
28 struct timer_list
*tx_timer
;
29 struct sock
*sk
; /* Wanpipe Sock bind's here */
30 int (*func
)(struct sk_buff
*skb
, struct net_device
*dev
,
33 struct work_struct wanpipe_work
; /* deferred keventd work */
34 unsigned char rw_bind
; /* Sock bind state */
44 WANSOCK_UNCONFIGURED
, /* link/channel is not configured */
45 WANSOCK_DISCONNECTED
, /* link/channel is disconnected */
46 WANSOCK_CONNECTING
, /* connection is in progress */
47 WANSOCK_CONNECTED
, /* link/channel is operational */
48 WANSOCK_LIMIT
, /* for verification only */
49 WANSOCK_DUALPORT
, /* for Dual Port cards */
50 WANSOCK_DISCONNECTING
,