Deleted Added
full compact
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

--- 19 unchanged lines hidden (view full) ---

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 */
34
35#include <sys/cdefs.h>
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

--- 19 unchanged lines hidden (view full) ---

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 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/i386/isa/isa_dma.c 141391 2005-02-06 13:46:39Z phk $");
36__FBSDID("$FreeBSD: head/sys/i386/isa/isa_dma.c 146214 2005-05-14 10:14:56Z nyan $");
37
38/*
39 * code to manage AT bus
40 *
41 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com):
42 * Fixed uninitialized variable problem and added code to deal
43 * with DMA page boundaries in isa_dmarangecheck(). Fixed word
44 * mode DMA count compution and reorganized DMA setup code in

--- 7 unchanged lines hidden (view full) ---

52#include <sys/malloc.h>
53#include <sys/lock.h>
54#include <sys/proc.h>
55#include <sys/mutex.h>
56#include <sys/module.h>
57#include <vm/vm.h>
58#include <vm/vm_param.h>
59#include <vm/pmap.h>
37
38/*
39 * code to manage AT bus
40 *
41 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com):
42 * Fixed uninitialized variable problem and added code to deal
43 * with DMA page boundaries in isa_dmarangecheck(). Fixed word
44 * mode DMA count compution and reorganized DMA setup code in

--- 7 unchanged lines hidden (view full) ---

52#include <sys/malloc.h>
53#include <sys/lock.h>
54#include <sys/proc.h>
55#include <sys/mutex.h>
56#include <sys/module.h>
57#include <vm/vm.h>
58#include <vm/vm_param.h>
59#include <vm/pmap.h>
60#include <i386/isa/isa.h>
61#include <dev/ic/i8237.h>
60#include <isa/isareg.h>
62#include <isa/isavar.h>
61#include <isa/isavar.h>
62#include <isa/isa_dmareg.h>
63
64static int isa_dmarangecheck(caddr_t va, u_int length, int chan);
65
66static caddr_t dma_bouncebuf[8];
67static u_int dma_bouncebufsize[8];
68static u_int8_t dma_bounced = 0;
69static u_int8_t dma_busy = 0; /* Used in isa_dmastart() */
70static u_int8_t dma_inuse = 0; /* User for acquire/release */

--- 484 unchanged lines hidden ---
63
64static int isa_dmarangecheck(caddr_t va, u_int length, int chan);
65
66static caddr_t dma_bouncebuf[8];
67static u_int dma_bouncebufsize[8];
68static u_int8_t dma_bounced = 0;
69static u_int8_t dma_busy = 0; /* Used in isa_dmastart() */
70static u_int8_t dma_inuse = 0; /* User for acquire/release */

--- 484 unchanged lines hidden ---