diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-23 12:40:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-23 12:40:23 +0000 |
commit | 7b22e6fc71c5d5a54afa2f9e24938f3f8baaf096 (patch) | |
tree | 12566d9f5f5fbca7b72b57d99b83c4f0d5712c82 /sys/arch | |
parent | 70e2f2dbc68d87992226948430a60a007e6705c8 (diff) |
Pick the correct host adapter id from nvram.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/mbus/sii_fwio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/vax/mbus/sii_fwio.c b/sys/arch/vax/mbus/sii_fwio.c index f1d329a2121..d961f3d10ca 100644 --- a/sys/arch/vax/mbus/sii_fwio.c +++ b/sys/arch/vax/mbus/sii_fwio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sii_fwio.c,v 1.1 2008/08/18 23:19:25 miod Exp $ */ +/* $OpenBSD: sii_fwio.c,v 1.2 2008/08/23 12:40:22 miod Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -21,6 +21,7 @@ #include <sys/device.h> #include <machine/bus.h> +#include <machine/cvax.h> #include <uvm/uvm_extern.h> @@ -113,7 +114,7 @@ sii_fwio_attach(struct device *parent, struct device *self, void *aux) /* * Complete attachment. */ - sc->sc_hostid = 7; /* hardcoded */ + sc->sc_hostid = *(uint8_t *)((vaddr_t)cvax_ssc_ptr + 0x4c0) & 07; sii_attach(sc); } |