|
Lines 39-45
Link Here
|
| 39 |
* |
39 |
* |
| 40 |
* $Id: i4b_avm_fritz_pci.c,v 1.3 1999/12/13 21:25:26 hm Exp $ |
40 |
* $Id: i4b_avm_fritz_pci.c,v 1.3 1999/12/13 21:25:26 hm Exp $ |
| 41 |
* |
41 |
* |
| 42 |
* $FreeBSD: src/sys/i4b/layer1/i4b_avm_fritz_pci.c,v 1.6.2.1 2000/08/02 23:52:55 peter Exp $ |
42 |
* $FreeBSD: src/sys/i4b/layer1/i4b_avm_fritz_pci.c,v 1.6 1999/12/14 20:48:18 hm Exp $ |
| 43 |
* |
43 |
* |
| 44 |
* last edit-date: [Mon Dec 13 21:59:04 1999] |
44 |
* last edit-date: [Mon Dec 13 21:59:04 1999] |
| 45 |
* |
45 |
* |
|
Lines 504-510
Link Here
|
| 504 |
|
504 |
|
| 505 |
asc->avma1pp_unit = unit; |
505 |
asc->avma1pp_unit = unit; |
| 506 |
|
506 |
|
| 507 |
rid = PCIR_MAPS+4; |
507 |
rid = PCI_MAP_REG_START+4; |
| 508 |
asc->avma1pp_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, |
508 |
asc->avma1pp_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, |
| 509 |
0, ~0, 1, RF_ACTIVE); |
509 |
0, ~0, 1, RF_ACTIVE); |
| 510 |
|
510 |
|
|
Lines 523-529
Link Here
|
| 523 |
RF_SHAREABLE | RF_ACTIVE); |
523 |
RF_SHAREABLE | RF_ACTIVE); |
| 524 |
|
524 |
|
| 525 |
if (asc->avma1pp_irq == NULL) { |
525 |
if (asc->avma1pp_irq == NULL) { |
| 526 |
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS+4, asc->avma1pp_res); |
526 |
bus_release_resource(dev, SYS_RES_IOPORT, PCI_MAP_REG_START+4, asc->avma1pp_res); |
| 527 |
printf("avma1pp%d: couldn't map interrupt\n", unit); |
527 |
printf("avma1pp%d: couldn't map interrupt\n", unit); |
| 528 |
error = ENXIO; |
528 |
error = ENXIO; |
| 529 |
goto fail; |
529 |
goto fail; |
|
Lines 533-539
Link Here
|
| 533 |
|
533 |
|
| 534 |
if (error) { |
534 |
if (error) { |
| 535 |
bus_release_resource(dev, SYS_RES_IRQ, 0, asc->avma1pp_res); |
535 |
bus_release_resource(dev, SYS_RES_IRQ, 0, asc->avma1pp_res); |
| 536 |
bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS+4, asc->avma1pp_res); |
536 |
bus_release_resource(dev, SYS_RES_IOPORT, PCI_MAP_REG_START+4, asc->avma1pp_res); |
| 537 |
printf("avma1pp%d: couldn't set up irq\n", unit); |
537 |
printf("avma1pp%d: couldn't set up irq\n", unit); |
| 538 |
goto fail; |
538 |
goto fail; |
| 539 |
} |
539 |
} |