MODULE_AUTHOR("Jeff Garzik <jgarzik@pobox.com>");
MODULE_DESCRIPTION("Intel/Digital 21040/1 series PCI Ethernet driver");
MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
static int debug = -1;
MODULE_PARM (debug, "i");
unsigned tx_tail;
unsigned rx_tail;
- void __iomem *regs;
+ void *regs;
struct net_device *dev;
spinlock_t lock;
pci_write_config_dword(de->pdev, PCIPM, pmctl);
/* de4x5.c delays, so we do too */
- msleep(10);
+ current->state = TASK_UNINTERRUPTIBLE;
+ schedule_timeout(msecs_to_jiffies(10));
}
}
}
/* Note: this routine returns extra data bits for size detection. */
-static unsigned __init tulip_read_eeprom(void __iomem *regs, int location, int addr_len)
+static unsigned __init tulip_read_eeprom(void *regs, int location, int addr_len)
{
int i;
unsigned retval = 0;
- void __iomem *ee_addr = regs + ROMCmd;
+ void *ee_addr = regs + ROMCmd;
int read_cmd = location | (EE_READ_CMD << addr_len);
writel(EE_ENB & ~EE_CS, ee_addr);
struct net_device *dev;
struct de_private *de;
int rc;
- void __iomem *regs;
+ void *regs;
long pciaddr;
static int board_idx = -1;