[patches 4/8] pcmcia: remove irq_mask and irq_list parameters from
PCMCIA drivers
Dominik Brodowski
linux at dominikbrodowski.de
Tue Jan 11 11:58:43 EST 2005
Remove the now useless irq_mask and irq_list parameters from PCMCIA
drivers. Users should use either the socket driver's irq_mask / irq_list
parameter or use /sys/class/pcmcia_socket/pcmcia_socket%n/card_irq_mask
which will be added in a subsequent patch.
Signed-off-by: Dominik Brodowski <linux at brodo.de>
---
drivers/bluetooth/bluecard_cs.c | 17 ++---------------
drivers/bluetooth/bt3c_cs.c | 17 ++---------------
drivers/bluetooth/btuart_cs.c | 17 ++---------------
drivers/bluetooth/dtl1_cs.c | 17 ++---------------
drivers/char/pcmcia/synclink_cs.c | 17 +----------------
drivers/ide/legacy/ide-cs.c | 14 ++------------
drivers/isdn/hardware/avm/avm_cs.c | 21 ++-------------------
drivers/isdn/hisax/avma1_cs.c | 16 +++-------------
drivers/isdn/hisax/elsa_cs.c | 19 ++-----------------
drivers/isdn/hisax/sedlbauer_cs.c | 20 +++-----------------
drivers/isdn/hisax/teles_cs.c | 19 ++-----------------
drivers/net/pcmcia/3c574_cs.c | 14 ++------------
drivers/net/pcmcia/3c589_cs.c | 14 ++------------
drivers/net/pcmcia/axnet_cs.c | 16 +++-------------
drivers/net/pcmcia/com20020_cs.c | 15 ++-------------
drivers/net/pcmcia/fmvj18x_cs.c | 15 ++-------------
drivers/net/pcmcia/ibmtr_cs.c | 15 ++-------------
drivers/net/pcmcia/nmclan_cs.c | 14 ++------------
drivers/net/pcmcia/pcnet_cs.c | 14 ++------------
drivers/net/pcmcia/smc91c92_cs.c | 14 ++------------
drivers/net/pcmcia/xirc2ps_cs.c | 19 ++-----------------
drivers/net/wireless/airo_cs.c | 19 ++-----------------
drivers/net/wireless/atmel_cs.c | 19 ++-----------------
drivers/net/wireless/netwave_cs.c | 16 ++--------------
drivers/net/wireless/orinoco_cs.c | 27 +++------------------------
drivers/net/wireless/ray_cs.c | 7 +------
drivers/net/wireless/wavelan_cs.c | 9 ++-------
drivers/net/wireless/wavelan_cs.p.h | 7 -------
drivers/net/wireless/wl3501_cs.c | 16 ++--------------
drivers/parport/parport_cs.c | 14 ++------------
drivers/scsi/pcmcia/aha152x_stub.c | 15 ++-------------
drivers/scsi/pcmcia/fdomain_stub.c | 15 ++-------------
drivers/scsi/pcmcia/nsp_cs.c | 19 ++-----------------
drivers/scsi/pcmcia/qlogic_stub.c | 20 ++------------------
drivers/scsi/pcmcia/sym53c500_cs.c | 22 ++--------------------
drivers/serial/serial_cs.c | 16 ++--------------
sound/pcmcia/pdaudiocf/pdaudiocf.c | 14 +-------------
sound/pcmcia/vx/vx_entry.c | 7 +------
sound/pcmcia/vx/vxpocket.c | 8 --------
sound/pcmcia/vx/vxpocket.h | 2 --
40 files changed, 74 insertions(+), 542 deletions(-)
Index: 2.6.10/drivers/bluetooth/bluecard_cs.c
===================================================================
--- 2.6.10.orig/drivers/bluetooth/bluecard_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/bluetooth/bluecard_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -55,13 +55,6 @@
/* ======================== Module parameters ======================== */
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0x86bc;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, uint, 0);
-module_param_array(irq_list, int, NULL, 0);
-
MODULE_AUTHOR("Marcel Holtmann <marcel at holtmann.org>");
MODULE_DESCRIPTION("Bluetooth driver for the Anycom BlueCard (LSE039/LSE041)");
MODULE_LICENSE("GPL");
@@ -871,7 +864,7 @@
bluecard_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
/* Create new info device */
info = kmalloc(sizeof(*info), GFP_KERNEL);
@@ -885,13 +878,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
-
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = bluecard_interrupt;
link->irq.Instance = info;
Index: 2.6.10/drivers/bluetooth/bt3c_cs.c
===================================================================
--- 2.6.10.orig/drivers/bluetooth/bt3c_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/bluetooth/bt3c_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -63,13 +63,6 @@
/* ======================== Module parameters ======================== */
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0xffff;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, uint, 0);
-module_param_array(irq_list, int, NULL, 0);
-
MODULE_AUTHOR("Marcel Holtmann <marcel at holtmann.org>, Jose Orlando Pereira <jop at di.uminho.pt>");
MODULE_DESCRIPTION("Bluetooth driver for the 3Com Bluetooth PCMCIA card");
MODULE_LICENSE("GPL");
@@ -676,7 +669,7 @@
bt3c_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
/* Create new info device */
info = kmalloc(sizeof(*info), GFP_KERNEL);
@@ -690,13 +683,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
-
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = bt3c_interrupt;
link->irq.Instance = info;
Index: 2.6.10/drivers/bluetooth/btuart_cs.c
===================================================================
--- 2.6.10.orig/drivers/bluetooth/btuart_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/bluetooth/btuart_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -59,13 +59,6 @@
/* ======================== Module parameters ======================== */
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0xffff;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, uint, 0);
-module_param_array(irq_list, int, NULL, 0);
-
MODULE_AUTHOR("Marcel Holtmann <marcel at holtmann.org>");
MODULE_DESCRIPTION("Bluetooth driver for Bluetooth PCMCIA cards with HCI UART interface");
MODULE_LICENSE("GPL");
@@ -595,7 +588,7 @@
btuart_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
/* Create new info device */
info = kmalloc(sizeof(*info), GFP_KERNEL);
@@ -609,13 +602,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
-
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = btuart_interrupt;
link->irq.Instance = info;
Index: 2.6.10/drivers/bluetooth/dtl1_cs.c
===================================================================
--- 2.6.10.orig/drivers/bluetooth/dtl1_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/bluetooth/dtl1_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -59,13 +59,6 @@
/* ======================== Module parameters ======================== */
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0xffff;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, uint, 0);
-module_param_array(irq_list, int, NULL, 0);
-
MODULE_AUTHOR("Marcel Holtmann <marcel at holtmann.org>");
MODULE_DESCRIPTION("Bluetooth driver for Nokia Connectivity Card DTL-1");
MODULE_LICENSE("GPL");
@@ -574,7 +567,7 @@
dtl1_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
/* Create new info device */
info = kmalloc(sizeof(*info), GFP_KERNEL);
@@ -588,13 +581,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
-
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = dtl1_interrupt;
link->irq.Instance = info;
Index: 2.6.10/drivers/char/pcmcia/synclink_cs.c
===================================================================
--- 2.6.10.orig/drivers/char/pcmcia/synclink_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/char/pcmcia/synclink_cs.c 2005-01-11 16:44:57.000000000 +0100
@@ -464,16 +464,6 @@
static int maxframe[MAX_DEVICE_COUNT] = {0,};
static int dosyncppp[MAX_DEVICE_COUNT] = {1,1,1,1};
-/* The old way: bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_int irq_mask = 0xdeb8;
-
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
-
module_param(break_on_load, bool, 0);
module_param(ttymajor, int, 0);
module_param(debug_level, int, 0);
@@ -555,7 +545,7 @@
MGSLPC_INFO *info;
dev_link_t *link;
client_reg_t client_reg;
- int ret, i;
+ int ret;
if (debug_level >= DEBUG_LEVEL_INFO)
printk("mgslpc_attach\n");
@@ -592,11 +582,6 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
link->irq.Handler = NULL;
link->conf.Attributes = 0;
Index: 2.6.10/drivers/ide/legacy/ide-cs.c
===================================================================
--- 2.6.10.orig/drivers/ide/legacy/ide-cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/ide/legacy/ide-cs.c 2005-01-11 16:39:36.000000000 +0100
@@ -64,11 +64,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
@@ -116,7 +111,7 @@
ide_info_t *info;
dev_link_t *link;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "ide_attach()\n");
@@ -130,12 +125,7 @@
link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
link->io.IOAddrLines = 3;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/isdn/hardware/avm/avm_cs.c
===================================================================
--- 2.6.10.orig/drivers/isdn/hardware/avm/avm_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/isdn/hardware/avm/avm_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -43,16 +43,6 @@
/*====================================================================*/
-/* Parameters that can be set with 'insmod' */
-
-/* This means pick from 15, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static int default_irq_list[10] = { 15, 12, 11, 10, 9, 7, 5, 4, 3, -1 };
-static int irq_list[10] = { -1 };
-
-MODULE_PARM(irq_list, "1-10i");
-
-/*====================================================================*/
-
/*
The event() function is this driver's Card Services event handler.
It will be called by Card Services when an appropriate card status
@@ -134,7 +124,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
/* Initialize the dev_link_t structure */
link = kmalloc(sizeof(struct dev_link_t), GFP_KERNEL);
@@ -151,14 +141,7 @@
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] != -1) {
- for (i = 0; i < 10 && irq_list[i] > 0; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
- } else {
- for (i = 0; i < 10 && default_irq_list[i] > 0; i++)
- link->irq.IRQInfo2 |= 1 << default_irq_list[i];
- }
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
/* General socket configuration */
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/drivers/isdn/hisax/avma1_cs.c
===================================================================
--- 2.6.10.orig/drivers/isdn/hisax/avma1_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/isdn/hisax/avma1_cs.c 2005-01-11 16:40:42.000000000 +0100
@@ -53,11 +53,8 @@
/* Parameters that can be set with 'insmod' */
-static int default_irq_list[11] = { 15, 13, 12, 11, 10, 9, 7, 5, 4, 3, -1 };
-static int irq_list[11] = { -1 };
static int isdnprot = 2;
-module_param_array(irq_list, int, NULL, 0);
module_param(isdnprot, int, 0);
/*====================================================================*/
@@ -143,7 +140,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
DEBUG(0, "avma1cs_attach()\n");
@@ -173,15 +170,8 @@
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] != -1) {
- for (i = 0; i < 10 && irq_list[i] > 0; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
- } else {
- for (i = 0; i < 10 && default_irq_list[i] > 0; i++)
- link->irq.IRQInfo2 |= 1 << default_irq_list[i];
- }
-
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
+
/* General socket configuration */
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
Index: 2.6.10/drivers/isdn/hisax/elsa_cs.c
===================================================================
--- 2.6.10.orig/drivers/isdn/hisax/elsa_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/isdn/hisax/elsa_cs.c 2005-01-11 16:40:24.000000000 +0100
@@ -81,16 +81,6 @@
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from, the old way */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, 3 */
-static u_long irq_mask = 0xdeb8;
-
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, ulong, 0);
-module_param_array(irq_list, int, NULL, 0);
-
static int protocol = 2; /* EURO-ISDN Default */
module_param(protocol, int, 0);
@@ -187,7 +177,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
DEBUG(0, "elsa_cs_attach()\n");
@@ -200,12 +190,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID|IRQ_SHARE_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID|IRQ_SHARE_ID;
link->irq.Handler = NULL;
/*
Index: 2.6.10/drivers/isdn/hisax/sedlbauer_cs.c
===================================================================
--- 2.6.10.orig/drivers/isdn/hisax/sedlbauer_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/isdn/hisax/sedlbauer_cs.c 2005-01-11 16:40:09.000000000 +0100
@@ -82,15 +82,6 @@
/* Parameters that can be set with 'insmod' */
-/* The old way: bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_int irq_mask = 0xdeb8;
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
-
static int protocol = 2; /* EURO-ISDN Default */
module_param(protocol, int, 0);
@@ -195,7 +186,7 @@
local_info_t *local;
dev_link_t *link;
client_reg_t client_reg;
- int ret, i;
+ int ret;
DEBUG(0, "sedlbauer_attach()\n");
@@ -208,14 +199,9 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = NULL;
-
+
/*
General socket configuration defaults can go here. In this
client, we assume very little, and rely on the CIS for almost
Index: 2.6.10/drivers/isdn/hisax/teles_cs.c
===================================================================
--- 2.6.10.orig/drivers/isdn/hisax/teles_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/isdn/hisax/teles_cs.c 2005-01-11 16:39:50.000000000 +0100
@@ -62,16 +62,6 @@
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from, the old way */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, 3 */
-static u_long irq_mask = 0xdeb8;
-
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, ulong, 0);
-module_param_array(irq_list, int, NULL, 0);
-
static int protocol = 2; /* EURO-ISDN Default */
module_param(protocol, int, 0);
@@ -168,7 +158,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
DEBUG(0, "teles_attach()\n");
@@ -181,12 +171,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID|IRQ_SHARE_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID|IRQ_SHARE_ID;
link->irq.Handler = NULL;
/*
Index: 2.6.10/drivers/net/pcmcia/3c574_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/3c574_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/3c574_cs.c 2005-01-11 16:50:47.000000000 +0100
@@ -109,11 +109,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Now-standard PC card module parameters. */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
/* Maximum events (Rx packets, etc.) to handle at each interrupt. */
INT_MODULE_PARM(max_interrupt_work, 32);
@@ -275,7 +270,7 @@
client_reg_t client_reg;
dev_link_t *link;
struct net_device *dev;
- int i, ret;
+ int ret;
DEBUG(0, "3c574_attach()\n");
@@ -291,12 +286,7 @@
link->io.NumPorts1 = 32;
link->io.Attributes1 = IO_DATA_PATH_WIDTH_16;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &el3_interrupt;
link->irq.Instance = dev;
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/drivers/net/pcmcia/3c589_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/3c589_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/3c589_cs.c 2005-01-11 16:50:37.000000000 +0100
@@ -131,11 +131,6 @@
/* Special hook for setting if_port when module is loaded */
INT_MODULE_PARM(if_port, 0);
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
@@ -188,7 +183,7 @@
client_reg_t client_reg;
dev_link_t *link;
struct net_device *dev;
- int i, ret;
+ int ret;
DEBUG(0, "3c589_attach()\n");
@@ -204,12 +199,7 @@
link->io.NumPorts1 = 16;
link->io.Attributes1 = IO_DATA_PATH_WIDTH_16;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &el3_interrupt;
link->irq.Instance = dev;
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/drivers/net/pcmcia/axnet_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/axnet_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/axnet_cs.c 2005-01-11 16:50:08.000000000 +0100
@@ -73,14 +73,9 @@
MODULE_DESCRIPTION("Asix AX88190 PCMCIA ethernet driver");
MODULE_LICENSE("GPL");
+#ifdef PCMCIA_DEBUG
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
-#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
static char *version =
@@ -159,7 +154,7 @@
dev_link_t *link;
struct net_device *dev;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "axnet_attach()\n");
@@ -173,12 +168,7 @@
link = &info->link;
link->priv = dev;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/net/pcmcia/com20020_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/com20020_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/com20020_cs.c 2005-01-11 16:49:35.000000000 +0100
@@ -115,12 +115,6 @@
module_param(clockp, int, 0);
module_param(clockm, int, 0);
-/* Bit map of interrupts to choose from */
-static u_int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
MODULE_LICENSE("GPL");
/*====================================================================*/
@@ -158,7 +152,7 @@
dev_link_t *link;
com20020_dev_t *info;
struct net_device *dev;
- int i, ret;
+ int ret;
struct arcnet_local *lp;
DEBUG(0, "com20020_attach()\n");
@@ -192,12 +186,7 @@
link->io.NumPorts1 = 16;
link->io.IOAddrLines = 16;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/net/pcmcia/fmvj18x_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/fmvj18x_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/fmvj18x_cs.c 2005-01-11 16:49:22.000000000 +0100
@@ -69,12 +69,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
/* SRAM configuration */
/* 0:4KB*2 TX buffer else:8KB*2 TX buffer */
INT_MODULE_PARM(sram_config, 0);
@@ -248,7 +242,7 @@
dev_link_t *link;
struct net_device *dev;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "fmvj18x_attach()\n");
@@ -267,12 +261,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &fjn_interrupt;
link->irq.Instance = dev;
Index: 2.6.10/drivers/net/pcmcia/ibmtr_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/ibmtr_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/ibmtr_cs.c 2005-01-11 16:49:12.000000000 +0100
@@ -86,10 +86,6 @@
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from */
-static u_int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
/* MMIO base address */
static u_long mmiobase = 0xce000;
@@ -102,8 +98,6 @@
/* Ringspeed 4,16 */
static int ringspeed = 16;
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
module_param(mmiobase, ulong, 0);
module_param(srambase, ulong, 0);
module_param(sramsize, ulong, 0);
@@ -162,7 +156,7 @@
dev_link_t *link;
struct net_device *dev;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "ibmtr_attach()\n");
@@ -184,12 +178,7 @@
link->io.NumPorts1 = 4;
link->io.IOAddrLines = 16;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &tok_interrupt;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
Index: 2.6.10/drivers/net/pcmcia/nmclan_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/nmclan_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/nmclan_cs.c 2005-01-11 16:49:02.000000000 +0100
@@ -407,13 +407,8 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
/* 0=auto, 1=10baseT, 2 = 10base2, default=auto */
INT_MODULE_PARM(if_port, 0);
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
@@ -461,7 +456,7 @@
dev_link_t *link;
struct net_device *dev;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "nmclan_attach()\n");
DEBUG(1, "%s\n", rcsid);
@@ -479,12 +474,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 5;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &mace_interrupt;
link->irq.Instance = dev;
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/drivers/net/pcmcia/pcnet_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/pcnet_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/pcnet_cs.c 2005-01-11 16:48:39.000000000 +0100
@@ -89,11 +89,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
INT_MODULE_PARM(if_port, 1); /* Transceiver type */
INT_MODULE_PARM(use_big_buf, 1); /* use 64K packet buffer? */
INT_MODULE_PARM(mem_speed, 0); /* shared mem speed, in ns */
@@ -256,7 +251,7 @@
dev_link_t *link;
struct net_device *dev;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "pcnet_attach()\n");
@@ -268,12 +263,7 @@
link->priv = dev;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/net/pcmcia/smc91c92_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/smc91c92_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/smc91c92_cs.c 2005-01-11 16:48:19.000000000 +0100
@@ -76,11 +76,6 @@
*/
INT_MODULE_PARM(if_port, 0);
-/* Bit map of interrupts to choose from. */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
static const char *version =
@@ -320,7 +315,7 @@
struct smc_private *smc;
dev_link_t *link;
struct net_device *dev;
- int i, ret;
+ int ret;
DEBUG(0, "smc91c92_attach()\n");
@@ -337,12 +332,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 4;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &smc_interrupt;
link->irq.Instance = dev;
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/drivers/net/pcmcia/xirc2ps_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/pcmcia/xirc2ps_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/pcmcia/xirc2ps_cs.c 2005-01-11 16:48:10.000000000 +0100
@@ -257,9 +257,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-INT_MODULE_PARM(irq_mask, 0xdeb8);
INT_MODULE_PARM(if_port, 0);
INT_MODULE_PARM(full_duplex, 0);
INT_MODULE_PARM(do_sound, 1);
@@ -921,13 +918,7 @@
link->io.IOAddrLines =10;
link->io.Attributes1 = IO_DATA_PATH_WIDTH_16;
link->irq.Attributes = IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else {
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
- }
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
if (local->modem) {
int pass;
@@ -2025,23 +2016,17 @@
#ifndef MODULE
static int __init setup_xirc2ps_cs(char *str)
{
- /* irq, irq_mask, if_port, full_duplex, do_sound, lockup_hack
- * [,irq2 [,irq3 [,irq4]]]
+ /* if_port, full_duplex, do_sound, lockup_hack
*/
int ints[10] = { -1 };
str = get_options(str, 9, ints);
#define MAYBE_SET(X,Y) if (ints[0] >= Y && ints[Y] != -1) { X = ints[Y]; }
- MAYBE_SET(irq_list[0], 1);
- MAYBE_SET(irq_mask, 2);
MAYBE_SET(if_port, 3);
MAYBE_SET(full_duplex, 4);
MAYBE_SET(do_sound, 5);
MAYBE_SET(lockup_hack, 6);
- MAYBE_SET(irq_list[1], 7);
- MAYBE_SET(irq_list[2], 8);
- MAYBE_SET(irq_list[3], 9);
#undef MAYBE_SET
return 0;
Index: 2.6.10/drivers/net/wireless/airo_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/airo_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/airo_cs.c 2005-01-11 16:47:43.000000000 +0100
@@ -61,22 +61,12 @@
/*====================================================================*/
-/* Parameters that can be set with 'insmod' */
-
-/* The old way: bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_int irq_mask = 0xdeb8;
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
MODULE_AUTHOR("Benjamin Reed");
MODULE_DESCRIPTION("Support for Cisco/Aironet 802.11 wireless ethernet \
cards. This is the module that links the PCMCIA card \
with the airo module.");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_SUPPORTED_DEVICE("Aironet 4500, 4800 and Cisco 340 PCMCIA cards");
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
/*====================================================================*/
@@ -178,7 +168,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
DEBUG(0, "airo_attach()\n");
@@ -192,12 +182,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = NULL;
/*
Index: 2.6.10/drivers/net/wireless/atmel_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/atmel_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/atmel_cs.c 2005-01-11 16:47:29.000000000 +0100
@@ -74,20 +74,10 @@
/*====================================================================*/
-/* Parameters that can be set with 'insmod' */
-
-/* The old way: bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_int irq_mask = 0xdeb8;
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
MODULE_AUTHOR("Simon Kelley");
MODULE_DESCRIPTION("Support for Atmel at76c50x 802.11 wireless ethernet cards.");
MODULE_LICENSE("GPL");
MODULE_SUPPORTED_DEVICE("Atmel at76c50x PCMCIA cards");
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
/*====================================================================*/
@@ -190,7 +180,7 @@
client_reg_t client_reg;
dev_link_t *link;
local_info_t *local;
- int ret, i;
+ int ret;
DEBUG(0, "atmel_attach()\n");
@@ -204,12 +194,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = NULL;
/*
Index: 2.6.10/drivers/net/wireless/netwave_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/netwave_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/netwave_cs.c 2005-01-11 16:47:01.000000000 +0100
@@ -190,16 +190,9 @@
*/
static int mem_speed;
-/* Bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
module_param(domain, int, 0);
module_param(scramble_key, int, 0);
module_param(mem_speed, int, 0);
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
/*====================================================================*/
@@ -438,7 +431,7 @@
dev_link_t *link;
struct net_device *dev;
netwave_private *priv;
- int i, ret;
+ int ret;
DEBUG(0, "netwave_attach()\n");
@@ -459,12 +452,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &netwave_interrupt;
/* General socket configuration */
Index: 2.6.10/drivers/net/wireless/orinoco_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/orinoco_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/orinoco_cs.c 2005-01-11 16:46:41.000000000 +0100
@@ -54,18 +54,10 @@
/* Module parameters */
-/* The old way: bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static uint irq_mask = 0xdeb8;
-/* Newer, simpler way of listing specific interrupts */
-static int irq_list[4] = { -1 };
-
/* Some D-Link cards have buggy CIS. They do work at 5v properly, but
* don't have any CIS entry for it. This workaround it... */
static int ignore_cis_vcc; /* = 0 */
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
module_param(ignore_cis_vcc, int, 0);
/********************************************************************/
@@ -161,7 +153,7 @@
struct orinoco_pccard *card;
dev_link_t *link;
client_reg_t client_reg;
- int ret, i;
+ int ret;
dev = alloc_orinocodev(sizeof(*card), orinoco_cs_hard_reset);
if (! dev)
@@ -175,12 +167,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = NULL;
/* General socket configuration defaults can go here. In this
@@ -415,16 +402,8 @@
* the irq structure is initialized.
*/
if (link->conf.Attributes & CONF_ENABLE_IRQ) {
- int i;
-
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i=0; i<4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
-
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = orinoco_interrupt;
link->irq.Instance = dev;
Index: 2.6.10/drivers/net/wireless/ray_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/ray_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/ray_cs.c 2005-01-11 16:46:27.000000000 +0100
@@ -157,9 +157,6 @@
/*===========================================================================*/
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static u_long irq_mask = 0xdeb8;
/* ADHOC=0, Infrastructure=1 */
static int net_type = ADHOC;
@@ -222,7 +219,6 @@
MODULE_DESCRIPTION("Raylink/WebGear wireless LAN driver");
MODULE_LICENSE("GPL");
-module_param(irq_mask, ulong, 0);
module_param(net_type, int, 0);
module_param(hop_dwell, int, 0);
module_param(beacon_period, int, 0);
@@ -354,8 +350,7 @@
/* Interrupt setup. For PCMCIA, driver takes what's given */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- link->irq.IRQInfo2 = irq_mask;
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &ray_interrupt;
/* General socket configuration */
Index: 2.6.10/drivers/net/wireless/wavelan_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/wavelan_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/wavelan_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -4601,7 +4601,7 @@
dev_link_t * link; /* Info for cardmgr */
struct net_device * dev; /* Interface generic data */
net_local * lp; /* Interface specific data */
- int i, ret;
+ int ret;
#ifdef DEBUG_CALLBACK_TRACE
printk(KERN_DEBUG "-> wavelan_attach()\n");
@@ -4619,12 +4619,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = wavelan_interrupt;
/* General socket configuration */
Index: 2.6.10/drivers/net/wireless/wavelan_cs.p.h
===================================================================
--- 2.6.10.orig/drivers/net/wireless/wavelan_cs.p.h 2005-01-11 14:00:21.000000000 +0100
+++ 2.6.10/drivers/net/wireless/wavelan_cs.p.h 2005-01-11 16:46:06.000000000 +0100
@@ -795,17 +795,10 @@
* The exact syntax is 'insmod wavelan_cs.o <var>=<value>'
*/
-/* Bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4 and 3 */
-static int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
/* Shared memory speed, in ns */
static int mem_speed = 0;
/* New module interface */
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
module_param(mem_speed, int, 0);
#ifdef WAVELAN_ROAMING /* Conditional compile, see above in options */
Index: 2.6.10/drivers/net/wireless/wl3501_cs.c
===================================================================
--- 2.6.10.orig/drivers/net/wireless/wl3501_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/net/wireless/wl3501_cs.c 2005-01-11 16:45:08.000000000 +0100
@@ -97,12 +97,6 @@
#define WL3501_RESUME 0
#define WL3501_SUSPEND 1
-/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from */
-/* This means pick from 15, 14, 12, 11, 10, 9, 7, 5, 4, and 3 */
-static unsigned long wl3501_irq_mask = 0xdeb8;
-static int wl3501_irq_list[4] = { -1 };
-
/*
* The event() function is this driver's Card Services event handler. It will
* be called by Card Services when an appropriate card status event is
@@ -1967,7 +1961,7 @@
client_reg_t client_reg;
dev_link_t *link;
struct net_device *dev;
- int ret, i;
+ int ret;
/* Initialize the dev_link_t structure */
link = kmalloc(sizeof(*link), GFP_KERNEL);
@@ -1982,11 +1976,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- link->irq.IRQInfo2 = wl3501_irq_mask;
- if (wl3501_irq_list[0] != -1)
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << wl3501_irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = wl3501_interrupt;
/* General socket configuration */
@@ -2273,8 +2263,6 @@
module_init(wl3501_init_module);
module_exit(wl3501_exit_module);
-module_param(wl3501_irq_mask, int, 0);
-module_param_array(wl3501_irq_list, int, NULL, 0);
MODULE_AUTHOR("Fox Chen <mhchen at golf.ccl.itri.org.tw>, "
"Arnaldo Carvalho de Melo <acme at conectiva.com.br>,"
"Gustavo Niemeyer <niemeyer at conectiva.com>");
Index: 2.6.10/drivers/parport/parport_cs.c
===================================================================
--- 2.6.10.orig/drivers/parport/parport_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/parport/parport_cs.c 2005-01-11 16:39:26.000000000 +0100
@@ -66,11 +66,6 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
-/* Bit map of interrupts to choose from */
-INT_MODULE_PARM(irq_mask, 0xdeb8);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
INT_MODULE_PARM(epp_mode, 1);
#ifdef PCMCIA_DEBUG
@@ -116,7 +111,7 @@
parport_info_t *info;
dev_link_t *link;
client_reg_t client_reg;
- int i, ret;
+ int ret;
DEBUG(0, "parport_attach()\n");
@@ -129,12 +124,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.Attributes2 = IO_DATA_PATH_WIDTH_8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/scsi/pcmcia/aha152x_stub.c
===================================================================
--- 2.6.10.orig/drivers/scsi/pcmcia/aha152x_stub.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/scsi/pcmcia/aha152x_stub.c 2005-01-11 16:44:35.000000000 +0100
@@ -70,10 +70,6 @@
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from */
-static u_int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
/* SCSI bus setup options */
static int host_id = 7;
static int reconnect = 1;
@@ -82,8 +78,6 @@
static int reset_delay = 100;
static int ext_trans = 0;
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
module_param(host_id, int, 0);
module_param(reconnect, int, 0);
module_param(parity, int, 0);
@@ -116,7 +110,7 @@
scsi_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
DEBUG(0, "aha152x_attach()\n");
@@ -130,12 +124,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 10;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/scsi/pcmcia/fdomain_stub.c
===================================================================
--- 2.6.10.orig/drivers/scsi/pcmcia/fdomain_stub.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/scsi/pcmcia/fdomain_stub.c 2005-01-11 16:44:23.000000000 +0100
@@ -61,12 +61,6 @@
MODULE_DESCRIPTION("Future Domain PCMCIA SCSI driver");
MODULE_LICENSE("Dual MPL/GPL");
-/* Bit map of interrupts to choose from */
-static int irq_mask = 0xdeb8;
-module_param(irq_mask, int, 0);
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-
#ifdef PCMCIA_DEBUG
static int pc_debug = PCMCIA_DEBUG;
module_param(pc_debug, int, 0);
@@ -103,7 +97,7 @@
scsi_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
DEBUG(0, "fdomain_attach()\n");
@@ -116,12 +110,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 10;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/scsi/pcmcia/nsp_cs.c
===================================================================
--- 2.6.10.orig/drivers/scsi/pcmcia/nsp_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/scsi/pcmcia/nsp_cs.c 2005-01-11 16:44:15.000000000 +0100
@@ -72,14 +72,6 @@
/*====================================================================*/
/* Parameters that can be set with 'insmod' */
-static unsigned int irq_mask = 0xffff;
-module_param(irq_mask, int, 0);
-MODULE_PARM_DESC(irq_mask, "IRQ mask bits (default: 0xffff)");
-
-static int irq_list[4] = { -1 };
-module_param_array(irq_list, int, NULL, 0);
-MODULE_PARM_DESC(irq_list, "Use specified IRQ number. (default: auto select)");
-
static int nsp_burst_mode = BURST_MEM32;
module_param(nsp_burst_mode, int, 0);
MODULE_PARM_DESC(nsp_burst_mode, "Burst transfer mode (0=io8, 1=io32, 2=mem32(default))");
@@ -1625,7 +1617,7 @@
scsi_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int ret, i;
+ int ret;
nsp_hw_data *data = &nsp_data_base;
nsp_dbg(NSP_DEBUG_INIT, "in");
@@ -1647,14 +1639,7 @@
/* Interrupt setup */
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1) {
- link->irq.IRQInfo2 = irq_mask;
- } else {
- for (i = 0; i < 4; i++) {
- link->irq.IRQInfo2 |= BIT(irq_list[i]);
- }
- }
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
/* Interrupt handler */
link->irq.Handler = &nspintr;
Index: 2.6.10/drivers/scsi/pcmcia/qlogic_stub.c
===================================================================
--- 2.6.10.orig/drivers/scsi/pcmcia/qlogic_stub.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/scsi/pcmcia/qlogic_stub.c 2005-01-11 16:44:00.000000000 +0100
@@ -93,17 +93,6 @@
/*====================================================================*/
-/* Parameters that can be set with 'insmod' */
-
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0xdeb8;
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, int, 0);
-module_param_array(irq_list, int, NULL, 0);
-
-/*====================================================================*/
-
typedef struct scsi_info_t {
dev_link_t link;
dev_node_t node;
@@ -182,7 +171,7 @@
scsi_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
DEBUG(0, "qlogic_attach()\n");
@@ -197,12 +186,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 10;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/scsi/pcmcia/sym53c500_cs.c
===================================================================
--- 2.6.10.orig/drivers/scsi/pcmcia/sym53c500_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/scsi/pcmcia/sym53c500_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -92,19 +92,6 @@
/* ================================================================== */
-/* Parameters that can be set with 'insmod' */
-
-/* Bit map of interrupts to choose from */
-static unsigned int irq_mask = 0xdeb8; /* 3-5, 7, 9-12, 14, 15 */
-static int irq_list[4] = { -1 };
-
-module_param(irq_mask, int, 0);
-MODULE_PARM_DESC(irq_mask, "IRQ mask bits (default: 0xdeb8)");
-module_param_array(irq_list, int, NULL, 0);
-MODULE_PARM_DESC(irq_list, "Comma-separated list of up to 4 IRQs to try (default: auto select).");
-
-/* ================================================================== */
-
#define SYNC_MODE 0 /* Synchronous transfer mode */
/* Default configuration */
@@ -965,7 +952,7 @@
struct scsi_info_t *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
DEBUG(0, "SYM53C500_attach()\n");
@@ -980,12 +967,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO;
link->io.IOAddrLines = 10;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
link->conf.Vcc = 50;
link->conf.IntType = INT_MEMORY_AND_IO;
Index: 2.6.10/drivers/serial/serial_cs.c
===================================================================
--- 2.6.10.orig/drivers/serial/serial_cs.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/drivers/serial/serial_cs.c 2005-01-11 16:36:49.000000000 +0100
@@ -68,18 +68,11 @@
/* Parameters that can be set with 'insmod' */
-/* Bit map of interrupts to choose from */
-static u_int irq_mask = 0xdeb8;
-static int irq_list[4];
-static unsigned int irq_list_count;
-
/* Enable the speaker? */
static int do_sound = 1;
/* Skip strict UART tests? */
static int buggy_uart;
-module_param(irq_mask, uint, 0444);
-module_param_array(irq_list, int, &irq_list_count, 0444);
module_param(do_sound, int, 0444);
module_param(buggy_uart, int, 0444);
@@ -205,7 +198,7 @@
struct serial_info *info;
client_reg_t client_reg;
dev_link_t *link;
- int i, ret;
+ int ret;
DEBUG(0, "serial_attach()\n");
@@ -220,12 +213,7 @@
link->io.Attributes1 = IO_DATA_PATH_WIDTH_8;
link->io.NumPorts1 = 8;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (irq_list_count == 0)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < irq_list_count; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->conf.Attributes = CONF_ENABLE_IRQ;
if (do_sound) {
link->conf.Attributes |= CONF_ENABLE_SPKR;
Index: 2.6.10/sound/pcmcia/pdaudiocf/pdaudiocf.c
===================================================================
--- 2.6.10.orig/sound/pcmcia/pdaudiocf/pdaudiocf.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/sound/pcmcia/pdaudiocf/pdaudiocf.c 2005-01-11 16:36:49.000000000 +0100
@@ -42,8 +42,6 @@
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */
-static unsigned int irq_mask = 0xffff;
-static int irq_list[4] = { -1 };
module_param_array(index, int, NULL, 0444);
MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
@@ -51,11 +49,6 @@
MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard.");
module_param_array(enable, bool, NULL, 0444);
MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard.");
-module_param(irq_mask, int, 0444);
-MODULE_PARM_DESC(irq_mask, "IRQ bitmask for " CARD_NAME " soundcard.");
-module_param_array(irq_list, int, NULL, 0444);
-MODULE_PARM_DESC(irq_list, "List of Available interrupts for " CARD_NAME " soundcard.");
-
/*
*/
@@ -164,12 +157,7 @@
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT | IRQ_FORCED_PULSE;
// link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID /* | IRQ_LEVEL_ID */;
- if (irq_list[0] == -1)
- link->irq.IRQInfo2 = irq_mask;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << irq_list[i];
+ link->irq.IRQInfo1 = 0 /* | IRQ_LEVEL_ID */;
link->irq.Handler = pdacf_interrupt;
link->irq.Instance = pdacf;
link->conf.Attributes = CONF_ENABLE_IRQ;
Index: 2.6.10/sound/pcmcia/vx/vx_entry.c
===================================================================
--- 2.6.10.orig/sound/pcmcia/vx/vx_entry.c 2005-01-11 14:03:47.000000000 +0100
+++ 2.6.10/sound/pcmcia/vx/vx_entry.c 2005-01-11 16:36:49.000000000 +0100
@@ -157,12 +157,7 @@
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
// link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING|IRQ_FIRST_SHARED;
- link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
- if (hw->irq_list[0] == -1)
- link->irq.IRQInfo2 = *hw->irq_mask_p;
- else
- for (i = 0; i < 4; i++)
- link->irq.IRQInfo2 |= 1 << hw->irq_list[i];
+ link->irq.IRQInfo1 = IRQ_LEVEL_ID;
link->irq.Handler = &snd_vx_irq_handler;
link->irq.Instance = chip;
Index: 2.6.10/sound/pcmcia/vx/vxpocket.c
===================================================================
--- 2.6.10.orig/sound/pcmcia/vx/vxpocket.c 2005-01-11 14:03:35.000000000 +0100
+++ 2.6.10/sound/pcmcia/vx/vxpocket.c 2005-01-11 16:36:49.000000000 +0100
@@ -55,8 +55,6 @@
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable switches */
-static unsigned int irq_mask = 0xffff;
-static int irq_list[4] = { -1 };
static int ibl[SNDRV_CARDS];
module_param_array(index, int, NULL, 0444);
@@ -65,10 +63,6 @@
MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard.");
module_param_array(enable, bool, NULL, 0444);
MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard.");
-module_param(irq_mask, int, 0444);
-MODULE_PARM_DESC(irq_mask, "IRQ bitmask for " CARD_NAME " soundcard.");
-module_param_array(irq_list, int, NULL, 0444);
-MODULE_PARM_DESC(irq_list, "List of Available interrupts for " CARD_NAME " soundcard.");
module_param_array(ibl, int, NULL, 0444);
MODULE_PARM_DESC(ibl, "Capture IBL size for " CARD_NAME " soundcard.");
@@ -123,8 +117,6 @@
.index_table = index,
.id_table = id,
.enable_table = enable,
- .irq_mask_p = &irq_mask,
- .irq_list = irq_list,
.ibl = ibl,
/* h/w config */
Index: 2.6.10/sound/pcmcia/vx/vxpocket.h
===================================================================
--- 2.6.10.orig/sound/pcmcia/vx/vxpocket.h 2005-01-11 14:03:35.000000000 +0100
+++ 2.6.10/sound/pcmcia/vx/vxpocket.h 2005-01-11 16:36:49.000000000 +0100
@@ -35,8 +35,6 @@
int *index_table;
char **id_table;
int *enable_table;
- unsigned int *irq_mask_p;
- int *irq_list;
int *ibl;
/* h/w config */
More information about the linux-pcmcia
mailing list