diff options
author | jhb <jhb@FreeBSD.org> | 2002-09-23 15:52:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-09-23 15:52:30 +0000 |
commit | 36594f8de54db82876d901184c8a314ec9532460 (patch) | |
tree | 5f6086246dc8a3ea05a3dac483a8d0ee620cab23 /sys/amd64/pci | |
parent | 3c64027d75bd45300a5257bbac9ecdbac3ebd5b7 (diff) | |
download | FreeBSD-src-36594f8de54db82876d901184c8a314ec9532460.zip FreeBSD-src-36594f8de54db82876d901184c8a314ec9532460.tar.gz |
Change the nexus_pcib driver (eventually to be renamed to legacy_pcib) to
hang off of the legacy driver instead of the nexus.
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c index e8ade4f..56e8eb3 100644 --- a/sys/amd64/pci/pci_bus.c +++ b/sys/amd64/pci/pci_bus.c @@ -40,7 +40,7 @@ #include <pci/pcireg.h> #include <pci/pcib_private.h> #include <isa/isavar.h> -#include <machine/nexusvar.h> +#include <machine/legacyvar.h> #include <machine/pci_cfgreg.h> #include <machine/segments.h> #include <machine/cputypes.h> @@ -361,7 +361,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) if (strcmp(device_get_name(devs[i]), "pcib") != 0) continue; - if (nexus_get_pcibus(devs[i]) == busnum) + if (legacy_get_pcibus(devs[i]) == busnum) s = NULL; } free(devs, M_TEMP); @@ -376,7 +376,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) child = BUS_ADD_CHILD(parent, 100, "pcib", busnum); device_set_desc(child, s); - nexus_set_pcibus(child, busnum); + legacy_set_pcibus(child, busnum); found = 1; if (id == 0x12258086) @@ -417,7 +417,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) printf( "nexus_pcib_identify: no bridge found, adding pcib0 anyway\n"); child = BUS_ADD_CHILD(parent, 100, "pcib", 0); - nexus_set_pcibus(child, 0); + legacy_set_pcibus(child, 0); } } @@ -456,7 +456,7 @@ nexus_pcib_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) switch (which) { case PCIB_IVAR_BUS: - *result = nexus_get_pcibus(dev); + *result = legacy_get_pcibus(dev); return 0; } return ENOENT; @@ -468,7 +468,7 @@ nexus_pcib_write_ivar(device_t dev, device_t child, int which, uintptr_t value) switch (which) { case PCIB_IVAR_BUS: - nexus_set_pcibus(dev, value); + legacy_set_pcibus(dev, value); return 0; } return ENOENT; @@ -510,7 +510,7 @@ static driver_t nexus_pcib_driver = { 1, }; -DRIVER_MODULE(pcib, nexus, nexus_pcib_driver, pcib_devclass, 0, 0); +DRIVER_MODULE(pcib, legacy, nexus_pcib_driver, pcib_devclass, 0, 0); /* |