Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
68300d2b
Commit
68300d2b
authored
Mar 06, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove 2.0/2.2 stuff from wanrouter
parent
3a6167a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
97 deletions
+8
-97
include/linux/wanpipe.h
include/linux/wanpipe.h
+6
-70
include/linux/wanrouter.h
include/linux/wanrouter.h
+2
-27
No files found.
include/linux/wanpipe.h
View file @
68300d2b
...
@@ -39,59 +39,7 @@
...
@@ -39,59 +39,7 @@
#ifndef _WANPIPE_H
#ifndef _WANPIPE_H
#define _WANPIPE_H
#define _WANPIPE_H
#include <linux/version.h>
#define netdevice_t struct net_device
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
#define LINUX_2_4
#define netdevice_t struct net_device
#define FREE_READ 1
#define FREE_WRITE 0
#define stop_net_queue(a) netif_stop_queue(a)
#define start_net_queue(a) netif_start_queue(a)
#define is_queue_stopped(a) netif_queue_stopped(a)
#define wake_net_dev(a) netif_wake_queue(a)
#define is_dev_running(a) netif_running(a)
#define wan_dev_kfree_skb(a,b) dev_kfree_skb_any(a)
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
#define LINUX_2_1
#define netdevice_t struct device
#define FREE_READ 1
#define FREE_WRITE 0
#define stop_net_queue(a) (set_bit(0, &##a->tbusy))
#define start_net_queue(a) (clear_bit(0,&##a->tbusy))
#define is_queue_stopped(a) (##a->tbusy)
#define wake_net_dev(a) {clear_bit(0,&##a->tbusy);mark_bh(NET_BH);}
#define is_dev_running(a) (test_bit(0,&##a->start))
#define wan_dev_kfree_skb(a,b) dev_kfree_skb(a)
#else
#define LINUX_2_0
#define netdevice_t struct device
#define test_and_set_bit set_bit
#define net_ratelimit() 1
#define stop_net_queue(a) (set_bit(0, &##a->tbusy))
#define start_net_queue(a) (clear_bit(0,&##a->tbusy))
#define is_queue_stopped(a) (##a->tbusy)
#define wake_net_dev(a) {clear_bit(0,&##a->tbusy);mark_bh(NET_BH);}
#define is_dev_running(a) (test_bit(0,(void*)&##a->start))
#define wan_dev_kfree_skb(a,b) dev_kfree_skb(a,b)
#define spin_lock_init(a)
#define spin_lock(a)
#define spin_unlock(a)
#endif
#include <linux/wanrouter.h>
#include <linux/wanrouter.h>
...
@@ -121,21 +69,11 @@
...
@@ -121,21 +69,11 @@
#define MAX_LCN_NUM 4095
/* Maximum lcn number */
#define MAX_LCN_NUM 4095
/* Maximum lcn number */
#define MAX_FT1_RETRY 100
#define MAX_FT1_RETRY 100
#ifdef LINUX_2_4
#ifndef AF_WANPIPE
#ifndef AF_WANPIPE
#define AF_WANPIPE 25
#define AF_WANPIPE 25
#ifndef PF_WANPIPE
#ifndef PF_WANPIPE
#define PF_WANPIPE AF_WANPIPE
#define PF_WANPIPE AF_WANPIPE
#endif
#endif
#endif
#else
#ifndef AF_WANPIPE
#define AF_WANPIPE 24
#ifndef PF_WANPIPE
#define PF_WANPIPE AF_WANPIPE
#endif
#endif
#endif
#endif
...
@@ -321,12 +259,10 @@ typedef struct {
...
@@ -321,12 +259,10 @@ typedef struct {
#include <linux/sdladrv.h>
/* SDLA support module API definitions */
#include <linux/sdladrv.h>
/* SDLA support module API definitions */
#include <linux/sdlasfm.h>
/* SDLA firmware module definitions */
#include <linux/sdlasfm.h>
/* SDLA firmware module definitions */
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#ifdef LINUX_2_4
#include <linux/serial.h>
#include <linux/serial.h>
#include <linux/serialP.h>
#include <linux/serialP.h>
#include <linux/serial_reg.h>
#include <linux/serial_reg.h>
#include <asm/serial.h>
#include <asm/serial.h>
#endif
#include <linux/tty.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/tty_flip.h>
...
...
include/linux/wanrouter.h
View file @
68300d2b
...
@@ -43,27 +43,10 @@
...
@@ -43,27 +43,10 @@
* Jan 16, 1997 Gene Kozin router_devlist made public
* Jan 16, 1997 Gene Kozin router_devlist made public
* Jan 02, 1997 Gene Kozin Initial version (based on wanpipe.h).
* Jan 02, 1997 Gene Kozin Initial version (based on wanpipe.h).
*****************************************************************************/
*****************************************************************************/
#include <linux/version.h>
#ifndef KERNEL_VERSION
#define netdevice_t struct net_device
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
#include <linux/spinlock.h>
/* Support for SMP Locking */
#define LINUX_2_4
#define netdevice_t struct net_device
#include <linux/spinlock.h>
/* Support for SMP Locking */
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
#define LINUX_2_1
#define netdevice_t struct device
#include <asm/spinlock.h>
/* Support for SMP Locking */
#else
#define LINUX_2_0
#define netdevice_t struct device
#define spinlock_t int
#endif
#ifndef _ROUTER_H
#ifndef _ROUTER_H
#define _ROUTER_H
#define _ROUTER_H
...
@@ -512,11 +495,7 @@ typedef struct wan_device
...
@@ -512,11 +495,7 @@ typedef struct wan_device
/****** status and statistics *******/
/****** status and statistics *******/
char
state
;
/* device state */
char
state
;
/* device state */
char
api_status
;
/* device api status */
char
api_status
;
/* device api status */
#if defined(LINUX_2_1) || defined(LINUX_2_4)
struct
net_device_stats
stats
;
/* interface statistics */
struct
net_device_stats
stats
;
/* interface statistics */
#else
struct
enet_statistics
stats
;
/* interface statistics */
#endif
unsigned
reserved
[
16
];
/* reserved for future use */
unsigned
reserved
[
16
];
/* reserved for future use */
unsigned
long
critical
;
/* critical section flag */
unsigned
long
critical
;
/* critical section flag */
spinlock_t
lock
;
/* Support for SMP Locking */
spinlock_t
lock
;
/* Support for SMP Locking */
...
@@ -534,11 +513,7 @@ typedef struct wan_device
...
@@ -534,11 +513,7 @@ typedef struct wan_device
struct
wan_device
*
next
;
/* -> next device */
struct
wan_device
*
next
;
/* -> next device */
netdevice_t
*
dev
;
/* list of network interfaces */
netdevice_t
*
dev
;
/* list of network interfaces */
unsigned
ndev
;
/* number of interfaces */
unsigned
ndev
;
/* number of interfaces */
#ifdef LINUX_2_4
struct
proc_dir_entry
*
dent
;
/* proc filesystem entry */
struct
proc_dir_entry
*
dent
;
/* proc filesystem entry */
#else
struct
proc_dir_entry
dent
;
/* proc filesystem entry */
#endif
}
wan_device_t
;
}
wan_device_t
;
/* Public functions available for device drivers */
/* Public functions available for device drivers */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment