diff options
author | dfr <dfr@FreeBSD.org> | 2000-08-28 21:48:13 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-08-28 21:48:13 +0000 |
commit | dd8b44b3958fa67d802cbbec7c7d82f7fb476229 (patch) | |
tree | 61496c144b3ecd15192a2e07e755754e18346bc9 /sys/pci/pci_compat.c | |
parent | 9ed8ded4d312c58a27de9402fd9802e78a591cb9 (diff) | |
download | FreeBSD-src-dd8b44b3958fa67d802cbbec7c7d82f7fb476229.zip FreeBSD-src-dd8b44b3958fa67d802cbbec7c7d82f7fb476229.tar.gz |
* Completely rewrite the alpha busspace to hide the implementation from
the drivers.
* Remove legacy inx/outx support from chipset and replace with macros
which call busspace.
* Rework pci config accesses to route through the pcib device instead of
calling a MD function directly.
With these changes it is possible to cleanly support machines which have
more than one independantly numbered PCI busses. As a bonus, the new
busspace implementation should be measurably faster than the old one.
Diffstat (limited to 'sys/pci/pci_compat.c')
-rw-r--r-- | sys/pci/pci_compat.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c index 4635342..bf833b1 100644 --- a/sys/pci/pci_compat.c +++ b/sys/pci/pci_compat.c @@ -73,6 +73,18 @@ pci_conf_write(pcici_t cfg, u_long reg, u_long data) } int +pci_cfgread (pcicfgregs *cfg, int reg, int bytes) +{ + return (pci_read_config(cfg->dev, reg, bytes)); +} + +void +pci_cfgwrite (pcicfgregs *cfg, int reg, int data, int bytes) +{ + pci_write_config(cfg->dev, reg, data, bytes); +} + +int pci_map_port(pcici_t cfg, u_long reg, pci_port_t* pa) { int rid; |