summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-12 14:47:23 +0000
committerpeter <peter@FreeBSD.org>1999-12-12 14:47:23 +0000
commit79357d44387910c834360df52d02b06ba35c7665 (patch)
treed0c85cfcb30e0bffe88c9c426f9c5f45810e9291 /sys/pci
parentdbae8668bf0ed96a41200dec1509bc689f105abd (diff)
downloadFreeBSD-src-79357d44387910c834360df52d02b06ba35c7665.zip
FreeBSD-src-79357d44387910c834360df52d02b06ba35c7665.tar.gz
Remove some horrible #if 0'd code that has no hope of working now. It
used to edit the old-style isa_devtab config tables to insert a mapping for a pci device into the isa tables so that the wdc driver could probe it later. This has been #if 0'd since April.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ide_pci.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c
index 9870df2..bdd7580 100644
--- a/sys/pci/ide_pci.c
+++ b/sys/pci/ide_pci.c
@@ -1572,77 +1572,6 @@ ide_pci_attach(pcici_t tag, int unit)
wddma[unit].wdd_iobase = ide_pci_iobase;
wddma[unit].wdd_altiobase = ide_pci_altiobase;
-#if 0
- /*
- * This code below is mighty bogus. The config entries for the
- * isa_devtab_bio are plugged in before the standard ISA bios scan.
- * This is our "hack" way to simulate a dynamic assignment of I/O
- * addresses, from a PCI device to an ISA probe. Sorry :-).
- */
- if (iobase_wd_1 != IO_WD1) {
- struct isa_device *dvp, *dvp1, *dvup;
- for( dvp = isa_devtab_bio;
- dvp->id_id != 0;
- dvp++) {
- if ((dvp->id_driver == &wdcdriver) && (dvp->id_iobase == 0)) {
- int biotabunit;
- biotabunit = dvp->id_unit * 2;
- dvp->id_iobase = iobase_wd_1;
- dvp1 = dvp + 1;
- dvp1->id_iobase = iobase_wd_2;
- printf("ide_pci%d: adding drives to controller %d:",
- unit, biotabunit);
- for(dvup = isa_biotab_wdc;
- dvup->id_id != 0;
- dvup++) {
- if (dvup->id_driver != &wdcdriver)
- continue;
- if (dvup->id_unit != biotabunit)
- continue;
-
- dvup->id_iobase = dvp->id_iobase;
- printf(" %d", dvup->id_unit);
- dvup++;
-
- pci_map_int(tag, wdintr, (void *) dvp->id_unit, &bio_imask);
- if (dvup->id_id == 0)
- break;
-
- if (dvup->id_unit == biotabunit + 1) {
- dvup->id_iobase = dvp->id_iobase;
- printf(" %d", dvup->id_unit);
- dvup++;
- if (dvup->id_id == 0) {
- iobase_wd_2 = 0;
- break;
- }
- }
-
- if (dvup->id_unit == biotabunit + 2) {
- pci_map_int(tag, wdintr, (void *) ((int) dvp->id_unit + 1), &bio_imask);
- dvup->id_iobase = dvp1->id_iobase;
- printf(" %d", dvup->id_unit);
- dvup++;
- if (dvup->id_id == 0) {
- break;
- }
- }
-
- if (dvup->id_unit == biotabunit + 3) {
- pci_map_int(tag, wdintr, (void *) ((int) dvp->id_unit + 1), &bio_imask);
- dvup->id_iobase = dvp1->id_iobase;
- printf(" %d", dvup->id_unit);
- }
-
- break;
- }
- printf("\n");
- break;
- }
- }
- }
-#endif
-
bmista_1 = inb(iobase_bm_1 + BMISTA_PORT);
bmista_2 = inb(iobase_bm_2 + BMISTA_PORT);
OpenPOWER on IntegriCloud