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 Index: 2.6.10/drivers/bluetooth/bluecard_cs.c =================================================================== --- 2.6.10.orig/drivers/bluetooth/bluecard_cs.c 2004-12-29 11:28:26.592864977 +0100 +++ 2.6.10/drivers/bluetooth/bluecard_cs.c 2004-12-29 11:28:56.086716756 +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 "); 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 2004-12-29 11:28:26.593864837 +0100 +++ 2.6.10/drivers/bluetooth/bt3c_cs.c 2004-12-29 11:28:56.087716616 +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 , Jose Orlando Pereira "); 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 2004-12-29 11:28:26.594864696 +0100 +++ 2.6.10/drivers/bluetooth/btuart_cs.c 2004-12-29 11:28:56.088716475 +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 "); 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 2004-12-29 11:28:26.594864696 +0100 +++ 2.6.10/drivers/bluetooth/dtl1_cs.c 2004-12-29 11:28:56.213698897 +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 "); 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 2004-12-29 11:28:26.667854430 +0100 +++ 2.6.10/drivers/char/pcmcia/synclink_cs.c 2004-12-29 11:28:56.216698475 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); - MODULE_PARM(break_on_load,"i"); MODULE_PARM(ttymajor,"i"); MODULE_PARM(debug_level,"i"); @@ -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 2004-12-29 11:28:26.668854290 +0100 +++ 2.6.10/drivers/ide/legacy/ide-cs.c 2004-12-29 11:28:56.218698193 +0100 @@ -64,11 +64,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* Bit map of interrupts to choose from */ -INT_MODULE_PARM(irq_mask, 0xdeb8); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - #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 2004-12-29 11:28:26.669854149 +0100 +++ 2.6.10/drivers/isdn/hardware/avm/avm_cs.c 2004-12-29 11:28:56.219698053 +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 2004-12-29 11:28:26.670854008 +0100 +++ 2.6.10/drivers/isdn/hisax/avma1_cs.c 2004-12-29 11:28:56.324683287 +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_PARM(irq_list, "1-11i"); MODULE_PARM(isdnprot, "1-4i"); /*====================================================================*/ @@ -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 2004-12-29 11:28:26.671853868 +0100 +++ 2.6.10/drivers/isdn/hisax/elsa_cs.c 2004-12-29 11:28:56.325683146 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); - static int protocol = 2; /* EURO-ISDN Default */ MODULE_PARM(protocol, "i"); @@ -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 2004-12-29 11:28:26.672853727 +0100 +++ 2.6.10/drivers/isdn/hisax/sedlbauer_cs.c 2004-12-29 11:28:56.326683006 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); - static int protocol = 2; /* EURO-ISDN Default */ MODULE_PARM(protocol, "i"); @@ -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 2004-12-29 11:28:26.672853727 +0100 +++ 2.6.10/drivers/isdn/hisax/teles_cs.c 2004-12-29 11:28:56.327682865 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); - static int protocol = 2; /* EURO-ISDN Default */ MODULE_PARM(protocol, "i"); @@ -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 2004-12-29 11:28:26.675853305 +0100 +++ 2.6.10/drivers/net/pcmcia/3c574_cs.c 2004-12-29 11:28:56.328682724 +0100 @@ -109,11 +109,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* Now-standard PC card module parameters. */ -INT_MODULE_PARM(irq_mask, 0xdeb8); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - /* 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 2004-12-29 11:28:26.676853165 +0100 +++ 2.6.10/drivers/net/pcmcia/3c589_cs.c 2004-12-29 11:28:56.329682584 +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_PARM(irq_list, "1-4i"); - #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 2004-12-29 11:28:26.678852883 +0100 +++ 2.6.10/drivers/net/pcmcia/axnet_cs.c 2004-12-29 11:28:56.331682303 +0100 @@ -75,11 +75,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* Bit map of interrupts to choose from */ -INT_MODULE_PARM(irq_mask, 0xdeb8); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - #ifdef PCMCIA_DEBUG INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG); #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args) @@ -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 2004-12-29 11:28:26.679852743 +0100 +++ 2.6.10/drivers/net/pcmcia/com20020_cs.c 2004-12-29 11:28:56.332682162 +0100 @@ -115,12 +115,6 @@ MODULE_PARM(clockp, "i"); MODULE_PARM(clockm, "i"); -/* Bit map of interrupts to choose from */ -static u_int irq_mask = 0xdeb8; -static int irq_list[4] = { -1 }; - -MODULE_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); 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 2004-12-29 11:28:26.680852602 +0100 +++ 2.6.10/drivers/net/pcmcia/fmvj18x_cs.c 2004-12-29 11:28:56.333682021 +0100 @@ -69,12 +69,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* 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_PARM(irq_list, "1-4i"); - /* 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 2004-12-29 11:28:26.681852461 +0100 +++ 2.6.10/drivers/net/pcmcia/ibmtr_cs.c 2004-12-29 11:28:56.334681881 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); MODULE_PARM(mmiobase, "i"); MODULE_PARM(srambase, "i"); MODULE_PARM(sramsize, "i"); @@ -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 2004-12-29 11:28:26.682852321 +0100 +++ 2.6.10/drivers/net/pcmcia/nmclan_cs.c 2004-12-29 11:28:56.335681740 +0100 @@ -407,13 +407,8 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - /* 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 2004-12-29 11:28:26.684852040 +0100 +++ 2.6.10/drivers/net/pcmcia/pcnet_cs.c 2004-12-29 11:28:56.337681459 +0100 @@ -89,11 +89,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* Bit map of interrupts to choose from */ -INT_MODULE_PARM(irq_mask, 0xdeb8); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - 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 2004-12-29 11:28:26.686851758 +0100 +++ 2.6.10/drivers/net/pcmcia/smc91c92_cs.c 2004-12-29 11:28:56.339681178 +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_PARM(irq_list, "1-4i"); - #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 2004-12-29 11:28:26.687851618 +0100 +++ 2.6.10/drivers/net/pcmcia/xirc2ps_cs.c 2004-12-29 11:28:56.340681037 +0100 @@ -257,9 +257,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); -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 2004-12-29 11:28:26.688851477 +0100 +++ 2.6.10/drivers/net/wireless/airo_cs.c 2004-12-29 11:28:56.342680756 +0100 @@ -63,20 +63,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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); /*====================================================================*/ @@ -178,7 +170,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 +184,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 2004-12-29 11:28:26.689851336 +0100 +++ 2.6.10/drivers/net/wireless/atmel_cs.c 2004-12-29 11:28:56.343680615 +0100 @@ -76,18 +76,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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); /*====================================================================*/ @@ -190,7 +182,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 +196,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 2004-12-29 11:28:26.691851055 +0100 +++ 2.6.10/drivers/net/wireless/netwave_cs.c 2004-12-29 11:28:56.344680474 +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_PARM(domain, "i"); MODULE_PARM(scramble_key, "i"); MODULE_PARM(mem_speed, "i"); -MODULE_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); /*====================================================================*/ @@ -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 2004-12-29 11:28:26.692850915 +0100 +++ 2.6.10/drivers/net/wireless/orinoco_cs.c 2004-12-29 11:28:56.345680334 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); MODULE_PARM(ignore_cis_vcc, "i"); /********************************************************************/ @@ -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 2004-12-29 11:28:26.694850633 +0100 +++ 2.6.10/drivers/net/wireless/ray_cs.c 2004-12-29 11:28:56.348679912 +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_PARM(irq_mask,"i"); MODULE_PARM(net_type,"i"); MODULE_PARM(hop_dwell,"i"); MODULE_PARM(beacon_period,"i"); @@ -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 2004-12-29 11:28:26.698850071 +0100 +++ 2.6.10/drivers/net/wireless/wavelan_cs.c 2004-12-29 11:28:56.351679490 +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 2004-12-29 11:26:51.371257608 +0100 +++ 2.6.10/drivers/net/wireless/wavelan_cs.p.h 2004-12-29 11:28:56.353679209 +0100 @@ -795,17 +795,10 @@ * The exact syntax is 'insmod wavelan_cs.o =' */ -/* 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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); MODULE_PARM(mem_speed, "i"); #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 2004-12-29 11:28:26.700849790 +0100 +++ 2.6.10/drivers/net/wireless/wl3501_cs.c 2004-12-29 11:28:56.354679068 +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_PARM(wl3501_irq_mask, "i"); -MODULE_PARM(wl3501_irq_list, "1-4i"); MODULE_AUTHOR("Fox Chen , " "Arnaldo Carvalho de Melo ," "Gustavo Niemeyer "); Index: 2.6.10/drivers/parport/parport_cs.c =================================================================== --- 2.6.10.orig/drivers/parport/parport_cs.c 2004-12-29 11:28:26.701849649 +0100 +++ 2.6.10/drivers/parport/parport_cs.c 2004-12-29 11:28:56.355678928 +0100 @@ -66,11 +66,6 @@ #define INT_MODULE_PARM(n, v) static int n = v; MODULE_PARM(n, "i") -/* Bit map of interrupts to choose from */ -INT_MODULE_PARM(irq_mask, 0xdeb8); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - 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 2004-12-29 11:28:26.703849368 +0100 +++ 2.6.10/drivers/scsi/pcmcia/aha152x_stub.c 2004-12-29 11:28:56.356678787 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); MODULE_PARM(host_id, "i"); MODULE_PARM(reconnect, "i"); MODULE_PARM(parity, "i"); @@ -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 2004-12-29 11:28:26.704849227 +0100 +++ 2.6.10/drivers/scsi/pcmcia/fdomain_stub.c 2004-12-29 11:28:56.357678646 +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_PARM(irq_mask, "i"); -static int irq_list[4] = { -1 }; -MODULE_PARM(irq_list, "1-4i"); - #ifdef PCMCIA_DEBUG static int pc_debug = PCMCIA_DEBUG; MODULE_PARM(pc_debug, "i"); @@ -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 2004-12-29 11:28:26.705849086 +0100 +++ 2.6.10/drivers/scsi/pcmcia/nsp_cs.c 2004-12-29 11:28:56.359678365 +0100 @@ -72,14 +72,6 @@ /*====================================================================*/ /* Parameters that can be set with 'insmod' */ -static unsigned int irq_mask = 0xffff; -MODULE_PARM (irq_mask, "i"); -MODULE_PARM_DESC(irq_mask, "IRQ mask bits (default: 0xffff)"); - -static int irq_list[4] = { -1 }; -MODULE_PARM (irq_list, "1-4i"); -MODULE_PARM_DESC(irq_list, "Use specified IRQ number. (default: auto select)"); - static int nsp_burst_mode = BURST_MEM32; MODULE_PARM (nsp_burst_mode, "i"); 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 2004-12-29 11:28:26.706848946 +0100 +++ 2.6.10/drivers/scsi/pcmcia/qlogic_stub.c 2004-12-29 11:28:56.360678224 +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_PARM(irq_mask, "i"); -MODULE_PARM(irq_list, "1-4i"); - -/*====================================================================*/ - 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 2004-12-29 11:28:26.707848805 +0100 +++ 2.6.10/drivers/scsi/pcmcia/sym53c500_cs.c 2004-12-29 11:28:56.361678084 +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 2004-12-29 11:28:26.708848665 +0100 +++ 2.6.10/drivers/serial/serial_cs.c 2004-12-29 11:28:56.362677943 +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 2004-12-29 11:28:26.711848243 +0100 +++ 2.6.10/sound/pcmcia/pdaudiocf/pdaudiocf.c 2004-12-29 11:28:56.363677803 +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 2004-12-29 11:28:26.712848102 +0100 +++ 2.6.10/sound/pcmcia/vx/vx_entry.c 2004-12-29 11:28:56.364677662 +0100 @@ -141,12 +141,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 2004-12-29 11:27:19.537296140 +0100 +++ 2.6.10/sound/pcmcia/vx/vxpocket.c 2004-12-29 11:28:56.364677662 +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 2004-12-29 11:27:19.538296000 +0100 +++ 2.6.10/sound/pcmcia/vx/vxpocket.h 2004-12-29 11:28:56.365677521 +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 */