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