Dominik Brodowski | 5085cb2 | 2005-06-27 16:28:45 -0700 | [diff] [blame^] | 1 | This file details changes in 2.6 which affect PCMCIA card driver authors: |
| 2 | |
| 3 | * in-kernel device<->driver matching |
| 4 | PCMCIA devices and their correct drivers can now be matched in |
| 5 | kernelspace. See 'devicetable.txt' for details. |
| 6 | |
| 7 | * Device model integration (as of 2.6.11) |
| 8 | A struct pcmcia_device is registered with the device model core, |
| 9 | and can be used (e.g. for SET_NETDEV_DEV) by using |
| 10 | handle_to_dev(client_handle_t * handle). |
| 11 | |
| 12 | * Convert internal I/O port addresses to unsigned long (as of 2.6.11) |
| 13 | ioaddr_t should be replaced by kio_addr_t in PCMCIA card drivers. |
| 14 | |
| 15 | * irq_mask and irq_list parameters (as of 2.6.11) |
| 16 | The irq_mask and irq_list parameters should no longer be used in |
| 17 | PCMCIA card drivers. Instead, it is the job of the PCMCIA core to |
| 18 | determine which IRQ should be used. Therefore, link->irq.IRQInfo2 |
| 19 | is ignored. |
| 20 | |
| 21 | * client->PendingEvents is gone (as of 2.6.11) |
| 22 | client->PendingEvents is no longer available. |
| 23 | |
| 24 | * client->Attributes are gone (as of 2.6.11) |
| 25 | client->Attributes is unused, therefore it is removed from all |
| 26 | PCMCIA card drivers |
| 27 | |
| 28 | * core functions no longer available (as of 2.6.11) |
| 29 | The following functions have been removed from the kernel source |
| 30 | because they are unused by all in-kernel drivers, and no external |
| 31 | driver was reported to rely on them: |
| 32 | pcmcia_get_first_region() |
| 33 | pcmcia_get_next_region() |
| 34 | pcmcia_modify_window() |
| 35 | pcmcia_set_event_mask() |
| 36 | pcmcia_get_first_window() |
| 37 | pcmcia_get_next_window() |
| 38 | |
| 39 | * device list iteration upon module removal (as of 2.6.10) |
| 40 | It is no longer necessary to iterate on the driver's internal |
| 41 | client list and call the ->detach() function upon module removal. |
| 42 | |
| 43 | * Resource management. (as of 2.6.8) |
| 44 | Although the PCMCIA subsystem will allocate resources for cards, |
| 45 | it no longer marks these resources busy. This means that driver |
| 46 | authors are now responsible for claiming your resources as per |
| 47 | other drivers in Linux. You should use request_region() to mark |
| 48 | your IO regions in-use, and request_mem_region() to mark your |
| 49 | memory regions in-use. The name argument should be a pointer to |
| 50 | your driver name. Eg, for pcnet_cs, name should point to the |
| 51 | string "pcnet_cs". |