From 67624ed0f75907065578f29229d87b84e7a071fc Mon Sep 17 00:00:00 2001 From: ticso Date: Mon, 19 Sep 2005 13:50:07 +0000 Subject: Relocate direct map specs into struct alpha_chipset. Prepare for PCI Scatter-Gather map. Panic if driver tries alpha_XXX_dmamap() out of range. --- sys/alpha/pci/tsunami.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/alpha/pci/tsunami.c') diff --git a/sys/alpha/pci/tsunami.c b/sys/alpha/pci/tsunami.c index 23dd370..bef551a 100644 --- a/sys/alpha/pci/tsunami.c +++ b/sys/alpha/pci/tsunami.c @@ -234,6 +234,7 @@ tsunami_init_sgmap(void) chipset.sgmap = sgmap_map_create(TSUNAMI_SGMAP_BASE, TSUNAMI_SGMAP_BASE + TSUNAMI_SGMAP_SIZE, tsunami_sgmap_map, sgtable); + chipset.pci_sgmap = NULL; } void @@ -258,7 +259,8 @@ tsunami_init() chipset = tsunami_chipset; platform.pci_intr_enable = tsunami_intr_enable; platform.pci_intr_disable = tsunami_intr_disable; - alpha_XXX_dmamap_or = 2UL * 1024UL * 1024UL * 1024UL; + chipset.dmsize = 2UL * 1024UL * 1024UL * 1024UL; + chipset.dmoffset = 2UL * 1024UL * 1024UL * 1024UL; if (platform.pci_intr_init) platform.pci_intr_init(); -- cgit v1.1