diff options
| author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2013-01-30 21:50:08 -0500 |
|---|---|---|
| committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2013-01-31 19:56:35 -0500 |
| commit | 6fcdf4facb85e7d54ff6195378dd2ba8e0baccc4 (patch) | |
| tree | 97220d3bf7c93be60bb805e4c8e149a96f11f91d /include | |
| parent | a786a7c0ad44985548118fd2370c792c0da36891 (diff) | |
wanrouter: delete now orphaned header content, files/drivers
The wanrouter support was identified earlier as unused for years,
and so the previous commit totally decoupled it from the kernel,
leaving the related wanrouter files present, but totally inert.
Here we take the final step in that cleanup, by doing a wholesale
removal of these files. The two step process is used so that the
large deletion is decoupled from the git history of files that we
still care about.
The drivers deleted here all were dependent on the Kconfig setting
CONFIG_WAN_ROUTER_DRIVERS.
A stub wanrouter.h header (kernel & uapi) are left behind so that
drivers/isdn/i4l/isdn_x25iface.c continues to compile, and so that
we don't accidentally break userspace that expected these defines.
Cc: Joe Perches <joe@perches.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cyclomx.h | 77 | ||||
| -rw-r--r-- | include/linux/cycx_drv.h | 64 | ||||
| -rw-r--r-- | include/linux/wanrouter.h | 127 | ||||
| -rw-r--r-- | include/uapi/linux/wanrouter.h | 443 |
4 files changed, 8 insertions, 703 deletions
diff --git a/include/linux/cyclomx.h b/include/linux/cyclomx.h deleted file mode 100644 index b88f7f428e58..000000000000 --- a/include/linux/cyclomx.h +++ /dev/null | |||
| @@ -1,77 +0,0 @@ | |||
| 1 | #ifndef _CYCLOMX_H | ||
| 2 | #define _CYCLOMX_H | ||
| 3 | /* | ||
| 4 | * cyclomx.h Cyclom 2X WAN Link Driver. | ||
| 5 | * User-level API definitions. | ||
| 6 | * | ||
| 7 | * Author: Arnaldo Carvalho de Melo <acme@conectiva.com.br> | ||
| 8 | * | ||
| 9 | * Copyright: (c) 1998-2003 Arnaldo Carvalho de Melo | ||
| 10 | * | ||
| 11 | * Based on wanpipe.h by Gene Kozin <genek@compuserve.com> | ||
| 12 | * | ||
| 13 | * This program is free software; you can redistribute it and/or | ||
| 14 | * modify it under the terms of the GNU General Public License | ||
| 15 | * as published by the Free Software Foundation; either version | ||
| 16 | * 2 of the License, or (at your option) any later version. | ||
| 17 | * ============================================================================ | ||
| 18 | * 2000/07/13 acme remove crap #if KERNEL_VERSION > blah | ||
| 19 | * 2000/01/21 acme rename cyclomx_open to cyclomx_mod_inc_use_count | ||
| 20 | * and cyclomx_close to cyclomx_mod_dec_use_count | ||
| 21 | * 1999/05/19 acme wait_queue_head_t wait_stats(support for 2.3.*) | ||
| 22 | * 1999/01/03 acme judicious use of data types | ||
| 23 | * 1998/12/27 acme cleanup: PACKED not needed | ||
| 24 | * 1998/08/08 acme Version 0.0.1 | ||
| 25 | */ | ||
| 26 | |||
| 27 | #include <linux/wanrouter.h> | ||
| 28 | #include <linux/spinlock.h> | ||
| 29 | |||
| 30 | #ifdef __KERNEL__ | ||
| 31 | /* Kernel Interface */ | ||
| 32 | |||
| 33 | #include <linux/cycx_drv.h> /* Cyclom 2X support module API definitions */ | ||
| 34 | #include <linux/cycx_cfm.h> /* Cyclom 2X firmware module definitions */ | ||
| 35 | #ifdef CONFIG_CYCLOMX_X25 | ||
| 36 | #include <linux/cycx_x25.h> | ||
| 37 | #endif | ||
| 38 | |||
| 39 | /* Adapter Data Space. | ||
| 40 | * This structure is needed because we handle multiple cards, otherwise | ||
| 41 | * static data would do it. | ||
| 42 | */ | ||
| 43 | struct cycx_device { | ||
| 44 | char devname[WAN_DRVNAME_SZ + 1];/* card name */ | ||
| 45 | struct cycx_hw hw; /* hardware configuration */ | ||
| 46 | struct wan_device wandev; /* WAN device data space */ | ||
| 47 | u32 state_tick; /* link state timestamp */ | ||
| 48 | spinlock_t lock; | ||
| 49 | char in_isr; /* interrupt-in-service flag */ | ||
| 50 | char buff_int_mode_unbusy; /* flag for carrying out dev_tint */ | ||
| 51 | wait_queue_head_t wait_stats; /* to wait for the STATS indication */ | ||
| 52 | void __iomem *mbox; /* -> mailbox */ | ||
| 53 | void (*isr)(struct cycx_device* card); /* interrupt service routine */ | ||
| 54 | int (*exec)(struct cycx_device* card, void* u_cmd, void* u_data); | ||
| 55 | union { | ||
| 56 | #ifdef CONFIG_CYCLOMX_X25 | ||
| 57 | struct { /* X.25 specific data */ | ||
| 58 | u32 lo_pvc; | ||
| 59 | u32 hi_pvc; | ||
| 60 | u32 lo_svc; | ||
| 61 | u32 hi_svc; | ||
| 62 | struct cycx_x25_stats stats; | ||
| 63 | spinlock_t lock; | ||
| 64 | u32 connection_keys; | ||
| 65 | } x; | ||
| 66 | #endif | ||
| 67 | } u; | ||
| 68 | }; | ||
| 69 | |||
| 70 | /* Public Functions */ | ||
| 71 | void cycx_set_state(struct cycx_device *card, int state); | ||
| 72 | |||
| 73 | #ifdef CONFIG_CYCLOMX_X25 | ||
| 74 | int cycx_x25_wan_init(struct cycx_device *card, wandev_conf_t *conf); | ||
| 75 | #endif | ||
| 76 | #endif /* __KERNEL__ */ | ||
| 77 | #endif /* _CYCLOMX_H */ | ||
diff --git a/include/linux/cycx_drv.h b/include/linux/cycx_drv.h deleted file mode 100644 index 12fe6b0bfcff..000000000000 --- a/include/linux/cycx_drv.h +++ /dev/null | |||
| @@ -1,64 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * cycx_drv.h CYCX Support Module. Kernel API Definitions. | ||
| 3 | * | ||
| 4 | * Author: Arnaldo Carvalho de Melo <acme@conectiva.com.br> | ||
| 5 | * | ||
| 6 | * Copyright: (c) 1998-2003 Arnaldo Carvalho de Melo | ||
| 7 | * | ||
| 8 | * Based on sdladrv.h by Gene Kozin <genek@compuserve.com> | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or | ||
| 11 | * modify it under the terms of the GNU General Public License | ||
| 12 | * as published by the Free Software Foundation; either version | ||
| 13 | * 2 of the License, or (at your option) any later version. | ||
| 14 | * ============================================================================ | ||
| 15 | * 1999/10/23 acme cycxhw_t cleanup | ||
| 16 | * 1999/01/03 acme more judicious use of data types... | ||
| 17 | * uclong, ucchar, etc deleted, the u8, u16, u32 | ||
| 18 | * types are the portable way to go. | ||
| 19 | * 1999/01/03 acme judicious use of data types... u16, u32, etc | ||
| 20 | * 1998/12/26 acme FIXED_BUFFERS, CONF_OFFSET, | ||
| 21 | * removal of cy_read{bwl} | ||
| 22 | * 1998/08/08 acme Initial version. | ||
| 23 | */ | ||
| 24 | #ifndef _CYCX_DRV_H | ||
| 25 | #define _CYCX_DRV_H | ||
| 26 | |||
| 27 | #define CYCX_WINDOWSIZE 0x4000 /* default dual-port memory window size */ | ||
| 28 | #define GEN_CYCX_INTR 0x02 | ||
| 29 | #define RST_ENABLE 0x04 | ||
| 30 | #define START_CPU 0x06 | ||
| 31 | #define RST_DISABLE 0x08 | ||
| 32 | #define FIXED_BUFFERS 0x08 | ||
| 33 | #define TEST_PATTERN 0xaa55 | ||
| 34 | #define CMD_OFFSET 0x20 | ||
| 35 | #define CONF_OFFSET 0x0380 | ||
| 36 | #define RESET_OFFSET 0x3c00 /* For reset file load */ | ||
| 37 | #define DATA_OFFSET 0x0100 /* For code and data files load */ | ||
| 38 | #define START_OFFSET 0x3ff0 /* 80186 starts here */ | ||
| 39 | |||
| 40 | /** | ||
| 41 | * struct cycx_hw - Adapter hardware configuration | ||
| 42 | * @fwid - firmware ID | ||
| 43 | * @irq - interrupt request level | ||
| 44 | * @dpmbase - dual-port memory base | ||
| 45 | * @dpmsize - dual-port memory size | ||
| 46 | * @reserved - reserved for future use | ||
| 47 | */ | ||
| 48 | struct cycx_hw { | ||
| 49 | u32 fwid; | ||
| 50 | int irq; | ||
| 51 | void __iomem *dpmbase; | ||
| 52 | u32 dpmsize; | ||
| 53 | u32 reserved[5]; | ||
| 54 | }; | ||
| 55 | |||
| 56 | /* Function Prototypes */ | ||
| 57 | extern int cycx_setup(struct cycx_hw *hw, void *sfm, u32 len, unsigned long base); | ||
| 58 | extern int cycx_down(struct cycx_hw *hw); | ||
| 59 | extern int cycx_peek(struct cycx_hw *hw, u32 addr, void *buf, u32 len); | ||
| 60 | extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len); | ||
| 61 | extern int cycx_exec(void __iomem *addr); | ||
| 62 | |||
| 63 | extern void cycx_intr(struct cycx_hw *hw); | ||
| 64 | #endif /* _CYCX_DRV_H */ | ||
diff --git a/include/linux/wanrouter.h b/include/linux/wanrouter.h index cec4b4159767..8198a63cf459 100644 --- a/include/linux/wanrouter.h +++ b/include/linux/wanrouter.h | |||
| @@ -1,129 +1,10 @@ | |||
| 1 | /***************************************************************************** | 1 | /* |
| 2 | * wanrouter.h Definitions for the WAN Multiprotocol Router Module. | 2 | * wanrouter.h Legacy declarations kept around until X25 is removed |
| 3 | * This module provides API and common services for WAN Link | 3 | */ |
| 4 | * Drivers and is completely hardware-independent. | 4 | |
| 5 | * | ||
| 6 | * Author: Nenad Corbic <ncorbic@sangoma.com> | ||
| 7 | * Gideon Hack | ||
| 8 | * Additions: Arnaldo Melo | ||
| 9 | * | ||
| 10 | * Copyright: (c) 1995-2000 Sangoma Technologies Inc. | ||
| 11 | * | ||
| 12 | * This program is free software; you can redistribute it and/or | ||
| 13 | * modify it under the terms of the GNU General Public License | ||
| 14 | * as published by the Free Software Foundation; either version | ||
| 15 | * 2 of the License, or (at your option) any later version. | ||
| 16 | * ============================================================================ | ||
| 17 | * Jul 21, 2000 Nenad Corbic Added WAN_FT1_READY State | ||
| 18 | * Feb 24, 2000 Nenad Corbic Added support for socket based x25api | ||
| 19 | * Jan 28, 2000 Nenad Corbic Added support for the ASYNC protocol. | ||
| 20 | * Oct 04, 1999 Nenad Corbic Updated for 2.1.0 release | ||
| 21 | * Jun 02, 1999 Gideon Hack Added support for the S514 adapter. | ||
| 22 | * May 23, 1999 Arnaldo Melo Added local_addr to wanif_conf_t | ||
| 23 | * WAN_DISCONNECTING state added | ||
| 24 | * Jul 20, 1998 David Fong Added Inverse ARP options to 'wanif_conf_t' | ||
| 25 | * Jun 12, 1998 David Fong Added Cisco HDLC support. | ||
| 26 | * Dec 16, 1997 Jaspreet Singh Moved 'enable_IPX' and 'network_number' to | ||
| 27 | * 'wanif_conf_t' | ||
| 28 | * Dec 05, 1997 Jaspreet Singh Added 'pap', 'chap' to 'wanif_conf_t' | ||
| 29 | * Added 'authenticator' to 'wan_ppp_conf_t' | ||
| 30 | * Nov 06, 1997 Jaspreet Singh Changed Router Driver version to 1.1 from 1.0 | ||
| 31 | * Oct 20, 1997 Jaspreet Singh Added 'cir','bc','be' and 'mc' to 'wanif_conf_t' | ||
| 32 | * Added 'enable_IPX' and 'network_number' to | ||
| 33 | * 'wan_device_t'. Also added defines for | ||
| 34 | * UDP PACKET TYPE, Interrupt test, critical values | ||
| 35 | * for RACE conditions. | ||
| 36 | * Oct 05, 1997 Jaspreet Singh Added 'dlci_num' and 'dlci[100]' to | ||
