summaryrefslogtreecommitdiffstats
path: root/include/linux/if_wanpipe_common.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:20:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 15:20:36 -0700
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/if_wanpipe_common.h
downloadop-kernel-dev-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.zip
op-kernel-dev-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.tar.gz
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.h60
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 0000000..f25fec8
--- /dev/null
+++ b/include/linux/if_wanpipe_common.h
@@ -0,0 +1,60 @@
+/*****************************************************************************
+* if_wanipe_common.h Sangoma Driver/Socket common area definitions.
+*
+* Author: Nenad Corbic <ncorbic@sangoma.com>
+*
+* Copyright: (c) 2000 Sangoma Technologies Inc.
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version
+* 2 of the License, or (at your option) any later version.
+* ============================================================================
+* Jan 13, 2000 Nenad Corbic Initial version
+*****************************************************************************/
+
+
+#ifndef _WANPIPE_SOCK_DRIVER_COMMON_H
+#define _WANPIPE_SOCK_DRIVER_COMMON_H
+
+#include <linux/version.h>
+
+typedef struct {
+ struct net_device *slave;
+ atomic_t packet_sent;
+ atomic_t receive_block;
+ atomic_t command;
+ atomic_t disconnect;
+ atomic_t driver_busy;
+ long common_critical;
+ struct timer_list *tx_timer;
+ struct sock *sk; /* Wanpipe Sock bind's here */
+ int (*func)(struct sk_buff *skb, struct net_device *dev,
+ struct sock *sk);
+
+ struct work_struct wanpipe_work; /* deferred keventd work */
+ unsigned char rw_bind; /* Sock bind state */
+ unsigned char usedby;
+ unsigned char state;
+ unsigned char svc;
+ unsigned short lcn;
+ void *mbox;
+} wanpipe_common_t;
+
+
+enum {
+ WANSOCK_UNCONFIGURED, /* link/channel is not configured */
+ WANSOCK_DISCONNECTED, /* link/channel is disconnected */
+ WANSOCK_CONNECTING, /* connection is in progress */
+ WANSOCK_CONNECTED, /* link/channel is operational */
+ WANSOCK_LIMIT, /* for verification only */
+ WANSOCK_DUALPORT, /* for Dual Port cards */
+ WANSOCK_DISCONNECTING,
+ WANSOCK_BINDED,
+ WANSOCK_BIND_LISTEN,
+ WANSOCK_LISTEN
+};
+
+#endif
+
+
OpenPOWER on IntegriCloud