aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r--drivers/net/pcmcia/3c574_cs.c5
-rw-r--r--drivers/net/pcmcia/3c589_cs.c5
-rw-r--r--drivers/net/pcmcia/axnet_cs.c10
-rw-r--r--drivers/net/pcmcia/com20020_cs.c5
-rw-r--r--drivers/net/pcmcia/fmvj18x_cs.c5
-rw-r--r--drivers/net/pcmcia/ibmtr_cs.c5
-rw-r--r--drivers/net/pcmcia/nmclan_cs.c5
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c7
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c9
-rw-r--r--drivers/net/pcmcia/xirc2ps_cs.c12
10 files changed, 30 insertions, 38 deletions
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c
index 4b670b3da378..8abce76367f8 100644
--- a/drivers/net/pcmcia/3c574_cs.c
+++ b/drivers/net/pcmcia/3c574_cs.c
@@ -87,7 +87,6 @@ earlier 3Com products.
87#include <linux/bitops.h> 87#include <linux/bitops.h>
88#include <linux/mii.h> 88#include <linux/mii.h>
89 89
90#include <pcmcia/cs.h>
91#include <pcmcia/cistpl.h> 90#include <pcmcia/cistpl.h>
92#include <pcmcia/cisreg.h> 91#include <pcmcia/cisreg.h>
93#include <pcmcia/ciscode.h> 92#include <pcmcia/ciscode.h>
@@ -280,7 +279,7 @@ static int tc574_probe(struct pcmcia_device *link)
280 spin_lock_init(&lp->window_lock); 279 spin_lock_init(&lp->window_lock);
281 link->resource[0]->end = 32; 280 link->resource[0]->end = 32;
282 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; 281 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
283 link->conf.Attributes = CONF_ENABLE_IRQ; 282 link->config_flags |= CONF_ENABLE_IRQ;
284 link->config_index = 1; 283 link->config_index = 1;
285 284
286 dev->netdev_ops = &el3_netdev_ops; 285 dev->netdev_ops = &el3_netdev_ops;
@@ -351,7 +350,7 @@ static int tc574_config(struct pcmcia_device *link)
351 if (ret) 350 if (ret)
352 goto failed; 351 goto failed;
353 352
354 ret = pcmcia_request_configuration(link, &link->conf); 353 ret = pcmcia_enable_device(link);
355 if (ret) 354 if (ret)
356 goto failed; 355 goto failed;
357 356
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c
index 6549e2c496a0..34195c407fb2 100644
--- a/drivers/net/pcmcia/3c589_cs.c
+++ b/drivers/net/pcmcia/3c589_cs.c
@@ -41,7 +41,6 @@
41#include <linux/bitops.h> 41#include <linux/bitops.h>
42#include <linux/jiffies.h> 42#include <linux/jiffies.h>
43 43
44#include <pcmcia/cs.h>
45#include <pcmcia/cistpl.h> 44#include <pcmcia/cistpl.h>
46#include <pcmcia/cisreg.h> 45#include <pcmcia/cisreg.h>
47#include <pcmcia/ciscode.h> 46#include <pcmcia/ciscode.h>
@@ -216,7 +215,7 @@ static int tc589_probe(struct pcmcia_device *link)
216 link->resource[0]->end = 16; 215 link->resource[0]->end = 16;
217 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; 216 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
218 217
219 link->conf.Attributes = CONF_ENABLE_IRQ; 218 link->config_flags |= CONF_ENABLE_IRQ;
220 link->config_index = 1; 219 link->config_index = 1;
221 220
222 dev->netdev_ops = &el3_netdev_ops; 221 dev->netdev_ops = &el3_netdev_ops;
@@ -293,7 +292,7 @@ static int tc589_config(struct pcmcia_device *link)
293 if (ret) 292 if (ret)
294 goto failed; 293 goto failed;
295 294
296 ret = pcmcia_request_configuration(link, &link->conf); 295 ret = pcmcia_enable_device(link);
297 if (ret) 296 if (ret)
298 goto failed; 297 goto failed;
299 298
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c
index 2c273ce6a5d8..f361d2865e34 100644
--- a/drivers/net/pcmcia/axnet_cs.c
+++ b/drivers/net/pcmcia/axnet_cs.c
@@ -39,7 +39,6 @@
39#include <linux/mii.h> 39#include <linux/mii.h>
40#include "../8390.h" 40#include "../8390.h"
41 41
42#include <pcmcia/cs.h>
43#include <pcmcia/cistpl.h> 42#include <pcmcia/cistpl.h>
44#include <pcmcia/ciscode.h> 43#include <pcmcia/ciscode.h>
45#include <pcmcia/ds.h> 44#include <pcmcia/ds.h>
@@ -166,7 +165,7 @@ static int axnet_probe(struct pcmcia_device *link)
166 info = PRIV(dev); 165 info = PRIV(dev);
167 info->p_dev = link; 166 info->p_dev = link;
168 link->priv = dev; 167 link->priv = dev;
169 link->conf.Attributes = CONF_ENABLE_IRQ; 168 link->config_flags |= CONF_ENABLE_IRQ;
170 169
171 dev->netdev_ops = &axnet_netdev_ops; 170 dev->netdev_ops = &axnet_netdev_ops;
172 171
@@ -332,11 +331,12 @@ static int axnet_config(struct pcmcia_device *link)
332 331
333 if (!link->irq) 332 if (!link->irq)
334 goto failed; 333 goto failed;
335 334
335 link->config_flags |= CONF_ENABLE_IRQ;
336 if (resource_size(link->resource[1]) == 8) 336 if (resource_size(link->resource[1]) == 8)
337 link->conf.Attributes |= CONF_ENABLE_SPKR; 337 link->config_flags |= CONF_ENABLE_SPKR;
338 338
339 ret = pcmcia_request_configuration(link, &link->conf); 339 ret = pcmcia_enable_device(link);
340 if (ret) 340 if (ret)
341 goto failed; 341 goto failed;
342 342
diff --git a/drivers/net/pcmcia/com20020_cs.c b/drivers/net/pcmcia/com20020_cs.c
index a58eafed42a5..039731bddc27 100644
--- a/drivers/net/pcmcia/com20020_cs.c
+++ b/drivers/net/pcmcia/com20020_cs.c
@@ -43,7 +43,6 @@
43#include <linux/arcdevice.h> 43#include <linux/arcdevice.h>
44#include <linux/com20020.h> 44#include <linux/com20020.h>
45 45
46#include <pcmcia/cs.h>
47#include <pcmcia/cistpl.h> 46#include <pcmcia/cistpl.h>
48#include <pcmcia/ds.h> 47#include <pcmcia/ds.h>
49 48
@@ -160,7 +159,7 @@ static int com20020_probe(struct pcmcia_device *p_dev)
160 159
161 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 160 p_dev->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
162 p_dev->resource[0]->end = 16; 161 p_dev->resource[0]->end = 16;
163 p_dev->conf.Attributes = CONF_ENABLE_IRQ; 162 p_dev->config_flags |= CONF_ENABLE_IRQ;
164 163
165 info->dev = dev; 164 info->dev = dev;
166 p_dev->priv = info; 165 p_dev->priv = info;
@@ -281,7 +280,7 @@ static int com20020_config(struct pcmcia_device *link)
281 280
282 dev->irq = link->irq; 281 dev->irq = link->irq;
283 282
284 ret = pcmcia_request_configuration(link, &link->conf); 283 ret = pcmcia_enable_device(link);
285 if (ret) 284 if (ret)
286 goto failed; 285 goto failed;
287 286
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c
index 23f5333d8029..f6865adb126d 100644
--- a/drivers/net/pcmcia/fmvj18x_cs.c
+++ b/drivers/net/pcmcia/fmvj18x_cs.c
@@ -49,7 +49,6 @@
49#include <linux/ioport.h> 49#include <linux/ioport.h>
50#include <linux/crc32.h> 50#include <linux/crc32.h>
51 51
52#include <pcmcia/cs.h>
53#include <pcmcia/cistpl.h> 52#include <pcmcia/cistpl.h>
54#include <pcmcia/ciscode.h> 53#include <pcmcia/ciscode.h>
55#include <pcmcia/ds.h> 54#include <pcmcia/ds.h>
@@ -252,7 +251,7 @@ static int fmvj18x_probe(struct pcmcia_device *link)
252 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 251 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
253 252
254 /* General socket configuration */ 253 /* General socket configuration */
255 link->conf.Attributes = CONF_ENABLE_IRQ; 254 link->config_flags |= CONF_ENABLE_IRQ;
256 255
257 dev->netdev_ops = &fjn_netdev_ops; 256 dev->netdev_ops = &fjn_netdev_ops;
258 dev->watchdog_timeo = TX_TIMEOUT; 257 dev->watchdog_timeo = TX_TIMEOUT;
@@ -431,7 +430,7 @@ static int fmvj18x_config(struct pcmcia_device *link)
431 ret = pcmcia_request_irq(link, fjn_interrupt); 430 ret = pcmcia_request_irq(link, fjn_interrupt);
432 if (ret) 431 if (ret)
433 goto failed; 432 goto failed;
434 ret = pcmcia_request_configuration(link, &link->conf); 433 ret = pcmcia_enable_device(link);
435 if (ret) 434 if (ret)
436 goto failed; 435 goto failed;
437 436
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c
index feedeeb17a52..b298a3d98dc8 100644
--- a/drivers/net/pcmcia/ibmtr_cs.c
+++ b/drivers/net/pcmcia/ibmtr_cs.c
@@ -57,7 +57,6 @@
57#include <linux/trdevice.h> 57#include <linux/trdevice.h>
58#include <linux/ibmtr.h> 58#include <linux/ibmtr.h>
59 59
60#include <pcmcia/cs.h>
61#include <pcmcia/cistpl.h> 60#include <pcmcia/cistpl.h>
62#include <pcmcia/ds.h> 61#include <pcmcia/ds.h>
63 62
@@ -152,7 +151,7 @@ static int __devinit ibmtr_attach(struct pcmcia_device *link)
152 151
153 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8; 152 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_8;
154 link->resource[0]->end = 4; 153 link->resource[0]->end = 4;
155 link->conf.Attributes = CONF_ENABLE_IRQ; 154 link->config_flags |= CONF_ENABLE_IRQ;
156 link->config_regs = PRESENT_OPTION; 155 link->config_regs = PRESENT_OPTION;
157 156
158 info->dev = dev; 157 info->dev = dev;
@@ -269,7 +268,7 @@ static int __devinit ibmtr_config(struct pcmcia_device *link)
269 resource_size(link->resource[3])); 268 resource_size(link->resource[3]));
270 ti->sram_phys = link->resource[3]->start; 269 ti->sram_phys = link->resource[3]->start;
271 270
272 ret = pcmcia_request_configuration(link, &link->conf); 271 ret = pcmcia_enable_device(link);
273 if (ret) 272 if (ret)
274 goto failed; 273 goto failed;
275 274
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c
index 98c4a6976045..51bf76de6499 100644
--- a/drivers/net/pcmcia/nmclan_cs.c
+++ b/drivers/net/pcmcia/nmclan_cs.c
@@ -146,7 +146,6 @@ Include Files
146#include <linux/ioport.h> 146#include <linux/ioport.h>
147#include <linux/bitops.h> 147#include <linux/bitops.h>
148 148
149#include <pcmcia/cs.h>
150#include <pcmcia/cisreg.h> 149#include <pcmcia/cisreg.h>
151#include <pcmcia/cistpl.h> 150#include <pcmcia/cistpl.h>
152#include <pcmcia/ds.h> 151#include <pcmcia/ds.h>
@@ -460,7 +459,7 @@ static int nmclan_probe(struct pcmcia_device *link)
460 spin_lock_init(&lp->bank_lock); 459 spin_lock_init(&lp->bank_lock);
461 link->resource[0]->end = 32; 460 link->resource[0]->end = 32;
462 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 461 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
463 link->conf.Attributes = CONF_ENABLE_IRQ; 462 link->config_flags |= CONF_ENABLE_IRQ;
464 link->config_index = 1; 463 link->config_index = 1;
465 link->config_regs = PRESENT_OPTION; 464 link->config_regs = PRESENT_OPTION;
466 465
@@ -649,7 +648,7 @@ static int nmclan_config(struct pcmcia_device *link)
649 ret = pcmcia_request_exclusive_irq(link, mace_interrupt); 648 ret = pcmcia_request_exclusive_irq(link, mace_interrupt);
650 if (ret) 649 if (ret)
651 goto failed; 650 goto failed;
652 ret = pcmcia_request_configuration(link, &link->conf); 651 ret = pcmcia_enable_device(link);
653 if (ret) 652 if (ret)
654 goto failed; 653 goto failed;
655 654
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c
index 68c46751f84f..4a3b6a43550f 100644
--- a/drivers/net/pcmcia/pcnet_cs.c
+++ b/drivers/net/pcmcia/pcnet_cs.c
@@ -42,7 +42,6 @@
42#include <linux/mii.h> 42#include <linux/mii.h>
43#include "../8390.h" 43#include "../8390.h"
44 44
45#include <pcmcia/cs.h>
46#include <pcmcia/cistpl.h> 45#include <pcmcia/cistpl.h>
47#include <pcmcia/ciscode.h> 46#include <pcmcia/ciscode.h>
48#include <pcmcia/ds.h> 47#include <pcmcia/ds.h>
@@ -260,7 +259,7 @@ static int pcnet_probe(struct pcmcia_device *link)
260 info->p_dev = link; 259 info->p_dev = link;
261 link->priv = dev; 260 link->priv = dev;
262 261
263 link->conf.Attributes = CONF_ENABLE_IRQ; 262 link->config_flags |= CONF_ENABLE_IRQ;
264 263
265 dev->netdev_ops = &pcnet_netdev_ops; 264 dev->netdev_ops = &pcnet_netdev_ops;
266 265
@@ -560,13 +559,13 @@ static hw_info_t *pcnet_try_config(struct pcmcia_device *link,
560 return NULL; 559 return NULL;
561 560
562 if (resource_size(link->resource[1]) == 8) 561 if (resource_size(link->resource[1]) == 8)
563 link->conf.Attributes |= CONF_ENABLE_SPKR; 562 link->config_flags |= CONF_ENABLE_SPKR;
564 563
565 if ((link->manf_id == MANFID_IBM) && 564 if ((link->manf_id == MANFID_IBM) &&
566 (link->card_id == PRODID_IBM_HOME_AND_AWAY)) 565 (link->card_id == PRODID_IBM_HOME_AND_AWAY))
567 link->config_index |= 0x10; 566 link->config_index |= 0x10;
568 567
569 ret = pcmcia_request_configuration(link, &link->conf); 568 ret = pcmcia_enable_device(link);
570 if (ret) 569 if (ret)
571 return NULL; 570 return NULL;
572 571
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 59f5034e8d93..8c16ba672012 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -44,7 +44,6 @@
44#include <linux/jiffies.h> 44#include <linux/jiffies.h>
45#include <linux/firmware.h> 45#include <linux/firmware.h>
46 46
47#include <pcmcia/cs.h>
48#include <pcmcia/cistpl.h> 47#include <pcmcia/cistpl.h>
49#include <pcmcia/cisreg.h> 48#include <pcmcia/cisreg.h>
50#include <pcmcia/ciscode.h> 49#include <pcmcia/ciscode.h>
@@ -326,7 +325,7 @@ static int smc91c92_probe(struct pcmcia_device *link)
326 spin_lock_init(&smc->lock); 325 spin_lock_init(&smc->lock);
327 link->resource[0]->end = 16; 326 link->resource[0]->end = 16;
328 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 327 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
329 link->conf.Attributes = CONF_ENABLE_IRQ; 328 link->config_flags |= CONF_ENABLE_IRQ;
330 329
331 /* The SMC91c92-specific entries in the device structure. */ 330 /* The SMC91c92-specific entries in the device structure. */
332 dev->netdev_ops = &smc_netdev_ops; 331 dev->netdev_ops = &smc_netdev_ops;
@@ -444,7 +443,7 @@ static int mhz_mfc_config(struct pcmcia_device *link)
444 unsigned int offset; 443 unsigned int offset;
445 int i; 444 int i;
446 445
447 link->conf.Attributes |= CONF_ENABLE_SPKR; 446 link->config_flags |= CONF_ENABLE_SPKR;
448 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 447 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
449 link->resource[1]->end = 8; 448 link->resource[1]->end = 8;
450 449
@@ -637,7 +636,7 @@ static int osi_config(struct pcmcia_device *link)
637 static const unsigned int com[4] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 }; 636 static const unsigned int com[4] = { 0x3f8, 0x2f8, 0x3e8, 0x2e8 };
638 int i, j; 637 int i, j;
639 638
640 link->conf.Attributes |= CONF_ENABLE_SPKR; 639 link->config_flags |= CONF_ENABLE_SPKR;
641 link->resource[0]->end = 64; 640 link->resource[0]->end = 64;
642 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 641 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
643 link->resource[1]->end = 8; 642 link->resource[1]->end = 8;
@@ -862,7 +861,7 @@ static int smc91c92_config(struct pcmcia_device *link)
862 i = pcmcia_request_irq(link, smc_interrupt); 861 i = pcmcia_request_irq(link, smc_interrupt);
863 if (i) 862 if (i)
864 goto config_failed; 863 goto config_failed;
865 i = pcmcia_request_configuration(link, &link->conf); 864 i = pcmcia_enable_device(link);
866 if (i) 865 if (i)
867 goto config_failed; 866 goto config_failed;
868 867
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index 1c8ebf2df0c0..7a4a99b73d17 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -82,7 +82,6 @@
82#include <linux/bitops.h> 82#include <linux/bitops.h>
83#include <linux/mii.h> 83#include <linux/mii.h>
84 84
85#include <pcmcia/cs.h>
86#include <pcmcia/cistpl.h> 85#include <pcmcia/cistpl.h>
87#include <pcmcia/cisreg.h> 86#include <pcmcia/cisreg.h>
88#include <pcmcia/ciscode.h> 87#include <pcmcia/ciscode.h>
@@ -529,7 +528,7 @@ xirc2ps_probe(struct pcmcia_device *link)
529 link->priv = dev; 528 link->priv = dev;
530 529
531 /* General socket configuration */ 530 /* General socket configuration */
532 link->conf.Attributes = CONF_ENABLE_IRQ; 531 link->config_flags |= CONF_ENABLE_IRQ;
533 link->config_index = 1; 532 link->config_index = 1;
534 533
535 /* Fill in card specific entries */ 534 /* Fill in card specific entries */
@@ -811,9 +810,6 @@ xirc2ps_config(struct pcmcia_device * link)
811 if (local->modem) { 810 if (local->modem) {
812 int pass; 811 int pass;
813 812
814 if (do_sound)
815 link->conf.Attributes |= CONF_ENABLE_SPKR;
816
817 link->resource[1]->end = 8; 813 link->resource[1]->end = 8;
818 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8; 814 link->resource[1]->flags |= IO_DATA_PATH_WIDTH_8;
819 if (local->dingo) { 815 if (local->dingo) {
@@ -863,7 +859,11 @@ xirc2ps_config(struct pcmcia_device * link)
863 * This actually configures the PCMCIA socket -- setting up 859 * This actually configures the PCMCIA socket -- setting up
864 * the I/O windows and the interrupt mapping. 860 * the I/O windows and the interrupt mapping.
865 */ 861 */
866 if ((err=pcmcia_request_configuration(link, &link->conf))) 862 link->config_flags |= CONF_ENABLE_IRQ;
863 if (do_sound)
864 link->config_flags |= CONF_ENABLE_SPKR;
865
866 if ((err = pcmcia_enable_device(link)))
867 goto config_error; 867 goto config_error;
868 868
869 if (local->dingo) { 869 if (local->dingo) {