with these two, POWEROFSEVEN now compiles cleanly.

This commit is contained in:
mrg 2000-04-08 15:15:41 +00:00
parent 909b096cf8
commit e2ed27832e
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iommu.c,v 1.5 2000/04/05 14:26:51 mrg Exp $ */
/* $NetBSD: iommu.c,v 1.6 2000/04/08 15:15:41 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -207,7 +207,7 @@ iommu_reset(is)
bus_space_write_8(is->is_bustag, &is->is_sb->strbuf_ctl, 0, STRBUF_EN);
/* No streaming buffers? Disable them */
if (bus_space_read_8(is->is_bustag, &is->is_sb->strbuf_ctl, 0) == 0)
if (bus_space_read_8(is->is_bustag, (bus_space_handle_t)(u_long)&is->is_sb->strbuf_ctl, 0) == 0)
is->is_sb = 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: psycho.c,v 1.3 2000/04/08 03:08:20 mrg Exp $ */
/* $NetBSD: psycho.c,v 1.4 2000/04/08 15:15:41 mrg Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@ -217,7 +217,7 @@ sabre_init(sc, pba)
printf("sabre: ");
/* setup the PCI control register; there is only one for the sabre */
csr = bus_space_read_8(sc->sc_bustag, &sc->sc_regs->psy_pcictl[0].pci_csr, 0);
csr = bus_space_read_8(sc->sc_bustag, (bus_space_handle_t)(u_long)&sc->sc_regs->psy_pcictl[0].pci_csr, 0);
csr = PCICTL_SERR | PCICTL_ARB_PARK | PCICTL_ERRINTEN | PCICTL_4ENABLE;
bus_space_write_8(sc->sc_bustag, &sc->sc_regs->psy_pcictl[0].pci_csr, 0, csr);