isa_dma.c (141391) | isa_dma.c (146214) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 33 * from: isa_dma.c,v 1.3 1999/05/09 23:56:00 peter Exp $ | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 33 * from: isa_dma.c,v 1.3 1999/05/09 23:56:00 peter Exp $ |
34 * $FreeBSD: head/sys/ia64/isa/isa_dma.c 141391 2005-02-06 13:46:39Z phk $ | 34 * $FreeBSD: head/sys/ia64/isa/isa_dma.c 146214 2005-05-14 10:14:56Z nyan $ |
35 */ 36 37/* 38 * code to manage AT bus 39 * 40 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 41 * Fixed uninitialized variable problem and added code to deal 42 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 7 unchanged lines hidden (view full) --- 50#include <sys/lock.h> 51#include <sys/mutex.h> 52#include <sys/bus.h> 53#include <vm/vm.h> 54#include <vm/vm_param.h> 55#include <vm/pmap.h> 56#include <isa/isareg.h> 57#include <isa/isavar.h> | 35 */ 36 37/* 38 * code to manage AT bus 39 * 40 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 41 * Fixed uninitialized variable problem and added code to deal 42 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 7 unchanged lines hidden (view full) --- 50#include <sys/lock.h> 51#include <sys/mutex.h> 52#include <sys/bus.h> 53#include <vm/vm.h> 54#include <vm/vm_param.h> 55#include <vm/pmap.h> 56#include <isa/isareg.h> 57#include <isa/isavar.h> |
58#include <dev/ic/i8237.h> | 58#include <isa/isa_dmareg.h> |
59#include <machine/bus.h> 60 61static bus_dma_tag_t dma_tag[8]; 62static bus_dmamap_t dma_map[8]; 63static u_int8_t dma_busy = 0; /* Used in isa_dmastart() */ 64static u_int8_t dma_inuse = 0; /* User for acquire/release */ 65static u_int8_t dma_auto_mode = 0; 66static u_int8_t dma_bounced = 0; --- 442 unchanged lines hidden --- | 59#include <machine/bus.h> 60 61static bus_dma_tag_t dma_tag[8]; 62static bus_dmamap_t dma_map[8]; 63static u_int8_t dma_busy = 0; /* Used in isa_dmastart() */ 64static u_int8_t dma_inuse = 0; /* User for acquire/release */ 65static u_int8_t dma_auto_mode = 0; 66static u_int8_t dma_bounced = 0; --- 442 unchanged lines hidden --- |