cbus_dma.c (83535) | cbus_dma.c (92793) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 | 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 --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 |
37 * $FreeBSD: head/sys/pc98/cbus/cbus_dma.c 83535 2001-09-16 05:28:16Z nyan $ | 37 * $FreeBSD: head/sys/pc98/cbus/cbus_dma.c 92793 2002-03-20 12:22:31Z kato $ |
38 */ 39 40/* 41 * code to manage AT bus 42 * 43 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 44 * Fixed uninitialized variable problem and added code to deal 45 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 46 unchanged lines hidden (view full) --- 92/* 93** Register definitions for DMA controller 2 (channels 4..7): 94*/ 95#define DMA2_CHN(c) (IO_DMA2 + 2*(2*(c))) /* addr reg for channel c */ 96#define DMA2_SMSK (IO_DMA2 + 2*10) /* single mask register */ 97#define DMA2_MODE (IO_DMA2 + 2*11) /* mode register */ 98#define DMA2_FFC (IO_DMA2 + 2*12) /* clear first/last FF */ 99 | 38 */ 39 40/* 41 * code to manage AT bus 42 * 43 * 92/08/18 Frank P. MacLachlan (fpm@crash.cts.com): 44 * Fixed uninitialized variable problem and added code to deal 45 * with DMA page boundaries in isa_dmarangecheck(). Fixed word --- 46 unchanged lines hidden (view full) --- 92/* 93** Register definitions for DMA controller 2 (channels 4..7): 94*/ 95#define DMA2_CHN(c) (IO_DMA2 + 2*(2*(c))) /* addr reg for channel c */ 96#define DMA2_SMSK (IO_DMA2 + 2*10) /* single mask register */ 97#define DMA2_MODE (IO_DMA2 + 2*11) /* mode register */ 98#define DMA2_FFC (IO_DMA2 + 2*12) /* clear first/last FF */ 99 |
100static int isa_dmarangecheck __P((caddr_t va, u_int length, int chan)); | 100static int isa_dmarangecheck(caddr_t va, u_int length, int chan); |
101 102#ifdef PC98 103static caddr_t dma_bouncebuf[4]; 104static u_int dma_bouncebufsize[4]; 105#else 106static caddr_t dma_bouncebuf[8]; 107static u_int dma_bouncebufsize[8]; 108#endif --- 517 unchanged lines hidden --- | 101 102#ifdef PC98 103static caddr_t dma_bouncebuf[4]; 104static u_int dma_bouncebufsize[4]; 105#else 106static caddr_t dma_bouncebuf[8]; 107static u_int dma_bouncebufsize[8]; 108#endif --- 517 unchanged lines hidden --- |