summaryrefslogtreecommitdiff
path: root/include/linux/if_wanpipe_common.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 18:11:38 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 18:11:38 -0800
commit1a0153507ffae9cf3350e76c12d441788c0191e1 (patch)
treed05a502b4fc05202c84c1667019460c08ea088cd /include/linux/if_wanpipe_common.h
parentb0683ac8928c4cf40646a6ce3eb6ffe94605acfa (diff)
v2.4.3.2 -> v2.4.3.3
- Hui-Fen Hsu: sis900 driver update - NIIBE Yutaka: Super-H update - Alan Cox: more resyncs (ARM down, but more to go) - David Miller: network zerocopy, Sparc sync, qlogic,FC fix, etc. - David Miller/me: get rid of various drivers hacks to do mmap alignment behind the back of the VM layer. Create a real protocol for it.
Diffstat (limited to 'include/linux/if_wanpipe_common.h')
-rw-r--r--include/linux/if_wanpipe_common.h67
1 files changed, 67 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..e1c95b5d4cda
--- /dev/null
+++ b/include/linux/if_wanpipe_common.h
@@ -0,0 +1,67 @@
+/*****************************************************************************
+* 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>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
+ #define netdevice_t struct net_device
+#else
+ #define netdevice_t struct device
+#endif
+
+
+typedef struct {
+ netdevice_t *slave;
+ atomic_t packet_sent;
+ atomic_t receive_block;
+ atomic_t command;
+ atomic_t disconnect;
+ atomic_t driver_busy;
+ unsigned char common_critical;
+ struct timer_list *tx_timer;
+ struct sock *sk; /* Wanpipe Sock bind's here */
+ int (*func) (struct sk_buff *, netdevice_t *,
+ struct sock *);
+
+ struct tq_struct wanpipe_task; /* Immediate BH handler task */
+ 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
+
+