diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 2000-08-28 21:48:13 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 2000-08-28 21:48:13 +0000 |
| commit | 21c3015a2483a7dd798e1baab65786a5abe7ed0a (patch) | |
| tree | a117c5438eb796bf8d29ccd3951677aa5ef43dca /sys/dev/ti | |
| parent | 5809aaba6742a9ef299b8b86706145105cdcf3e5 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ti')
| -rw-r--r-- | sys/dev/ti/if_ti.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 56847f4c8f3e..f1cfee5dca8e 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1505,7 +1505,7 @@ static int ti_attach(dev) rid = TI_PCI_LOMEM; sc->ti_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, - 0, ~0, 1, RF_ACTIVE); + 0, ~0, 1, RF_ACTIVE|PCI_RF_DENSE); if (sc->ti_res == NULL) { printf ("ti%d: couldn't map memory\n", unit); @@ -1517,22 +1517,6 @@ static int ti_attach(dev) sc->ti_bhandle = rman_get_bushandle(sc->ti_res); sc->ti_vhandle = (vm_offset_t)rman_get_virtual(sc->ti_res); - /* - * XXX FIXME: rman_get_virtual() on the alpha is currently - * broken and returns a physical address instead of a kernel - * virtual address. Consequently, we need to do a little - * extra mangling of the vhandle on the alpha. This should - * eventually be fixed! The whole idea here is to get rid - * of platform dependencies. - */ -#ifdef __alpha__ - if (pci_cvt_to_bwx(sc->ti_vhandle)) - sc->ti_vhandle = pci_cvt_to_bwx(sc->ti_vhandle); - else - sc->ti_vhandle = pci_cvt_to_dense(sc->ti_vhandle); - sc->ti_vhandle = ALPHA_PHYS_TO_K0SEG(sc->ti_vhandle); -#endif - /* Allocate interrupt */ rid = 0; |
