diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2001-10-03 08:25:58 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2001-10-03 08:25:58 +0000 |
| commit | 712bc4a99abc2a3fefdebcfc973a7bc3d1a2555c (patch) | |
| tree | 1daddf4bb840b6cfc16d060380e287b2be55a587 | |
| parent | 592fcea788517ee48e795217aafda5e42324c96a (diff) | |
Notes
| -rw-r--r-- | sys/ia64/pci/nexus_pcib.c | 2 | ||||
| -rw-r--r-- | sys/ia64/pci/pci_cfgreg.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/ia64/pci/nexus_pcib.c b/sys/ia64/pci/nexus_pcib.c index fa47654dbb45..356968225360 100644 --- a/sys/ia64/pci/nexus_pcib.c +++ b/sys/ia64/pci/nexus_pcib.c @@ -51,7 +51,7 @@ nexus_pcib_maxslots(device_t dev) /* read configuration space register */ #define SAL_PCI_ADDRESS(bus, slot, func, reg) \ - (((bus) << 23) | ((slot) << 11) | ((func) << 8) | (reg)) + (((bus) << 16) | ((slot) << 11) | ((func) << 8) | (reg)) static u_int32_t nexus_pcib_read_config(device_t dev, int bus, int slot, int func, diff --git a/sys/ia64/pci/pci_cfgreg.c b/sys/ia64/pci/pci_cfgreg.c index 649b7a99d801..cef743b89f7a 100644 --- a/sys/ia64/pci/pci_cfgreg.c +++ b/sys/ia64/pci/pci_cfgreg.c @@ -31,7 +31,7 @@ #include <machine/sal.h> #define SAL_PCI_ADDRESS(bus, slot, func, reg) \ - (((bus) << 23) | ((slot) << 11) | ((func) << 8) | (reg)) + (((bus) << 16) | ((slot) << 11) | ((func) << 8) | (reg)) int pci_cfgregopen(void) @@ -51,9 +51,8 @@ pci_cfgregread(int bus, int slot, int func, int reg, int bytes) return (~0); else return (res.sal_result[0]); - - } + void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes) { |
