Remove some remnant alpha hacks.
Approved by: PCI-maintainers (imp, jhb)
This commit is contained in:
parent
4a87c82b19
commit
ed5b3d4217
@ -502,7 +502,7 @@ bce_attach(device_t dev)
|
||||
/* Allocate PCI memory resources. */
|
||||
rid = PCIR_BAR(0);
|
||||
sc->bce_res_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
|
||||
&rid, RF_ACTIVE | PCI_RF_DENSE);
|
||||
&rid, RF_ACTIVE);
|
||||
|
||||
if (sc->bce_res_mem == NULL) {
|
||||
BCE_PRINTF("%s(%d): PCI memory allocation failed\n",
|
||||
|
@ -2240,7 +2240,7 @@ bge_attach(device_t dev)
|
||||
|
||||
rid = BGE_PCI_BAR0;
|
||||
sc->bge_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
|
||||
RF_ACTIVE | PCI_RF_DENSE);
|
||||
RF_ACTIVE);
|
||||
|
||||
if (sc->bge_res == NULL) {
|
||||
device_printf (sc->bge_dev, "couldn't map memory\n");
|
||||
|
@ -210,13 +210,6 @@ struct pci_devinfo {
|
||||
|
||||
#include "pci_if.h"
|
||||
|
||||
/*
|
||||
* Define pci-specific resource flags for accessing memory via dense
|
||||
* or bwx memory spaces. These flags are ignored on i386.
|
||||
*/
|
||||
#define PCI_RF_DENSE 0x10000
|
||||
#define PCI_RF_BWX 0x20000
|
||||
|
||||
enum pci_device_ivars {
|
||||
PCI_IVAR_SUBVENDOR,
|
||||
PCI_IVAR_SUBDEVICE,
|
||||
|
@ -2009,18 +2009,7 @@ ti_chipinit(sc)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __brokenalpha__
|
||||
/*
|
||||
* From the Alteon sample driver:
|
||||
* Must insure that we do not cross an 8K (bytes) boundary
|
||||
* for DMA reads. Our highest limit is 1K bytes. This is a
|
||||
* restriction on some ALPHA platforms with early revision
|
||||
* 21174 PCI chipsets, such as the AlphaPC 164lx
|
||||
*/
|
||||
TI_SETBIT(sc, TI_PCI_STATE, pci_writemax|TI_PCI_READMAX_1024);
|
||||
#else
|
||||
TI_SETBIT(sc, TI_PCI_STATE, pci_writemax);
|
||||
#endif
|
||||
|
||||
/* This sets the min dma param all the way up (0xff). */
|
||||
TI_SETBIT(sc, TI_PCI_STATE, TI_PCISTATE_MINDMA);
|
||||
@ -2314,7 +2303,7 @@ ti_attach(dev)
|
||||
|
||||
rid = TI_PCI_LOMEM;
|
||||
sc->ti_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
|
||||
RF_ACTIVE|PCI_RF_DENSE);
|
||||
RF_ACTIVE);
|
||||
|
||||
if (sc->ti_res == NULL) {
|
||||
device_printf(dev, "couldn't map memory\n");
|
||||
|
Loading…
Reference in New Issue
Block a user