diff options
author | 2012-04-30 21:30:33 +0000 | |
---|---|---|
committer | 2012-04-30 21:30:33 +0000 | |
commit | af28f4c720aac14d202e3a5324936e9aaed48fb0 (patch) | |
tree | b22b67c599273d97431b1112292688b43aa0ac44 /sys/arch/sgi/hpc/hpc.c | |
parent | Correctly read board version information. (diff) | |
download | wireguard-openbsd-af28f4c720aac14d202e3a5324936e9aaed48fb0.tar.xz wireguard-openbsd-af28f4c720aac14d202e3a5324936e9aaed48fb0.zip |
Pass the base address of the hpc to child devices, to let them be able to
figure out whether they attach to the onboard hpc or to an expansion slot
(or the Challenge S IO+ mezzanine). No functional change (yet)
Diffstat (limited to 'sys/arch/sgi/hpc/hpc.c')
-rw-r--r-- | sys/arch/sgi/hpc/hpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sgi/hpc/hpc.c b/sys/arch/sgi/hpc/hpc.c index 62879b201cc..3dcdd2e9c2c 100644 --- a/sys/arch/sgi/hpc/hpc.c +++ b/sys/arch/sgi/hpc/hpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpc.c,v 1.9 2012/04/17 15:22:02 miod Exp $ */ +/* $OpenBSD: hpc.c,v 1.10 2012/04/30 21:30:33 miod Exp $ */ /* $NetBSD: hpc.c,v 1.66 2011/07/01 18:53:46 dyoung Exp $ */ /* $NetBSD: ioc.c,v 1.9 2011/07/01 18:53:47 dyoung Exp $ */ @@ -613,6 +613,7 @@ hpc_attach(struct device *parent, struct device *self, void *aux) continue; ha.ha_name = hd->hd_name; + ha.ha_base = hd->hd_base; ha.ha_devoff = hd->hd_devoff; ha.ha_dmaoff = hd->hd_dmaoff; /* @@ -666,6 +667,7 @@ hpc_attach(struct device *parent, struct device *self, void *aux) ha.ha_name = "dsclock"; ha.ha_devoff = HPC3_PBUS_BBRAM; } + ha.ha_base = sc->sc_base; ha.ha_dmaoff = 0; ha.ha_irq = -1; ha.ha_st = sc->sc_ct; |