-/* $OpenBSD: elroy.c,v 1.7 2010/05/24 15:06:03 deraadt Exp $ */
+/* $OpenBSD: elroy.c,v 1.8 2010/07/24 19:34:54 kettenis Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
/* volatile struct elroy_regs *r = sc->sc_regs; */
int error;
+ /* Convert 32-bit PCI address to a 64-bit address. */
+ bpa |= (HPPA_IOBEGIN | 0xff00000000UL);
+
if ((error = bus_space_map(sc->sc_bt, bpa + sc->sc_iobase, size,
flags, bshp)))
return (error);
/* volatile struct elroy_regs *r = sc->sc_regs; */
int error;
+ /* Convert 32-bit PCI address to a 64-bit address. */
+ bpa |= (HPPA_IOBEGIN | 0xff00000000UL);
+
if ((error = bus_space_map(sc->sc_bt, bpa, size, flags, bshp)))
return (error);
#endif
/* XXX evil hack! */
- sc->sc_iobase = 0xfffee00000;
+ sc->sc_iobase = 0xfee00000;
sc->sc_iot = elroy_iomemt;
sc->sc_iot.hbt_cookie = sc;