diff options
author | peter <peter@FreeBSD.org> | 2000-01-05 16:40:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-05 16:40:10 +0000 |
commit | 4ca3fc66620f95a46eb06a6a6fd3a556bd173273 (patch) | |
tree | 7fe50bd7c2535e73224e808fa03790167e7754ac | |
parent | 46f9930cf5e5dbbcfdf5a26292c40fbfbc151d3f (diff) | |
download | FreeBSD-src-4ca3fc66620f95a46eb06a6a6fd3a556bd173273.zip FreeBSD-src-4ca3fc66620f95a46eb06a6a6fd3a556bd173273.tar.gz |
Zap pci_map_dense() and pci_map_bwx() - they were for compatability but
are not used. All the drivers that use memory mapped IO on the Alpha have
been ported already.
-rw-r--r-- | sys/dev/pci/pcivar.h | 2 | ||||
-rw-r--r-- | sys/pci/pci_compat.c | 34 | ||||
-rw-r--r-- | sys/pci/pcivar.h | 2 |
3 files changed, 0 insertions, 38 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index ef05de7..a332fc9 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -304,8 +304,6 @@ u_long pci_conf_read (pcici_t tag, u_long reg); void pci_conf_write (pcici_t tag, u_long reg, u_long data); int pci_map_port (pcici_t tag, u_long reg, pci_port_t* pa); int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); -int pci_map_dense (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); -int pci_map_bwx (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); int pci_map_int (pcici_t tag, pci_inthand_t *handler, void *arg, intrmask_t *maskptr); int pci_map_int_right(pcici_t cfg, pci_inthand_t *handler, void *arg, diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c index d8c4139..77c3fa2 100644 --- a/sys/pci/pci_compat.c +++ b/sys/pci/pci_compat.c @@ -105,40 +105,6 @@ pci_map_mem(pcici_t cfg, u_long reg, vm_offset_t* va, vm_offset_t* pa) return (0); } -int -pci_map_dense(pcici_t cfg, u_long reg, vm_offset_t* va, vm_offset_t* pa) -{ - int rid; - struct resource *res; - - rid = reg; - res = bus_alloc_resource(cfg->dev, SYS_RES_MEMORY, &rid, - 0, ~0, 1, RF_ACTIVE|PCI_RF_DENSE); - if (res) { - *pa = rman_get_start(res); - *va = (vm_offset_t) rman_get_virtual(res); - return (1); - } - return (0); -} - -int -pci_map_bwx(pcici_t cfg, u_long reg, vm_offset_t* va, vm_offset_t* pa) -{ - int rid; - struct resource *res; - - rid = reg; - res = bus_alloc_resource(cfg->dev, SYS_RES_MEMORY, &rid, - 0, ~0, 1, RF_ACTIVE|PCI_RF_BWX); - if (res) { - *pa = rman_get_start(res); - *va = (vm_offset_t) rman_get_virtual(res); - return (1); - } - return (0); -} - int pci_map_int(pcici_t cfg, pci_inthand_t *handler, void *arg, intrmask_t *maskptr) { diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h index ef05de7..a332fc9 100644 --- a/sys/pci/pcivar.h +++ b/sys/pci/pcivar.h @@ -304,8 +304,6 @@ u_long pci_conf_read (pcici_t tag, u_long reg); void pci_conf_write (pcici_t tag, u_long reg, u_long data); int pci_map_port (pcici_t tag, u_long reg, pci_port_t* pa); int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); -int pci_map_dense (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); -int pci_map_bwx (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa); int pci_map_int (pcici_t tag, pci_inthand_t *handler, void *arg, intrmask_t *maskptr); int pci_map_int_right(pcici_t cfg, pci_inthand_t *handler, void *arg, |