aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-07-07 20:59:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-07 21:24:05 -0400
commit1e212f3645a6b355de8c43a23376bc0e2ac49a63 (patch)
tree89324df417c19a1a63efb2ec6630e7d4b47181a0 /drivers/net/wireless
parentbf45d9b0ac108b11245203ebb082d30f5059846b (diff)
[PATCH] pcmcia: move event handler
Move the "event handler" to struct pcmcia_driver -- the unified event handler will disappear really soon, but switching it to struct pcmcia_driver in the meantime allows for better "step-by-step" patches. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/airo_cs.c6
-rw-r--r--drivers/net/wireless/atmel_cs.c16
-rw-r--r--drivers/net/wireless/netwave_cs.c6
-rw-r--r--drivers/net/wireless/orinoco_cs.c6
-rw-r--r--drivers/net/wireless/ray_cs.c6
-rw-r--r--drivers/net/wireless/wavelan_cs.c7
-rw-r--r--drivers/net/wireless/wl3501_cs.c18
7 files changed, 17 insertions, 48 deletions
diff --git a/drivers/net/wireless/airo_cs.c b/drivers/net/wireless/airo_cs.c
index f10a9523034a..fd46393e743e 100644
--- a/drivers/net/wireless/airo_cs.c
+++ b/drivers/net/wireless/airo_cs.c
@@ -210,11 +210,6 @@ static dev_link_t *airo_attach(void)
210 link->next = dev_list; 210 link->next = dev_list;
211 dev_list = link; 211 dev_list = link;
212 client_reg.dev_info = &dev_info; 212 client_reg.dev_info = &dev_info;
213 client_reg.EventMask =
214 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
215 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
216 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
217 client_reg.event_handler = &airo_event;
218 client_reg.Version = 0x0210; 213 client_reg.Version = 0x0210;
219 client_reg.event_callback_args.client_data = link; 214 client_reg.event_callback_args.client_data = link;
220 ret = pcmcia_register_client(&link->handle, &client_reg); 215 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -574,6 +569,7 @@ static struct pcmcia_driver airo_driver = {
574 .name = "airo_cs", 569 .name = "airo_cs",
575 }, 570 },
576 .attach = airo_attach, 571 .attach = airo_attach,
572 .event = airo_event,
577 .detach = airo_detach, 573 .detach = airo_detach,
578 .id_table = airo_ids, 574 .id_table = airo_ids,
579}; 575};
diff --git a/drivers/net/wireless/atmel_cs.c b/drivers/net/wireless/atmel_cs.c
index 86379d4998ac..863be2995036 100644
--- a/drivers/net/wireless/atmel_cs.c
+++ b/drivers/net/wireless/atmel_cs.c
@@ -218,11 +218,6 @@ static dev_link_t *atmel_attach(void)
218 link->next = dev_list; 218 link->next = dev_list;
219 dev_list = link; 219 dev_list = link;
220 client_reg.dev_info = &dev_info; 220 client_reg.dev_info = &dev_info;
221 client_reg.EventMask =
222 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
223 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
224 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
225 client_reg.event_handler = &atmel_event;
226 client_reg.Version = 0x0210; 221 client_reg.Version = 0x0210;
227 client_reg.event_callback_args.client_data = link; 222 client_reg.event_callback_args.client_data = link;
228 ret = pcmcia_register_client(&link->handle, &client_reg); 223 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -668,12 +663,13 @@ static struct pcmcia_device_id atmel_ids[] = {
668MODULE_DEVICE_TABLE(pcmcia, atmel_ids); 663MODULE_DEVICE_TABLE(pcmcia, atmel_ids);
669 664
670static struct pcmcia_driver atmel_driver = { 665static struct pcmcia_driver atmel_driver = {
671 .owner = THIS_MODULE, 666 .owner = THIS_MODULE,
672 .drv = { 667 .drv = {
673 .name = "atmel_cs", 668 .name = "atmel_cs",
674 }, 669 },
675 .attach = atmel_attach, 670 .attach = atmel_attach,
676 .detach = atmel_detach, 671 .event = atmel_event,
672 .detach = atmel_detach,
677 .id_table = atmel_ids, 673 .id_table = atmel_ids,
678}; 674};
679 675
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c
index e12bd75b2694..bdd3e7083d9e 100644
--- a/drivers/net/wireless/netwave_cs.c
+++ b/drivers/net/wireless/netwave_cs.c
@@ -491,11 +491,6 @@ static dev_link_t *netwave_attach(void)
491 link->next = dev_list; 491 link->next = dev_list;
492 dev_list = link; 492 dev_list = link;
493 client_reg.dev_info = &dev_info; 493 client_reg.dev_info = &dev_info;
494 client_reg.EventMask =
495 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
496 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
497 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
498 client_reg.event_handler = &netwave_event;
499 client_reg.Version = 0x0210; 494 client_reg.Version = 0x0210;
500 client_reg.event_callback_args.client_data = link; 495 client_reg.event_callback_args.client_data = link;
501 ret = pcmcia_register_client(&link->handle, &client_reg); 496 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -1680,6 +1675,7 @@ static struct pcmcia_driver netwave_driver = {
1680 .name = "netwave_cs", 1675 .name = "netwave_cs",
1681 }, 1676 },
1682 .attach = netwave_attach, 1677 .attach = netwave_attach,
1678 .event = netwave_event,
1683 .detach = netwave_detach, 1679 .detach = netwave_detach,
1684 .id_table = netwave_ids, 1680 .id_table = netwave_ids,
1685}; 1681};
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c
index 597c4586d049..c883404b1d59 100644
--- a/drivers/net/wireless/orinoco_cs.c
+++ b/drivers/net/wireless/orinoco_cs.c
@@ -186,11 +186,6 @@ orinoco_cs_attach(void)
186 dev_list = link; 186 dev_list = link;
187 187
188 client_reg.dev_info = &dev_info; 188 client_reg.dev_info = &dev_info;
189 client_reg.EventMask =
190 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
191 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
192 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
193 client_reg.event_handler = &orinoco_cs_event;
194 client_reg.Version = 0x0210; /* FIXME: what does this mean? */ 189 client_reg.Version = 0x0210; /* FIXME: what does this mean? */
195 client_reg.event_callback_args.client_data = link; 190 client_reg.event_callback_args.client_data = link;
196 191
@@ -664,6 +659,7 @@ static struct pcmcia_driver orinoco_driver = {
664 .name = DRIVER_NAME, 659 .name = DRIVER_NAME,
665 }, 660 },
666 .attach = orinoco_cs_attach, 661 .attach = orinoco_cs_attach,
662 .event = orinoco_cs_event,
667 .detach = orinoco_cs_detach, 663 .detach = orinoco_cs_detach,
668 .id_table = orinoco_cs_ids, 664 .id_table = orinoco_cs_ids,
669}; 665};
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 31652af52eac..0643b1b94a39 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -393,11 +393,6 @@ static dev_link_t *ray_attach(void)
393 link->next = dev_list; 393 link->next = dev_list;
394 dev_list = link; 394 dev_list = link;
395 client_reg.dev_info = &dev_info; 395 client_reg.dev_info = &dev_info;
396 client_reg.EventMask =
397 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
398 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
399 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
400 client_reg.event_handler = &ray_event;
401 client_reg.Version = 0x0210; 396 client_reg.Version = 0x0210;
402 client_reg.event_callback_args.client_data = link; 397 client_reg.event_callback_args.client_data = link;
403 398
@@ -2916,6 +2911,7 @@ static struct pcmcia_driver ray_driver = {
2916 .name = "ray_cs", 2911 .name = "ray_cs",
2917 }, 2912 },
2918 .attach = ray_attach, 2913 .attach = ray_attach,
2914 .event = ray_event,
2919 .detach = ray_detach, 2915 .detach = ray_detach,
2920 .id_table = ray_ids, 2916 .id_table = ray_ids,
2921}; 2917};
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c
index 89532fd92941..f6130a53b796 100644
--- a/drivers/net/wireless/wavelan_cs.c
+++ b/drivers/net/wireless/wavelan_cs.c
@@ -4684,12 +4684,6 @@ wavelan_attach(void)
4684 4684
4685 /* Register with Card Services */ 4685 /* Register with Card Services */
4686 client_reg.dev_info = &dev_info; 4686 client_reg.dev_info = &dev_info;
4687 client_reg.EventMask =
4688 CS_EVENT_REGISTRATION_COMPLETE |
4689 CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |
4690 CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |
4691 CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;
4692 client_reg.event_handler = &wavelan_event;
4693 client_reg.Version = 0x0210; 4687 client_reg.Version = 0x0210;
4694 client_reg.event_callback_args.client_data = link; 4688 client_reg.event_callback_args.client_data = link;
4695 4689
@@ -4904,6 +4898,7 @@ static struct pcmcia_driver wavelan_driver = {
4904 .name = "wavelan_cs", 4898 .name = "wavelan_cs",
4905 }, 4899 },
4906 .attach = wavelan_attach, 4900 .attach = wavelan_attach,
4901 .event = wavelan_event,
4907 .detach = wavelan_detach, 4902 .detach = wavelan_detach,
4908 .id_table = wavelan_ids, 4903 .id_table = wavelan_ids,
4909}; 4904};
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index e3a900482d92..e3aaaa5efccf 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -2005,13 +2005,6 @@ static dev_link_t *wl3501_attach(void)
2005 link->next = wl3501_dev_list; 2005 link->next = wl3501_dev_list;
2006 wl3501_dev_list = link; 2006 wl3501_dev_list = link;
2007 client_reg.dev_info = &wl3501_dev_info; 2007 client_reg.dev_info = &wl3501_dev_info;
2008 client_reg.EventMask = CS_EVENT_CARD_INSERTION |
2009 CS_EVENT_RESET_PHYSICAL |
2010 CS_EVENT_CARD_RESET |
2011 CS_EVENT_CARD_REMOVAL |
2012 CS_EVENT_PM_SUSPEND |
2013 CS_EVENT_PM_RESUME;
2014 client_reg.event_handler = wl3501_event;
2015 client_reg.Version = 0x0210; 2008 client_reg.Version = 0x0210;
2016 client_reg.event_callback_args.client_data = link; 2009 client_reg.event_callback_args.client_data = link;
2017 ret = pcmcia_register_client(&link->handle, &client_reg); 2010 ret = pcmcia_register_client(&link->handle, &client_reg);
@@ -2246,12 +2239,13 @@ static struct pcmcia_device_id wl3501_ids[] = {
2246MODULE_DEVICE_TABLE(pcmcia, wl3501_ids); 2239MODULE_DEVICE_TABLE(pcmcia, wl3501_ids);
2247 2240
2248static struct pcmcia_driver wl3501_driver = { 2241static struct pcmcia_driver wl3501_driver = {
2249 .owner = THIS_MODULE, 2242 .owner = THIS_MODULE,
2250 .drv = { 2243 .drv = {
2251 .name = "wl3501_cs", 2244 .name = "wl3501_cs",
2252 }, 2245 },
2253 .attach = wl3501_attach, 2246 .attach = wl3501_attach,
2254 .detach = wl3501_detach, 2247 .event = wl3501_event,
2248 .detach = wl3501_detach,
2255 .id_table = wl3501_ids, 2249 .id_table = wl3501_ids,
2256}; 2250};
2257 2251