Don't assume that we'll be using direct-mapped DMA for PCI.

This commit is contained in:
thorpej 1998-01-17 03:39:51 +00:00
parent 361179df26
commit 399f3639cf
3 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apecs.c,v 1.28 1998/01/12 10:21:11 thorpej Exp $ */
/* $NetBSD: apecs.c,v 1.29 1998/01/17 03:39:51 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: apecs.c,v 1.28 1998/01/12 10:21:11 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: apecs.c,v 1.29 1998/01/17 03:39:51 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -166,7 +166,8 @@ apecsattach(parent, self, aux)
pba.pba_busname = "pci";
pba.pba_iot = &acp->ac_iot;
pba.pba_memt = &acp->ac_memt;
pba.pba_dmat = &acp->ac_dmat_direct;
pba.pba_dmat =
alphabus_dma_get_tag(&acp->ac_dmat_direct, ALPHA_BUS_PCI);
pba.pba_pc = &acp->ac_pc;
pba.pba_bus = 0;
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cia.c,v 1.29 1998/01/12 10:21:12 thorpej Exp $ */
/* $NetBSD: cia.c,v 1.30 1998/01/17 03:39:51 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: cia.c,v 1.29 1998/01/12 10:21:12 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: cia.c,v 1.30 1998/01/17 03:39:51 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -179,7 +179,8 @@ ciaattach(parent, self, aux)
pba.pba_busname = "pci";
pba.pba_iot = &ccp->cc_iot;
pba.pba_memt = &ccp->cc_memt;
pba.pba_dmat = &ccp->cc_dmat_direct;
pba.pba_dmat =
alphabus_dma_get_tag(&ccp->cc_dmat_direct, ALPHA_BUS_PCI);
pba.pba_pc = &ccp->cc_pc;
pba.pba_bus = 0;
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;

View File

@ -1,4 +1,4 @@
/* $NetBSD: lca.c,v 1.26 1998/01/12 10:21:13 thorpej Exp $ */
/* $NetBSD: lca.c,v 1.27 1998/01/17 03:39:52 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: lca.c,v 1.26 1998/01/12 10:21:13 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: lca.c,v 1.27 1998/01/17 03:39:52 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -181,7 +181,8 @@ lcaattach(parent, self, aux)
pba.pba_busname = "pci";
pba.pba_iot = &lcp->lc_iot;
pba.pba_memt = &lcp->lc_memt;
pba.pba_dmat = &lcp->lc_dmat_direct;
pba.pba_dmat =
alphabus_dma_get_tag(&lcp->lc_dmat_direct, ALPHA_BUS_PCI);
pba.pba_pc = &lcp->lc_pc;
pba.pba_bus = 0;
pba.pba_flags = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;