-/* $OpenBSD: pccom.c,v 1.7 1996/11/28 23:37:41 niklas Exp $ */
+/* $OpenBSD: pccom.c,v 1.8 1996/11/30 11:54:32 downsj Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*-
#include <sys/types.h>
#include <sys/device.h>
-#include <machine/intr.h>
#include <machine/bus.h>
+#include <machine/intr.h>
#include <dev/isa/isavar.h>
#include <dev/isa/comreg.h>
if (iobase == comconsaddr && !comconsattached)
goto out;
- if (needioh && bus_space_map(iot, iobase, COM_NPORTS, &ioh)) {
+ if (needioh && bus_space_map(iot, iobase, COM_NPORTS, 0, &ioh)) {
rv = 0;
goto out;
}
iobase = ia->ia_iobase;
iot = ia->ia_iot;
if (iobase != comconsaddr) {
- if (bus_space_map(iot, iobase, COM_NPORTS, &ioh))
+ if (bus_space_map(iot, iobase, COM_NPORTS, 0, &ioh))
panic("comattach: io mapping failed");
} else
ioh = comconsioh;
bus_space_handle_t hayespioh;
#define HAYESP_NPORTS 8 /* XXX XXX XXX ??? ??? ??? */
- if (bus_space_map(iot, *hayespp, HAYESP_NPORTS, &hayespioh))
+ if (bus_space_map(iot, *hayespp, HAYESP_NPORTS, 0, &hayespioh))
continue;
if (comprobeHAYESP(hayespioh, sc)) {
sc->sc_hayespbase = *hayespp;
bus_space_handle_t ioh;
int found;
- if (bus_space_map(iot, CONADDR, COM_NPORTS, &ioh)) {
+ if (bus_space_map(iot, CONADDR, COM_NPORTS, 0, &ioh)) {
cp->cn_pri = CN_DEAD;
return;
}
XXX NEEDS TO BE FIXED XXX
comconsiot = ???;
#endif
- if (bus_space_map(comconsiot, CONADDR, COM_NPORTS, &comconsioh))
+ if (bus_space_map(comconsiot, CONADDR, COM_NPORTS, 0, &comconsioh))
panic("comcninit: mapping failed");
cominit(comconsiot, comconsioh, comdefaultrate);