patch-2.1.99 linux/drivers/net/smc-ultra32.c
Next file: linux/drivers/pci/Makefile
Previous file: linux/drivers/net/arcnet.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Apr 30 09:33:28 1998
- Orig file:
v2.1.98/linux/drivers/net/smc-ultra32.c
- Orig date:
Tue Mar 10 10:03:32 1998
diff -u --recursive --new-file v2.1.98/linux/drivers/net/smc-ultra32.c linux/drivers/net/smc-ultra32.c
@@ -239,8 +239,9 @@
static int ultra32_open(struct device *dev)
{
int ioaddr = dev->base_addr - ULTRA32_NIC_OFFSET; /* ASIC addr */
+ int irq_flags = (inb(ioaddr + ULTRA32_CFG5) & 0x08) ? 0 : SA_SHIRQ;
- if (request_irq(dev->irq, ei_interrupt, 0, ei_status.name, dev))
+ if (request_irq(dev->irq, ei_interrupt, irq_flags, ei_status.name, dev))
return -EAGAIN;
outb(ULTRA32_MEMENB, ioaddr); /* Enable Shared Memory. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov