Pass down bus_dma_tag_t's as appropriate (per Jason's bus_dma code).
This commit is contained in:
parent
d4b3029855
commit
8c578dc960
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mainbus.c,v 1.17 1997/08/30 06:52:55 mycroft Exp $ */
|
||||
/* $NetBSD: mainbus.c,v 1.18 1997/08/30 06:54:34 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
@ -44,6 +44,8 @@
|
||||
#include <i386/isa/isa_machdep.h>
|
||||
|
||||
#include "pci.h"
|
||||
#include "eisa.h"
|
||||
#include "isa.h"
|
||||
#include "apm.h"
|
||||
|
||||
#if NAPM > 0
|
||||
@ -114,6 +116,7 @@ mainbus_attach(parent, self, aux)
|
||||
mba.mba_pba.pba_busname = "pci";
|
||||
mba.mba_pba.pba_iot = I386_BUS_SPACE_IO;
|
||||
mba.mba_pba.pba_memt = I386_BUS_SPACE_MEM;
|
||||
mba.mba_pba.pba_dmat = &pci_bus_dma_tag;
|
||||
mba.mba_pba.pba_flags =
|
||||
PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
|
||||
mba.mba_pba.pba_bus = 0;
|
||||
@ -125,6 +128,9 @@ mainbus_attach(parent, self, aux)
|
||||
mba.mba_eba.eba_busname = "eisa";
|
||||
mba.mba_eba.eba_iot = I386_BUS_SPACE_IO;
|
||||
mba.mba_eba.eba_memt = I386_BUS_SPACE_MEM;
|
||||
#if NEISA > 0
|
||||
mba.mba_eba.eba_dmat = &eisa_bus_dma_tag;
|
||||
#endif
|
||||
config_found(self, &mba.mba_eba, mainbus_print);
|
||||
}
|
||||
|
||||
@ -132,6 +138,9 @@ mainbus_attach(parent, self, aux)
|
||||
mba.mba_iba.iba_busname = "isa";
|
||||
mba.mba_iba.iba_iot = I386_BUS_SPACE_IO;
|
||||
mba.mba_iba.iba_memt = I386_BUS_SPACE_MEM;
|
||||
#if NISA > 0
|
||||
mba.mba_iba.iba_dmat = &isa_bus_dma_tag;
|
||||
#endif
|
||||
config_found(self, &mba.mba_iba, mainbus_print);
|
||||
}
|
||||
#if NAPM > 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci.c,v 1.28 1997/08/30 06:47:44 mycroft Exp $ */
|
||||
/* $NetBSD: pci.c,v 1.29 1997/08/30 06:53:57 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997
|
||||
@ -173,6 +173,7 @@ pciattach(parent, self, aux)
|
||||
|
||||
pa.pa_iot = iot;
|
||||
pa.pa_memt = memt;
|
||||
pa.pa_dmat = pba->pba_dmat;
|
||||
pa.pa_pc = pc;
|
||||
pa.pa_device = device;
|
||||
pa.pa_function = function;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ppb.c,v 1.14 1997/08/30 06:51:07 mycroft Exp $ */
|
||||
/* $NetBSD: ppb.c,v 1.15 1997/08/30 06:53:58 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
|
||||
@ -130,6 +130,7 @@ ppbattach(parent, self, aux)
|
||||
pba.pba_busname = "pci";
|
||||
pba.pba_iot = pa->pa_iot;
|
||||
pba.pba_memt = pa->pa_memt;
|
||||
pba.pba_dmat = pa->pa_dmat;
|
||||
pba.pba_pc = pc;
|
||||
pba.pba_flags = pa->pa_flags;
|
||||
pba.pba_bus = PPB_BUSINFO_SECONDARY(busdata);
|
||||
|
Loading…
Reference in New Issue
Block a user