Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 1 | /* orinoco_nortel.c |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 2 | * |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 3 | * Driver for Prism II devices which would usually be driven by orinoco_cs, |
Pavel Roskin | d495657 | 2005-12-16 18:57:10 -0500 | [diff] [blame] | 4 | * but are connected to the PCI bus by a PCI-to-PCMCIA adapter used in |
| 5 | * Nortel emobility, Symbol LA-4113 and Symbol LA-4123. |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 6 | * but are connected to the PCI bus by a Nortel PCI-PCMCIA-Adapter. |
| 7 | * |
| 8 | * Copyright (C) 2002 Tobias Hoffmann |
| 9 | * (C) 2003 Christoph Jungegger <disdos@traum404.de> |
| 10 | * |
| 11 | * Some of this code is borrowed from orinoco_plx.c |
| 12 | * Copyright (C) 2001 Daniel Barlow |
| 13 | * Some of this code is borrowed from orinoco_pci.c |
| 14 | * Copyright (C) 2001 Jean Tourrilhes |
| 15 | * Some of this code is "inspired" by linux-wlan-ng-0.1.10, but nothing |
| 16 | * has been copied from it. linux-wlan-ng-0.1.10 is originally : |
| 17 | * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. |
| 18 | * |
| 19 | * The contents of this file are subject to the Mozilla Public License |
| 20 | * Version 1.1 (the "License"); you may not use this file except in |
| 21 | * compliance with the License. You may obtain a copy of the License |
| 22 | * at http://www.mozilla.org/MPL/ |
| 23 | * |
| 24 | * Software distributed under the License is distributed on an "AS IS" |
| 25 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See |
| 26 | * the License for the specific language governing rights and |
| 27 | * limitations under the License. |
| 28 | * |
| 29 | * Alternatively, the contents of this file may be used under the |
| 30 | * terms of the GNU General Public License version 2 (the "GPL"), in |
| 31 | * which case the provisions of the GPL are applicable instead of the |
| 32 | * above. If you wish to allow the use of your version of this file |
| 33 | * only under the terms of the GPL and not to allow others to use your |
| 34 | * version of this file under the MPL, indicate your decision by |
| 35 | * deleting the provisions above and replace them with the notice and |
| 36 | * other provisions required by the GPL. If you do not delete the |
| 37 | * provisions above, a recipient may use your version of this file |
| 38 | * under either the MPL or the GPL. |
| 39 | */ |
| 40 | |
| 41 | #define DRIVER_NAME "orinoco_nortel" |
| 42 | #define PFX DRIVER_NAME ": " |
| 43 | |
| 44 | #include <linux/config.h> |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 45 | #include <linux/module.h> |
| 46 | #include <linux/kernel.h> |
| 47 | #include <linux/init.h> |
Pavel Roskin | ef846bf | 2005-09-23 04:18:07 -0400 | [diff] [blame] | 48 | #include <linux/delay.h> |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 49 | #include <linux/pci.h> |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 50 | #include <pcmcia/cisreg.h> |
| 51 | |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 52 | #include "orinoco.h" |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 53 | #include "orinoco_pci.h" |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 54 | |
| 55 | #define COR_OFFSET (0xe0) /* COR attribute offset of Prism2 PC card */ |
| 56 | #define COR_VALUE (COR_LEVEL_REQ | COR_FUNC_ENA) /* Enable PC card with interrupt in level trigger */ |
| 57 | |
| 58 | |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 59 | /* |
| 60 | * Do a soft reset of the PCI card using the Configuration Option Register |
| 61 | * We need this to get going... |
| 62 | * This is the part of the code that is strongly inspired from wlan-ng |
| 63 | * |
| 64 | * Note bis : Don't try to access HERMES_CMD during the reset phase. |
| 65 | * It just won't work ! |
| 66 | */ |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 67 | static int orinoco_nortel_cor_reset(struct orinoco_private *priv) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 68 | { |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 69 | struct orinoco_pci_card *card = priv->card; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 70 | |
| 71 | /* Assert the reset until the card notice */ |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 72 | iowrite16(8, card->bridge_io + 2); |
| 73 | ioread16(card->attr_io + COR_OFFSET); |
| 74 | iowrite16(0x80, card->attr_io + COR_OFFSET); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 75 | mdelay(1); |
| 76 | |
| 77 | /* Give time for the card to recover from this hard effort */ |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 78 | iowrite16(0, card->attr_io + COR_OFFSET); |
| 79 | iowrite16(0, card->attr_io + COR_OFFSET); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 80 | mdelay(1); |
| 81 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 82 | /* Set COR as usual */ |
| 83 | iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); |
| 84 | iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 85 | mdelay(1); |
| 86 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 87 | iowrite16(0x228, card->bridge_io + 2); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 88 | |
| 89 | return 0; |
| 90 | } |
| 91 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 92 | static int orinoco_nortel_hw_init(struct orinoco_pci_card *card) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 93 | { |
| 94 | int i; |
| 95 | u32 reg; |
| 96 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 97 | /* Setup bridge */ |
| 98 | if (ioread16(card->bridge_io) & 1) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 99 | printk(KERN_ERR PFX "brg1 answer1 wrong\n"); |
| 100 | return -EBUSY; |
| 101 | } |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 102 | iowrite16(0x118, card->bridge_io + 2); |
| 103 | iowrite16(0x108, card->bridge_io + 2); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 104 | mdelay(30); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 105 | iowrite16(0x8, card->bridge_io + 2); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 106 | for (i = 0; i < 30; i++) { |
| 107 | mdelay(30); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 108 | if (ioread16(card->bridge_io) & 0x10) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 109 | break; |
| 110 | } |
| 111 | } |
| 112 | if (i == 30) { |
| 113 | printk(KERN_ERR PFX "brg1 timed out\n"); |
| 114 | return -EBUSY; |
| 115 | } |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 116 | if (ioread16(card->attr_io + COR_OFFSET) & 1) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 117 | printk(KERN_ERR PFX "brg2 answer1 wrong\n"); |
| 118 | return -EBUSY; |
| 119 | } |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 120 | if (ioread16(card->attr_io + COR_OFFSET + 2) & 1) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 121 | printk(KERN_ERR PFX "brg2 answer2 wrong\n"); |
| 122 | return -EBUSY; |
| 123 | } |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 124 | if (ioread16(card->attr_io + COR_OFFSET + 4) & 1) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 125 | printk(KERN_ERR PFX "brg2 answer3 wrong\n"); |
| 126 | return -EBUSY; |
| 127 | } |
| 128 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 129 | /* Set the PCMCIA COR-Register */ |
| 130 | iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 131 | mdelay(1); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 132 | reg = ioread16(card->attr_io + COR_OFFSET); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 133 | if (reg != COR_VALUE) { |
| 134 | printk(KERN_ERR PFX "Error setting COR value (reg=%x)\n", |
| 135 | reg); |
| 136 | return -EBUSY; |
| 137 | } |
| 138 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 139 | /* Set LEDs */ |
| 140 | iowrite16(1, card->bridge_io + 10); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 141 | return 0; |
| 142 | } |
| 143 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 144 | static int orinoco_nortel_init_one(struct pci_dev *pdev, |
| 145 | const struct pci_device_id *ent) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 146 | { |
| 147 | int err; |
| 148 | struct orinoco_private *priv; |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 149 | struct orinoco_pci_card *card; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 150 | struct net_device *dev; |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 151 | void __iomem *hermes_io, *bridge_io, *attr_io; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 152 | |
| 153 | err = pci_enable_device(pdev); |
| 154 | if (err) { |
| 155 | printk(KERN_ERR PFX "Cannot enable PCI device\n"); |
| 156 | return err; |
| 157 | } |
| 158 | |
| 159 | err = pci_request_regions(pdev, DRIVER_NAME); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 160 | if (err) { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 161 | printk(KERN_ERR PFX "Cannot obtain PCI resources\n"); |
| 162 | goto fail_resources; |
| 163 | } |
| 164 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 165 | bridge_io = pci_iomap(pdev, 0, 0); |
| 166 | if (!bridge_io) { |
| 167 | printk(KERN_ERR PFX "Cannot map bridge registers\n"); |
| 168 | err = -EIO; |
| 169 | goto fail_map_bridge; |
| 170 | } |
| 171 | |
| 172 | attr_io = pci_iomap(pdev, 1, 0); |
| 173 | if (!attr_io) { |
| 174 | printk(KERN_ERR PFX "Cannot map PCMCIA attributes\n"); |
| 175 | err = -EIO; |
| 176 | goto fail_map_attr; |
| 177 | } |
| 178 | |
| 179 | hermes_io = pci_iomap(pdev, 2, 0); |
| 180 | if (!hermes_io) { |
| 181 | printk(KERN_ERR PFX "Cannot map chipset registers\n"); |
| 182 | err = -EIO; |
| 183 | goto fail_map_hermes; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 184 | } |
| 185 | |
| 186 | /* Allocate network device */ |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 187 | dev = alloc_orinocodev(sizeof(*card), orinoco_nortel_cor_reset); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 188 | if (!dev) { |
| 189 | printk(KERN_ERR PFX "Cannot allocate network device\n"); |
| 190 | err = -ENOMEM; |
| 191 | goto fail_alloc; |
| 192 | } |
| 193 | |
| 194 | priv = netdev_priv(dev); |
| 195 | card = priv->card; |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 196 | card->bridge_io = bridge_io; |
| 197 | card->attr_io = attr_io; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 198 | SET_MODULE_OWNER(dev); |
| 199 | SET_NETDEV_DEV(dev, &pdev->dev); |
| 200 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 201 | hermes_struct_init(&priv->hw, hermes_io, HERMES_16BIT_REGSPACING); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 202 | |
| 203 | err = request_irq(pdev->irq, orinoco_interrupt, SA_SHIRQ, |
| 204 | dev->name, dev); |
| 205 | if (err) { |
| 206 | printk(KERN_ERR PFX "Cannot allocate IRQ %d\n", pdev->irq); |
| 207 | err = -EBUSY; |
| 208 | goto fail_irq; |
| 209 | } |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 210 | orinoco_pci_setup_netdev(dev, pdev, 2); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 211 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 212 | err = orinoco_nortel_hw_init(card); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 213 | if (err) { |
| 214 | printk(KERN_ERR PFX "Hardware initialization failed\n"); |
| 215 | goto fail; |
| 216 | } |
| 217 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 218 | err = orinoco_nortel_cor_reset(priv); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 219 | if (err) { |
| 220 | printk(KERN_ERR PFX "Initial reset failed\n"); |
| 221 | goto fail; |
| 222 | } |
| 223 | |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 224 | err = register_netdev(dev); |
| 225 | if (err) { |
| 226 | printk(KERN_ERR PFX "Cannot register network device\n"); |
| 227 | goto fail; |
| 228 | } |
| 229 | |
| 230 | pci_set_drvdata(pdev, dev); |
| 231 | |
| 232 | return 0; |
| 233 | |
| 234 | fail: |
| 235 | free_irq(pdev->irq, dev); |
| 236 | |
| 237 | fail_irq: |
| 238 | pci_set_drvdata(pdev, NULL); |
| 239 | free_orinocodev(dev); |
| 240 | |
| 241 | fail_alloc: |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 242 | pci_iounmap(pdev, hermes_io); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 243 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 244 | fail_map_hermes: |
| 245 | pci_iounmap(pdev, attr_io); |
| 246 | |
| 247 | fail_map_attr: |
| 248 | pci_iounmap(pdev, bridge_io); |
| 249 | |
| 250 | fail_map_bridge: |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 251 | pci_release_regions(pdev); |
| 252 | |
| 253 | fail_resources: |
| 254 | pci_disable_device(pdev); |
| 255 | |
| 256 | return err; |
| 257 | } |
| 258 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 259 | static void __devexit orinoco_nortel_remove_one(struct pci_dev *pdev) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 260 | { |
| 261 | struct net_device *dev = pci_get_drvdata(pdev); |
| 262 | struct orinoco_private *priv = netdev_priv(dev); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 263 | struct orinoco_pci_card *card = priv->card; |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 264 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 265 | /* Clear LEDs */ |
| 266 | iowrite16(0, card->bridge_io + 10); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 267 | |
| 268 | unregister_netdev(dev); |
| 269 | free_irq(dev->irq, dev); |
| 270 | pci_set_drvdata(pdev, NULL); |
| 271 | free_orinocodev(dev); |
| 272 | pci_iounmap(pdev, priv->hw.iobase); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 273 | pci_iounmap(pdev, card->attr_io); |
| 274 | pci_iounmap(pdev, card->bridge_io); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 275 | pci_release_regions(pdev); |
| 276 | pci_disable_device(pdev); |
| 277 | } |
| 278 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 279 | static struct pci_device_id orinoco_nortel_id_table[] = { |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 280 | /* Nortel emobility PCI */ |
| 281 | {0x126c, 0x8030, PCI_ANY_ID, PCI_ANY_ID,}, |
Pavel Roskin | d495657 | 2005-12-16 18:57:10 -0500 | [diff] [blame] | 282 | /* Symbol LA-4123 PCI */ |
| 283 | {0x1562, 0x0001, PCI_ANY_ID, PCI_ANY_ID,}, |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 284 | {0,}, |
| 285 | }; |
| 286 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 287 | MODULE_DEVICE_TABLE(pci, orinoco_nortel_id_table); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 288 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 289 | static struct pci_driver orinoco_nortel_driver = { |
Pavel Roskin | c6fb2e9 | 2006-04-07 04:10:55 -0400 | [diff] [blame] | 290 | .name = DRIVER_NAME, |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 291 | .id_table = orinoco_nortel_id_table, |
| 292 | .probe = orinoco_nortel_init_one, |
| 293 | .remove = __devexit_p(orinoco_nortel_remove_one), |
| 294 | .suspend = orinoco_pci_suspend, |
| 295 | .resume = orinoco_pci_resume, |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 296 | }; |
| 297 | |
| 298 | static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION |
| 299 | " (Tobias Hoffmann & Christoph Jungegger <disdos@traum404.de>)"; |
| 300 | MODULE_AUTHOR("Christoph Jungegger <disdos@traum404.de>"); |
| 301 | MODULE_DESCRIPTION |
| 302 | ("Driver for wireless LAN cards using the Nortel PCI bridge"); |
| 303 | MODULE_LICENSE("Dual MPL/GPL"); |
| 304 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 305 | static int __init orinoco_nortel_init(void) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 306 | { |
| 307 | printk(KERN_DEBUG "%s\n", version); |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 308 | return pci_module_init(&orinoco_nortel_driver); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 309 | } |
| 310 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 311 | static void __exit orinoco_nortel_exit(void) |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 312 | { |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 313 | pci_unregister_driver(&orinoco_nortel_driver); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 314 | } |
| 315 | |
Pavel Roskin | b884c87 | 2006-04-07 04:10:57 -0400 | [diff] [blame^] | 316 | module_init(orinoco_nortel_init); |
| 317 | module_exit(orinoco_nortel_exit); |
Pavel Roskin | ec82905 | 2005-09-01 20:08:56 -0400 | [diff] [blame] | 318 | |
| 319 | /* |
| 320 | * Local variables: |
| 321 | * c-indent-level: 8 |
| 322 | * c-basic-offset: 8 |
| 323 | * tab-width: 8 |
| 324 | * End: |
| 325 | */ |