From 050e627abab21cffb1722a4c8d7efaa130908421 Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 23 Aug 2008 12:40:22 +0000 Subject: [PATCH] Pick the correct host adapter id from nvram. --- sys/arch/vax/mbus/sii_fwio.c | 5 +++-- 1 file 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 #include +#include #include @@ -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); } -- 2.20.1