diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-05-23 18:07:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-05-23 18:07:20 +0000 |
commit | c51e18a2162a808d87b155cc59b2815d28544d48 (patch) | |
tree | ee4fd84fc1c52007eba0cf2481e4e30ce3a619eb /sys/arch/hppa/dev | |
parent | 1da46f5617e998a3acb6e018b059afce970f05c6 (diff) |
Add proper bus_space_vaddr() implementation.
ok miod@
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r-- | sys/arch/hppa/dev/dino.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/dev/elroy.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c index 8bae9d1d76e..639fe3da2c4 100644 --- a/sys/arch/hppa/dev/dino.c +++ b/sys/arch/hppa/dev/dino.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dino.c,v 1.21 2007/05/18 16:00:17 kettenis Exp $ */ +/* $OpenBSD: dino.c,v 1.22 2007/05/23 18:07:19 kettenis Exp $ */ /* * Copyright (c) 2003-2005 Michael Shalayeff @@ -1475,7 +1475,7 @@ const struct hppa_bus_space_tag dino_iomemt = { NULL, NULL, dino_unmap, dino_subregion, NULL, dino_free, - dino_barrier, + dino_barrier, NULL, dino_r1, dino_r2, dino_r4, dino_r8, dino_w1, dino_w2, dino_w4, dino_w8, dino_rm_1, dino_rm_2, dino_rm_4, dino_rm_8, diff --git a/sys/arch/hppa/dev/elroy.c b/sys/arch/hppa/dev/elroy.c index 94dc261df6b..2004b85c629 100644 --- a/sys/arch/hppa/dev/elroy.c +++ b/sys/arch/hppa/dev/elroy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elroy.c,v 1.1 2007/05/21 22:43:38 kettenis Exp $ */ +/* $OpenBSD: elroy.c,v 1.2 2007/05/23 18:07:19 kettenis Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -905,7 +905,7 @@ const struct hppa_bus_space_tag elroy_iomemt = { NULL, NULL, elroy_unmap, elroy_subregion, NULL, elroy_free, - elroy_barrier, + elroy_barrier, NULL, elroy_r1, elroy_r2, elroy_r4, elroy_r8, elroy_w1, elroy_w2, elroy_w4, elroy_w8, elroy_rm_1, elroy_rm_2, elroy_rm_4, elroy_rm_8, @@ -1088,7 +1088,7 @@ elroy_attach(struct device *parent, struct device *self, void *aux) return; } - sc->sc_regs = r = (void *)bus_space_vaddr(sc->sc_bt, sc->sc_bh); + sc->sc_regs = r = bus_space_vaddr(sc->sc_bt, sc->sc_bh); elroy_write32(&r->pci_cmdstat, htole32(PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE | PCI_COMMAND_MASTER_ENABLE)); |