diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/if_wanpipe_common.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/if_wanpipe_common.h')
-rw-r--r-- | include/linux/if_wanpipe_common.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/linux/if_wanpipe_common.h b/include/linux/if_wanpipe_common.h new file mode 100644 index 000000000000..f25fec8ee2ca --- /dev/null +++ b/include/linux/if_wanpipe_common.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /***************************************************************************** | ||
2 | * if_wanipe_common.h Sangoma Driver/Socket common area definitions. | ||
3 | * | ||
4 | * Author: Nenad Corbic <ncorbic@sangoma.com> | ||
5 | * | ||
6 | * Copyright: (c) 2000 Sangoma Technologies Inc. | ||
7 | * | ||
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 | *****************************************************************************/ | ||
15 | |||
16 | |||
17 | #ifndef _WANPIPE_SOCK_DRIVER_COMMON_H | ||
18 | #define _WANPIPE_SOCK_DRIVER_COMMON_H | ||
19 | |||
20 | #include <linux/version.h> | ||
21 | |||
22 | typedef struct { | ||
23 | struct net_device *slave; | ||
24 | atomic_t packet_sent; | ||
25 | atomic_t receive_block; | ||
26 | atomic_t command; | ||
27 | atomic_t disconnect; | ||
28 | atomic_t driver_busy; | ||
29 | long common_critical; | ||
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, | ||
33 | struct sock *sk); | ||
34 | |||
35 | struct work_struct wanpipe_work; /* deferred keventd work */ | ||
36 | unsigned char rw_bind; /* Sock bind state */ | ||
37 | unsigned char usedby; | ||
38 | unsigned char state; | ||
39 | unsigned char svc; | ||
40 | unsigned short lcn; | ||
41 | void *mbox; | ||
42 | } wanpipe_common_t; | ||
43 | |||
44 | |||
45 | enum { | ||
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, | ||
53 | WANSOCK_BINDED, | ||
54 | WANSOCK_BIND_LISTEN, | ||
55 | WANSOCK_LISTEN | ||
56 | }; | ||
57 | |||
58 | #endif | ||
59 | |||
60 | |||