-/* $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.
#include <sys/device.h>
#include <machine/bus.h>
+#include <machine/cvax.h>
#include <uvm/uvm_extern.h>
/*
* Complete attachment.
*/
- sc->sc_hostid = 7; /* hardcoded */
+ sc->sc_hostid = *(uint8_t *)((vaddr_t)cvax_ssc_ptr + 0x4c0) & 07;
sii_attach(sc);
}