MCPCIA has a 256 byte DMA prefetch threshold.
This commit is contained in:
parent
3350f68f80
commit
1e21ada1d9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mcpcia_dma.c,v 1.14 2001/01/03 19:16:00 thorpej Exp $ */
|
||||
/* $NetBSD: mcpcia_dma.c,v 1.15 2001/07/19 18:55:40 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_dma.c,v 1.14 2001/01/03 19:16:00 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: mcpcia_dma.c,v 1.15 2001/07/19 18:55:40 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -92,6 +92,9 @@ void mcpcia_bus_dmamap_unload_sgmap __P((bus_dma_tag_t, bus_dmamap_t));
|
|||
#define MCPCIA_ISA_SG_MAPPED_BASE (8*1024*1024)
|
||||
#define MCPCIA_ISA_SG_MAPPED_SIZE (8*1024*1024)
|
||||
|
||||
/* MCPCIA has a 256-byte out-bound DMA prefetch threshold. */
|
||||
#define MCPCIA_SG_MAPPED_PFTHRESH 256
|
||||
|
||||
#define MCPCIA_SGTLB_INVALIDATE(ccp) \
|
||||
do { \
|
||||
alpha_mb(); \
|
||||
|
@ -141,6 +144,7 @@ mcpcia_dma_init(ccp)
|
|||
t->_next_window = NULL;
|
||||
t->_boundary = 0;
|
||||
t->_sgmap = &ccp->cc_pci_sgmap;
|
||||
t->_pfthresh = MCPCIA_SG_MAPPED_PFTHRESH;
|
||||
t->_get_tag = mcpcia_dma_get_tag;
|
||||
t->_dmamap_create = alpha_sgmap_dmamap_create;
|
||||
t->_dmamap_destroy = alpha_sgmap_dmamap_destroy;
|
||||
|
@ -167,6 +171,7 @@ mcpcia_dma_init(ccp)
|
|||
t->_next_window = NULL;
|
||||
t->_boundary = 0;
|
||||
t->_sgmap = &ccp->cc_isa_sgmap;
|
||||
t->_pfthresh = MCPCIA_SG_MAPPED_PFTHRESH;
|
||||
t->_get_tag = mcpcia_dma_get_tag;
|
||||
t->_dmamap_create = alpha_sgmap_dmamap_create;
|
||||
t->_dmamap_destroy = alpha_sgmap_dmamap_destroy;
|
||||
|
|
Loading…
Reference in New Issue