driver-changes.txt 2.1 KB

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