driver-changes.txt 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. This file details changes in 2.6 which affect PCMCIA card driver authors:
  2. * event handler initialization in struct pcmcia_driver (as of 2.6.13)
  3. The event handler is notified of all events, and must be initialized
  4. as the event() callback in the driver's struct pcmcia_driver.
  5. * pcmcia/version.h should not be used (as of 2.6.13)
  6. This file will be removed eventually.
  7. * in-kernel device<->driver matching (as of 2.6.13)
  8. PCMCIA devices and their correct drivers can now be matched in
  9. kernelspace. See 'devicetable.txt' for details.
  10. * Device model integration (as of 2.6.11)
  11. A struct pcmcia_device is registered with the device model core,
  12. and can be used (e.g. for SET_NETDEV_DEV) by using
  13. handle_to_dev(client_handle_t * handle).
  14. * Convert internal I/O port addresses to unsigned long (as of 2.6.11)
  15. ioaddr_t should be replaced by kio_addr_t in PCMCIA card drivers.
  16. * irq_mask and irq_list parameters (as of 2.6.11)
  17. The irq_mask and irq_list parameters should no longer be used in
  18. PCMCIA card drivers. Instead, it is the job of the PCMCIA core to
  19. determine which IRQ should be used. Therefore, link->irq.IRQInfo2
  20. is ignored.
  21. * client->PendingEvents is gone (as of 2.6.11)
  22. client->PendingEvents is no longer available.
  23. * client->Attributes are gone (as of 2.6.11)
  24. client->Attributes is unused, therefore it is removed from all
  25. PCMCIA card drivers
  26. * core functions no longer available (as of 2.6.11)
  27. The following functions have been removed from the kernel source
  28. because they are unused by all in-kernel drivers, and no external
  29. driver was reported to rely on them:
  30. pcmcia_get_first_region()
  31. pcmcia_get_next_region()
  32. pcmcia_modify_window()
  33. pcmcia_set_event_mask()
  34. pcmcia_get_first_window()
  35. pcmcia_get_next_window()
  36. * device list iteration upon module removal (as of 2.6.10)
  37. It is no longer necessary to iterate on the driver's internal
  38. client list and call the ->detach() function upon module removal.
  39. * Resource management. (as of 2.6.8)
  40. Although the PCMCIA subsystem will allocate resources for cards,
  41. it no longer marks these resources busy. This means that driver
  42. authors are now responsible for claiming your resources as per
  43. other drivers in Linux. You should use request_region() to mark
  44. your IO regions in-use, and request_mem_region() to mark your
  45. memory regions in-use. The name argument should be a pointer to
  46. your driver name. Eg, for pcnet_cs, name should point to the
  47. string "pcnet_cs".
  48. * CardServices is gone
  49. CardServices() in 2.4 is just a big switch statement to call various
  50. services. In 2.6, all of those entry points are exported and called
  51. directly (except for pcmcia_report_error(), just use cs_error() instead).
  52. * struct pcmcia_driver
  53. You need to use struct pcmcia_driver and pcmcia_{un,}register_driver
  54. instead of {un,}register_pccard_driver