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 /sys/pci/pci_compat.c | |
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.
Diffstat (limited to 'sys/pci/pci_compat.c')
-rw-r--r-- | sys/pci/pci_compat.c | 34 |
1 files changed, 0 insertions, 34 deletions
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) { |