40 #define DRIVER_NAME "orinoco_nortel"
41 #define PFX DRIVER_NAME ": "
43 #include <linux/module.h>
44 #include <linux/kernel.h>
47 #include <linux/pci.h>
53 #define COR_OFFSET (0xe0)
54 #define COR_VALUE (COR_LEVEL_REQ | COR_FUNC_ENA)
104 for (i = 0; i < 30; i++) {
141 static int orinoco_nortel_init_one(
struct pci_dev *pdev,
161 bridge_io = pci_iomap(pdev, 0, 0);
165 goto fail_map_bridge;
168 attr_io = pci_iomap(pdev, 1, 0);
175 hermes_io = pci_iomap(pdev, 2, 0);
179 goto fail_map_hermes;
184 orinoco_nortel_cor_reset,
NULL);
205 err = orinoco_nortel_hw_init(card);
211 err = orinoco_nortel_cor_reset(priv);
229 pci_set_drvdata(pdev, priv);
237 pci_set_drvdata(pdev,
NULL);
268 pci_set_drvdata(pdev,
NULL);
287 static struct pci_driver orinoco_nortel_driver = {
289 .id_table = orinoco_nortel_id_table,
290 .probe = orinoco_nortel_init_one,
302 static int __init orinoco_nortel_init(
void)
305 return pci_register_driver(&orinoco_nortel_driver);
308 static void __exit orinoco_nortel_exit(
void)