aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/manager.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2007-07-26 13:41:20 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-26 14:35:20 -0400
commit9dd78466c956ac4b4f38e12032dc4249ccf57ad1 (patch)
tree57ee3822b79049d38c1df952fe77e72a97c718f3 /drivers/pnp/manager.c
parent8ec3cf7d29aef773eee5bc6cd9b0fa4d3fb42480 (diff)
PNP: Lindent all source files
Run Lindent on all PNP source files. Produced by: $ quilt new pnp-lindent $ find drivers/pnp -name \*.[ch] | xargs quilt add $ quilt add include/linux/{pnp.h,pnpbios.h} $ scripts/Lindent drivers/pnp/*.c drivers/pnp/*/*.c include/linux/pnp*.h $ quilt refresh --sort Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Len Brown <lenb@kernel.org> Cc: Adam Belay <ambx1@neo.rr.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/manager.c')
-rw-r--r--drivers/pnp/manager.c120
1 files changed, 68 insertions, 52 deletions
diff --git a/drivers/pnp/manager.c b/drivers/pnp/manager.c
index 57e6ab1004d0..17c95188bd11 100644
--- a/drivers/pnp/manager.c
+++ b/drivers/pnp/manager.c
@@ -26,7 +26,8 @@ static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx)
26 return -EINVAL; 26 return -EINVAL;
27 27
28 if (idx >= PNP_MAX_PORT) { 28 if (idx >= PNP_MAX_PORT) {
29 pnp_err("More than 4 ports is incompatible with pnp specifications."); 29 pnp_err
30 ("More than 4 ports is incompatible with pnp specifications.");
30 /* pretend we were successful so at least the manager won't try again */ 31 /* pretend we were successful so at least the manager won't try again */
31 return 1; 32 return 1;
32 } 33 }
@@ -41,11 +42,11 @@ static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx)
41 42
42 /* set the initial values */ 43 /* set the initial values */
43 *flags |= rule->flags | IORESOURCE_IO; 44 *flags |= rule->flags | IORESOURCE_IO;
44 *flags &= ~IORESOURCE_UNSET; 45 *flags &= ~IORESOURCE_UNSET;
45 46
46 if (!rule->size) { 47 if (!rule->size) {
47 *flags |= IORESOURCE_DISABLED; 48 *flags |= IORESOURCE_DISABLED;
48 return 1; /* skip disabled resource requests */ 49 return 1; /* skip disabled resource requests */
49 } 50 }
50 51
51 *start = rule->min; 52 *start = rule->min;
@@ -70,7 +71,8 @@ static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
70 return -EINVAL; 71 return -EINVAL;
71 72
72 if (idx >= PNP_MAX_MEM) { 73 if (idx >= PNP_MAX_MEM) {
73 pnp_err("More than 8 mems is incompatible with pnp specifications."); 74 pnp_err
75 ("More than 8 mems is incompatible with pnp specifications.");
74 /* pretend we were successful so at least the manager won't try again */ 76 /* pretend we were successful so at least the manager won't try again */
75 return 1; 77 return 1;
76 } 78 }
@@ -85,7 +87,7 @@ static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
85 87
86 /* set the initial values */ 88 /* set the initial values */
87 *flags |= rule->flags | IORESOURCE_MEM; 89 *flags |= rule->flags | IORESOURCE_MEM;
88 *flags &= ~IORESOURCE_UNSET; 90 *flags &= ~IORESOURCE_UNSET;
89 91
90 /* convert pnp flags to standard Linux flags */ 92 /* convert pnp flags to standard Linux flags */
91 if (!(rule->flags & IORESOURCE_MEM_WRITEABLE)) 93 if (!(rule->flags & IORESOURCE_MEM_WRITEABLE))
@@ -99,11 +101,11 @@ static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
99 101
100 if (!rule->size) { 102 if (!rule->size) {
101 *flags |= IORESOURCE_DISABLED; 103 *flags |= IORESOURCE_DISABLED;
102 return 1; /* skip disabled resource requests */ 104 return 1; /* skip disabled resource requests */
103 } 105 }
104 106
105 *start = rule->min; 107 *start = rule->min;
106 *end = *start + rule->size -1; 108 *end = *start + rule->size - 1;
107 109
108 /* run through until pnp_check_mem is happy */ 110 /* run through until pnp_check_mem is happy */
109 while (!pnp_check_mem(dev, idx)) { 111 while (!pnp_check_mem(dev, idx)) {
@@ -115,7 +117,7 @@ static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx)
115 return 1; 117 return 1;
116} 118}
117 119
118static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx) 120static int pnp_assign_irq(struct pnp_dev *dev, struct pnp_irq *rule, int idx)
119{ 121{
120 resource_size_t *start, *end; 122 resource_size_t *start, *end;
121 unsigned long *flags; 123 unsigned long *flags;
@@ -130,7 +132,8 @@ static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
130 return -EINVAL; 132 return -EINVAL;
131 133
132 if (idx >= PNP_MAX_IRQ) { 134 if (idx >= PNP_MAX_IRQ) {
133 pnp_err("More than 2 irqs is incompatible with pnp specifications."); 135 pnp_err
136 ("More than 2 irqs is incompatible with pnp specifications.");
134 /* pretend we were successful so at least the manager won't try again */ 137 /* pretend we were successful so at least the manager won't try again */
135 return 1; 138 return 1;
136 } 139 }
@@ -145,11 +148,11 @@ static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
145 148
146 /* set the initial values */ 149 /* set the initial values */
147 *flags |= rule->flags | IORESOURCE_IRQ; 150 *flags |= rule->flags | IORESOURCE_IRQ;
148 *flags &= ~IORESOURCE_UNSET; 151 *flags &= ~IORESOURCE_UNSET;
149 152
150 if (bitmap_empty(rule->map, PNP_IRQ_NR)) { 153 if (bitmap_empty(rule->map, PNP_IRQ_NR)) {
151 *flags |= IORESOURCE_DISABLED; 154 *flags |= IORESOURCE_DISABLED;
152 return 1; /* skip disabled resource requests */ 155 return 1; /* skip disabled resource requests */
153 } 156 }
154 157
155 /* TBD: need check for >16 IRQ */ 158 /* TBD: need check for >16 IRQ */
@@ -159,9 +162,9 @@ static int pnp_assign_irq(struct pnp_dev * dev, struct pnp_irq *rule, int idx)
159 return 1; 162 return 1;
160 } 163 }
161 for (i = 0; i < 16; i++) { 164 for (i = 0; i < 16; i++) {
162 if(test_bit(xtab[i], rule->map)) { 165 if (test_bit(xtab[i], rule->map)) {
163 *start = *end = xtab[i]; 166 *start = *end = xtab[i];
164 if(pnp_check_irq(dev, idx)) 167 if (pnp_check_irq(dev, idx))
165 return 1; 168 return 1;
166 } 169 }
167 } 170 }
@@ -183,7 +186,8 @@ static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx)
183 return -EINVAL; 186 return -EINVAL;
184 187
185 if (idx >= PNP_MAX_DMA) { 188 if (idx >= PNP_MAX_DMA) {
186 pnp_err("More than 2 dmas is incompatible with pnp specifications."); 189 pnp_err
190 ("More than 2 dmas is incompatible with pnp specifications.");
187 /* pretend we were successful so at least the manager won't try again */ 191 /* pretend we were successful so at least the manager won't try again */
188 return 1; 192 return 1;
189 } 193 }
@@ -198,17 +202,17 @@ static int pnp_assign_dma(struct pnp_dev *dev, struct pnp_dma *rule, int idx)
198 202
199 /* set the initial values */ 203 /* set the initial values */
200 *flags |= rule->flags | IORESOURCE_DMA; 204 *flags |= rule->flags | IORESOURCE_DMA;
201 *flags &= ~IORESOURCE_UNSET; 205 *flags &= ~IORESOURCE_UNSET;
202 206
203 if (!rule->map) { 207 if (!rule->map) {
204 *flags |= IORESOURCE_DISABLED; 208 *flags |= IORESOURCE_DISABLED;
205 return 1; /* skip disabled resource requests */ 209 return 1; /* skip disabled resource requests */
206 } 210 }
207 211
208 for (i = 0; i < 8; i++) { 212 for (i = 0; i < 8; i++) {
209 if(rule->map & (1<<xtab[i])) { 213 if (rule->map & (1 << xtab[i])) {
210 *start = *end = xtab[i]; 214 *start = *end = xtab[i];
211 if(pnp_check_dma(dev, idx)) 215 if (pnp_check_dma(dev, idx))
212 return 1; 216 return 1;
213 } 217 }
214 } 218 }
@@ -227,25 +231,29 @@ void pnp_init_resource_table(struct pnp_resource_table *table)
227 table->irq_resource[idx].name = NULL; 231 table->irq_resource[idx].name = NULL;
228 table->irq_resource[idx].start = -1; 232 table->irq_resource[idx].start = -1;
229 table->irq_resource[idx].end = -1; 233 table->irq_resource[idx].end = -1;
230 table->irq_resource[idx].flags = IORESOURCE_IRQ | IORESOURCE_AUTO | IORESOURCE_UNSET; 234 table->irq_resource[idx].flags =
235 IORESOURCE_IRQ | IORESOURCE_AUTO | IORESOURCE_UNSET;
231 } 236 }
232 for (idx = 0; idx < PNP_MAX_DMA; idx++) { 237 for (idx = 0; idx < PNP_MAX_DMA; idx++) {
233 table->dma_resource[idx].name = NULL; 238 table->dma_resource[idx].name = NULL;
234 table->dma_resource[idx].start = -1; 239 table->dma_resource[idx].start = -1;
235 table->dma_resource[idx].end = -1; 240 table->dma_resource[idx].end = -1;
236 table->dma_resource[idx].flags = IORESOURCE_DMA | IORESOURCE_AUTO | IORESOURCE_UNSET; 241 table->dma_resource[idx].flags =
242 IORESOURCE_DMA | IORESOURCE_AUTO | IORESOURCE_UNSET;
237 } 243 }
238 for (idx = 0; idx < PNP_MAX_PORT; idx++) { 244 for (idx = 0; idx < PNP_MAX_PORT; idx++) {
239 table->port_resource[idx].name = NULL; 245 table->port_resource[idx].name = NULL;
240 table->port_resource[idx].start = 0; 246 table->port_resource[idx].start = 0;
241 table->port_resource[idx].end = 0; 247 table->port_resource[idx].end = 0;
242 table->port_resource[idx].flags = IORESOURCE_IO | IORESOURCE_AUTO | IORESOURCE_UNSET; 248 table->port_resource[idx].flags =
249 IORESOURCE_IO | IORESOURCE_AUTO | IORESOURCE_UNSET;
243 } 250 }
244 for (idx = 0; idx < PNP_MAX_MEM; idx++) { 251 for (idx = 0; idx < PNP_MAX_MEM; idx++) {
245 table->mem_resource[idx].name = NULL; 252 table->mem_resource[idx].name = NULL;
246 table->mem_resource[idx].start = 0; 253 table->mem_resource[idx].start = 0;
247 table->mem_resource[idx].end = 0; 254 table->mem_resource[idx].end = 0;
248 table->mem_resource[idx].flags = IORESOURCE_MEM | IORESOURCE_AUTO | IORESOURCE_UNSET; 255 table->mem_resource[idx].flags =
256 IORESOURCE_MEM | IORESOURCE_AUTO | IORESOURCE_UNSET;
249 } 257 }
250} 258}
251 259
@@ -254,7 +262,7 @@ void pnp_init_resource_table(struct pnp_resource_table *table)
254 * @res: the resources to clean 262 * @res: the resources to clean
255 * 263 *
256 */ 264 */
257static void pnp_clean_resource_table(struct pnp_resource_table * res) 265static void pnp_clean_resource_table(struct pnp_resource_table *res)
258{ 266{
259 int idx; 267 int idx;
260 for (idx = 0; idx < PNP_MAX_IRQ; idx++) { 268 for (idx = 0; idx < PNP_MAX_IRQ; idx++) {
@@ -262,28 +270,32 @@ static void pnp_clean_resource_table(struct pnp_resource_table * res)
262 continue; 270 continue;
263 res->irq_resource[idx].start = -1; 271 res->irq_resource[idx].start = -1;
264 res->irq_resource[idx].end = -1; 272 res->irq_resource[idx].end = -1;
265 res->irq_resource[idx].flags = IORESOURCE_IRQ | IORESOURCE_AUTO | IORESOURCE_UNSET; 273 res->irq_resource[idx].flags =
274 IORESOURCE_IRQ | IORESOURCE_AUTO | IORESOURCE_UNSET;
266 } 275 }
267 for (idx = 0; idx < PNP_MAX_DMA; idx++) { 276 for (idx = 0; idx < PNP_MAX_DMA; idx++) {
268 if (!(res->dma_resource[idx].flags & IORESOURCE_AUTO)) 277 if (!(res->dma_resource[idx].flags & IORESOURCE_AUTO))
269 continue; 278 continue;
270 res->dma_resource[idx].start = -1; 279 res->dma_resource[idx].start = -1;
271 res->dma_resource[idx].end = -1; 280 res->dma_resource[idx].end = -1;
272 res->dma_resource[idx].flags = IORESOURCE_DMA | IORESOURCE_AUTO | IORESOURCE_UNSET; 281 res->dma_resource[idx].flags =
282 IORESOURCE_DMA | IORESOURCE_AUTO | IORESOURCE_UNSET;
273 } 283 }
274 for (idx = 0; idx < PNP_MAX_PORT; idx++) { 284 for (idx = 0; idx < PNP_MAX_PORT; idx++) {
275 if (!(res->port_resource[idx].flags & IORESOURCE_AUTO)) 285 if (!(res->port_resource[idx].flags & IORESOURCE_AUTO))
276 continue; 286 continue;
277 res->port_resource[idx].start = 0; 287 res->port_resource[idx].start = 0;
278 res->port_resource[idx].end = 0; 288 res->port_resource[idx].end = 0;
279 res->port_resource[idx].flags = IORESOURCE_IO | IORESOURCE_AUTO | IORESOURCE_UNSET; 289 res->port_resource[idx].flags =
290 IORESOURCE_IO | IORESOURCE_AUTO | IORESOURCE_UNSET;
280 } 291 }
281 for (idx = 0; idx < PNP_MAX_MEM; idx++) { 292 for (idx = 0; idx < PNP_MAX_MEM; idx++) {
282 if (!(res->mem_resource[idx].flags & IORESOURCE_AUTO)) 293 if (!(res->mem_resource[idx].flags & IORESOURCE_AUTO))
283 continue; 294 continue;
284 res->mem_resource[idx].start = 0; 295 res->mem_resource[idx].start = 0;
285 res->mem_resource[idx].end = 0; 296 res->mem_resource[idx].end = 0;
286 res->mem_resource[idx].flags = IORESOURCE_MEM | IORESOURCE_AUTO | IORESOURCE_UNSET; 297 res->mem_resource[idx].flags =
298 IORESOURCE_MEM | IORESOURCE_AUTO | IORESOURCE_UNSET;
287 } 299 }
288} 300}
289 301
@@ -306,7 +318,7 @@ static int pnp_assign_resources(struct pnp_dev *dev, int depnum)
306 return -ENODEV; 318 return -ENODEV;
307 319
308 down(&pnp_res_mutex); 320 down(&pnp_res_mutex);
309 pnp_clean_resource_table(&dev->res); /* start with a fresh slate */ 321 pnp_clean_resource_table(&dev->res); /* start with a fresh slate */
310 if (dev->independent) { 322 if (dev->independent) {
311 port = dev->independent->port; 323 port = dev->independent->port;
312 mem = dev->independent->mem; 324 mem = dev->independent->mem;
@@ -341,10 +353,11 @@ static int pnp_assign_resources(struct pnp_dev *dev, int depnum)
341 if (depnum) { 353 if (depnum) {
342 struct pnp_option *dep; 354 struct pnp_option *dep;
343 int i; 355 int i;
344 for (i=1,dep=dev->dependent; i<depnum; i++, dep=dep->next) 356 for (i = 1, dep = dev->dependent; i < depnum;
345 if(!dep) 357 i++, dep = dep->next)
358 if (!dep)
346 goto fail; 359 goto fail;
347 port =dep->port; 360 port = dep->port;
348 mem = dep->mem; 361 mem = dep->mem;
349 irq = dep->irq; 362 irq = dep->irq;
350 dma = dep->dma; 363 dma = dep->dma;
@@ -378,7 +391,7 @@ static int pnp_assign_resources(struct pnp_dev *dev, int depnum)
378 up(&pnp_res_mutex); 391 up(&pnp_res_mutex);
379 return 1; 392 return 1;
380 393
381fail: 394 fail:
382 pnp_clean_resource_table(&dev->res); 395 pnp_clean_resource_table(&dev->res);
383 up(&pnp_res_mutex); 396 up(&pnp_res_mutex);
384 return 0; 397 return 0;
@@ -392,10 +405,11 @@ fail:
392 * 405 *
393 * This function can be used by drivers that want to manually set thier resources. 406 * This function can be used by drivers that want to manually set thier resources.
394 */ 407 */
395int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table * res, int mode) 408int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res,
409 int mode)
396{ 410{
397 int i; 411 int i;
398 struct pnp_resource_table * bak; 412 struct pnp_resource_table *bak;
399 if (!dev || !res) 413 if (!dev || !res)
400 return -EINVAL; 414 return -EINVAL;
401 if (!pnp_can_configure(dev)) 415 if (!pnp_can_configure(dev))
@@ -409,19 +423,19 @@ int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table * res,
409 dev->res = *res; 423 dev->res = *res;
410 if (!(mode & PNP_CONFIG_FORCE)) { 424 if (!(mode & PNP_CONFIG_FORCE)) {
411 for (i = 0; i < PNP_MAX_PORT; i++) { 425 for (i = 0; i < PNP_MAX_PORT; i++) {
412 if(!pnp_check_port(dev,i)) 426 if (!pnp_check_port(dev, i))
413 goto fail; 427 goto fail;
414 } 428 }
415 for (i = 0; i < PNP_MAX_MEM; i++) { 429 for (i = 0; i < PNP_MAX_MEM; i++) {
416 if(!pnp_check_mem(dev,i)) 430 if (!pnp_check_mem(dev, i))
417 goto fail; 431 goto fail;
418 } 432 }
419 for (i = 0; i < PNP_MAX_IRQ; i++) { 433 for (i = 0; i < PNP_MAX_IRQ; i++) {
420 if(!pnp_check_irq(dev,i)) 434 if (!pnp_check_irq(dev, i))
421 goto fail; 435 goto fail;
422 } 436 }
423 for (i = 0; i < PNP_MAX_DMA; i++) { 437 for (i = 0; i < PNP_MAX_DMA; i++) {
424 if(!pnp_check_dma(dev,i)) 438 if (!pnp_check_dma(dev, i))
425 goto fail; 439 goto fail;
426 } 440 }
427 } 441 }
@@ -430,7 +444,7 @@ int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table * res,
430 kfree(bak); 444 kfree(bak);
431 return 0; 445 return 0;
432 446
433fail: 447 fail:
434 dev->res = *bak; 448 dev->res = *bak;
435 up(&pnp_res_mutex); 449 up(&pnp_res_mutex);
436 kfree(bak); 450 kfree(bak);
@@ -447,11 +461,12 @@ int pnp_auto_config_dev(struct pnp_dev *dev)
447 struct pnp_option *dep; 461 struct pnp_option *dep;
448 int i = 1; 462 int i = 1;
449 463
450 if(!dev) 464 if (!dev)
451 return -EINVAL; 465 return -EINVAL;
452 466
453 if(!pnp_can_configure(dev)) { 467 if (!pnp_can_configure(dev)) {
454 pnp_dbg("Device %s does not support resource configuration.", dev->dev.bus_id); 468 pnp_dbg("Device %s does not support resource configuration.",
469 dev->dev.bus_id);
455 return -ENODEV; 470 return -ENODEV;
456 } 471 }
457 472
@@ -482,11 +497,12 @@ int pnp_auto_config_dev(struct pnp_dev *dev)
482int pnp_start_dev(struct pnp_dev *dev) 497int pnp_start_dev(struct pnp_dev *dev)
483{ 498{
484 if (!pnp_can_write(dev)) { 499 if (!pnp_can_write(dev)) {
485 pnp_dbg("Device %s does not support activation.", dev->dev.bus_id); 500 pnp_dbg("Device %s does not support activation.",
501 dev->dev.bus_id);
486 return -EINVAL; 502 return -EINVAL;
487 } 503 }
488 504
489 if (dev->protocol->set(dev, &dev->res)<0) { 505 if (dev->protocol->set(dev, &dev->res) < 0) {
490 pnp_err("Failed to activate device %s.", dev->dev.bus_id); 506 pnp_err("Failed to activate device %s.", dev->dev.bus_id);
491 return -EIO; 507 return -EIO;
492 } 508 }
@@ -506,10 +522,11 @@ int pnp_start_dev(struct pnp_dev *dev)
506int pnp_stop_dev(struct pnp_dev *dev) 522int pnp_stop_dev(struct pnp_dev *dev)
507{ 523{
508 if (!pnp_can_disable(dev)) { 524 if (!pnp_can_disable(dev)) {
509 pnp_dbg("Device %s does not support disabling.", dev->dev.bus_id); 525 pnp_dbg("Device %s does not support disabling.",
526 dev->dev.bus_id);
510 return -EINVAL; 527 return -EINVAL;
511 } 528 }
512 if (dev->protocol->disable(dev)<0) { 529 if (dev->protocol->disable(dev) < 0) {
513 pnp_err("Failed to disable device %s.", dev->dev.bus_id); 530 pnp_err("Failed to disable device %s.", dev->dev.bus_id);
514 return -EIO; 531 return -EIO;
515 } 532 }
@@ -532,7 +549,7 @@ int pnp_activate_dev(struct pnp_dev *dev)
532 if (!dev) 549 if (!dev)
533 return -EINVAL; 550 return -EINVAL;
534 if (dev->active) { 551 if (dev->active) {
535 return 0; /* the device is already active */ 552 return 0; /* the device is already active */
536 } 553 }
537 554
538 /* ensure resources are allocated */ 555 /* ensure resources are allocated */
@@ -558,10 +575,10 @@ int pnp_disable_dev(struct pnp_dev *dev)
558{ 575{
559 int error; 576 int error;
560 577
561 if (!dev) 578 if (!dev)
562 return -EINVAL; 579 return -EINVAL;
563 if (!dev->active) { 580 if (!dev->active) {
564 return 0; /* the device is already disabled */ 581 return 0; /* the device is already disabled */
565 } 582 }
566 583
567 error = pnp_stop_dev(dev); 584 error = pnp_stop_dev(dev);
@@ -586,7 +603,7 @@ int pnp_disable_dev(struct pnp_dev *dev)
586 * 603 *
587 */ 604 */
588void pnp_resource_change(struct resource *resource, resource_size_t start, 605void pnp_resource_change(struct resource *resource, resource_size_t start,
589 resource_size_t size) 606 resource_size_t size)
590{ 607{
591 if (resource == NULL) 608 if (resource == NULL)
592 return; 609 return;
@@ -595,7 +612,6 @@ void pnp_resource_change(struct resource *resource, resource_size_t start,
595 resource->end = start + size - 1; 612 resource->end = start + size - 1;
596} 613}
597 614
598
599EXPORT_SYMBOL(pnp_manual_config_dev); 615EXPORT_SYMBOL(pnp_manual_config_dev);
600#if 0 616#if 0
601EXPORT_SYMBOL(pnp_auto_config_dev); 617EXPORT_SYMBOL(pnp_auto_config_dev);