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.
This commit is contained in:
parent
604d32ca3b
commit
bcae942098
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user