Move definition of ISA_DMA_BOUNCE_THRESHOLD to dev/isa/isareg.h.

This commit is contained in:
fvdl 2003-05-05 12:55:41 +00:00
parent ee6dbf8959
commit 6bd0c9f44d
11 changed files with 20 additions and 64 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_bounce.c,v 1.2 2001/11/14 18:15:12 thorpej Exp $ */
/* $NetBSD: isadma_bounce.c,v 1.3 2003/05/05 12:55:41 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@ -58,11 +58,6 @@
extern paddr_t avail_end;
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
* in the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_bounce.c,v 1.4 2002/04/26 04:15:19 thorpej Exp $ */
/* $NetBSD: isadma_bounce.c,v 1.5 2003/05/05 12:55:42 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.4 2002/04/26 04:15:19 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.5 2003/05/05 12:55:42 fvdl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -59,11 +59,6 @@ __KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.4 2002/04/26 04:15:19 thorpej Ex
extern paddr_t avail_end;
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
* in the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_bounce.c,v 1.5 2003/01/19 10:06:14 tsutsui Exp $ */
/* $NetBSD: isadma_bounce.c,v 1.6 2003/05/05 12:55:42 fvdl Exp $ */
/* NetBSD: isadma_bounce.c,v 1.2 2000/06/01 05:49:36 thorpej Exp */
/*-
@ -40,7 +40,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.5 2003/01/19 10:06:14 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.6 2003/05/05 12:55:42 fvdl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -60,11 +60,6 @@ __KERNEL_RCSID(0, "$NetBSD: isadma_bounce.c,v 1.5 2003/01/19 10:06:14 tsutsui Ex
extern paddr_t avail_end; /* from pmap.c */
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
* in the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa_dma.c,v 1.1 2001/03/09 20:55:47 leo Exp $ */
/* $NetBSD: isa_dma.c,v 1.2 2003/05/05 12:55:42 fvdl Exp $ */
#define ISA_DMA_STATS
@ -55,11 +55,6 @@
#include <uvm/uvm_extern.h>
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
extern paddr_t avail_end;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.20 2003/04/01 23:48:57 thorpej Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.21 2003/05/05 12:55:42 fvdl Exp $ */
#define ISA_DMA_STATS
@ -60,11 +60,6 @@
extern paddr_t avail_end; /* XXX temporary */
/*
* ISA can DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by ISA DMA. A pointer to one of these is stashed in
* the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_bounce.c,v 1.2 2002/03/18 01:21:12 simonb Exp $ */
/* $NetBSD: isadma_bounce.c,v 1.3 2003/05/05 12:55:43 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@ -57,11 +57,6 @@
extern paddr_t avail_end;
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by bouncing ISA DMA. A pointer to one of these is stashed
* in the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.2 2003/04/02 04:01:33 thorpej Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.3 2003/05/05 12:55:43 fvdl Exp $ */
#define ISA_DMA_STATS
@ -59,11 +59,6 @@
extern paddr_t avail_end; /* XXX temporary */
/*
* ISA can DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by ISA dma. A pointer to one of these it stashed in
* the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.6 2003/04/02 04:27:17 thorpej Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.7 2003/05/05 12:55:43 fvdl Exp $ */
#define ISA_DMA_STATS
@ -59,11 +59,6 @@
extern paddr_t avail_end; /* XXX temporary */
/*
* ISA can DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by ISA dma. A pointer to one of these it stashed in
* the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.4 2003/04/02 04:27:18 thorpej Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.5 2003/05/05 12:55:43 fvdl Exp $ */
#define ISA_DMA_STATS
@ -60,11 +60,6 @@
extern paddr_t avail_end; /* XXX temporary */
/*
* ISA can DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
/*
* Cookie used by ISA dma. A pointer to one of these it stashed in
* the DMA map.

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa_machdep.c,v 1.5 2003/05/03 18:11:08 wiz Exp $ */
/* $NetBSD: isa_machdep.c,v 1.6 2003/05/05 12:55:44 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.5 2003/05/03 18:11:08 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.6 2003/05/05 12:55:44 fvdl Exp $");
#define ISA_DMA_STATS
@ -107,11 +107,6 @@ __KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.5 2003/05/03 18:11:08 wiz Exp $");
#include <machine/mpbiosvar.h>
#endif
/*
* ISA can only DMA to 0-16M.
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
extern paddr_t avail_end;
#define IDTVEC(name) __CONCAT(X,name)

View File

@ -1,4 +1,4 @@
/* $NetBSD: isareg.h,v 1.6 1998/03/22 15:44:02 drochner Exp $ */
/* $NetBSD: isareg.h,v 1.7 2003/05/05 12:55:41 fvdl Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -160,4 +160,10 @@
#define IOM_BEGIN 0x0a0000 /* Start of I/O Memory "hole" */
#define IOM_END 0x100000 /* End of I/O Memory "hole" */
#define IOM_SIZE (IOM_END - IOM_BEGIN)
/*
* ISA DMA works < 16M (24 address lines).
*/
#define ISA_DMA_BOUNCE_THRESHOLD (16 * 1024 * 1024)
#endif /* !IOM_BEGIN */