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
20 #include <linux/version.h>
23 struct net_device *slave;
25 atomic_t receive_block;
30 struct timer_list *tx_timer;
31 struct sock *sk; /* Wanpipe Sock bind's here */
32 int (*func)(struct sk_buff *skb, struct net_device *dev,
35 struct work_struct wanpipe_work; /* deferred keventd work */
36 unsigned char rw_bind; /* Sock bind state */
46 WANSOCK_UNCONFIGURED, /* link/channel is not configured */
47 WANSOCK_DISCONNECTED, /* link/channel is disconnected */
48 WANSOCK_CONNECTING, /* connection is in progress */
49 WANSOCK_CONNECTED, /* link/channel is operational */
50 WANSOCK_LIMIT, /* for verification only */
51 WANSOCK_DUALPORT, /* for Dual Port cards */
52 WANSOCK_DISCONNECTING,