pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Subsystems (2)
PATCH 3/4 pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Hi Jeff,
Below is the pollcontroller patch for smc ultra net driver. This patch can be applied over 2.6.0-test9-bk25-netdrvr-exp1.patch
drivers/net/smc-ultra.c +11 -0
@@ -121,6 +121,14 @@ MODULE_DEVICE_TABLE(isapnp, ultra_device#define ULTRA_IO_EXTENT 32#define EN0_ERWCNT 0x08/* Early receive warning count. */ +#ifdef CONFIG_NET_POLL_CONTROLLER +static void ultra_poll (struct net_device *dev) +{ +disable_irq (dev->irq); +ei_interrupt (dev->irq, dev,NULL ); +enable_irq (dev->irq); +} +#endif /* Probe for the Ultra. This looks like a 8013 with the station address PROM at I/O ports <base>+8 to <base>+13, with a checksum following.
@@ -134,6 +142,9 @@ static int __init do_ultra_probe(structSET_MODULE_OWNER (dev); +#ifdef CONFIG_NET_POLL_CONTROLLER + dev->poll_controller = &ultra_poll; +#endif if (base_addr >0x1ff )/* Check a single specified location. */ return ultra_probe1 (dev, base_addr);else if (base_addr !=0 )/* Don't probe at all. */
Signature · 5 lines
Thanks & Regards Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-5044632