From a6e6be278ab9f3522f60c3dbe43c13a2c5613f41 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 17 Jul 2009 18:06:52 +0000 Subject: Update bus_dma to the better codebase found on almost all other platforms, where the common part to all bus_dmamap_load*() functions is implemented in in an internal load_buffer routine. This allows the xbridge-specific dma code to only provide this function, instead of three; and this also brings us a working bus_dmamap_load_uio() on all supported sgi machines, which in turns make crpyto(4) devices really work. Tested with hifn(4). --- sys/arch/sgi/pci/macepcibridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/sgi/pci') diff --git a/sys/arch/sgi/pci/macepcibridge.c b/sys/arch/sgi/pci/macepcibridge.c index 2c6653810ad..cdf4b5247ce 100644 --- a/sys/arch/sgi/pci/macepcibridge.c +++ b/sys/arch/sgi/pci/macepcibridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macepcibridge.c,v 1.23 2009/07/16 21:02:56 miod Exp $ */ +/* $OpenBSD: macepcibridge.c,v 1.24 2009/07/17 18:06:51 miod Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se) @@ -133,6 +133,7 @@ struct machine_bus_dma_tag pci_bus_dma_tag = { _dmamap_load_mbuf, _dmamap_load_uio, _dmamap_load_raw, + _dmamap_load_buffer, _dmamap_unload, _dmamap_sync, _dmamem_alloc, -- cgit v1.2.3