diff options
author | ticso <ticso@FreeBSD.org> | 2005-09-19 13:50:07 +0000 |
---|---|---|
committer | ticso <ticso@FreeBSD.org> | 2005-09-19 13:50:07 +0000 |
commit | 67624ed0f75907065578f29229d87b84e7a071fc (patch) | |
tree | e5a92c6294c73c413dd73635b6ace4b05147b50f /sys/alpha/tlsb | |
parent | db795b2c7606fa5ffdcc900c11384e51ad99d8b1 (diff) | |
download | FreeBSD-src-67624ed0f75907065578f29229d87b84e7a071fc.zip FreeBSD-src-67624ed0f75907065578f29229d87b84e7a071fc.tar.gz |
Relocate direct map specs into struct alpha_chipset.
Prepare for PCI Scatter-Gather map.
Panic if driver tries alpha_XXX_dmamap() out of range.
Diffstat (limited to 'sys/alpha/tlsb')
-rw-r--r-- | sys/alpha/tlsb/dwlpx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/alpha/tlsb/dwlpx.c b/sys/alpha/tlsb/dwlpx.c index e95f10e..66b65df 100644 --- a/sys/alpha/tlsb/dwlpx.c +++ b/sys/alpha/tlsb/dwlpx.c @@ -707,7 +707,12 @@ dwlpx_dma_init(struct dwlpx_softc *sc) * SGVA base: 0 */ chipset.sgmap = sgmap_map_create(sgwbase, sgwend, dwlpx_sgmap_map, tbl); +#else + chipset.sgmap = NULL; #endif + chipset.pci_sgmap = NULL; + chipset.dmsize = 2UL * 1024UL * 1024UL * 1024UL; + chipset.dmoffset = DWLPx_DIRECT_MAPPED_BASE; /* * Set up DMA windows for this DWLPx. @@ -729,12 +734,6 @@ dwlpx_dma_init(struct dwlpx_softc *sc) sgwbase | PCIA_WBASE_W_EN | PCIA_WBASE_SG_EN; } alpha_mb(); - - /* XXX XXX BEGIN XXX XXX */ - { /* XXX */ - alpha_XXX_dmamap_or = DWLPx_DIRECT_MAPPED_BASE; /* XXX */ - } /* XXX */ - /* XXX XXX END XXX XXX */ } /* |