-/* $OpenBSD: if_sn_nubus.c,v 1.8 1997/04/13 16:44:01 briggs Exp $ */
+/* $OpenBSD: if_sn_nubus.c,v 1.9 1997/04/14 00:45:41 briggs Exp $ */
/*
* Copyright (C) 1997 Allen Briggs
{
struct sn_softc *sc = (void *)self;
struct nubus_attach_args *na = (struct nubus_attach_args *)aux;
- int i, success;
+ int i, success, offset;
bus_space_tag_t bst;
bus_space_handle_t bsh, tmp_bsh;
sn_get_enaddr(bst, tmp_bsh, 0, sc->sc_arpcom.ac_enaddr);
+ offset = 2;
success = 1;
break;
sn_get_enaddr(bst, tmp_bsh, 0, sc->sc_arpcom.ac_enaddr);
+ offset = 0;
success = 1;
break;
snsetup(sc);
/* Regs are addressed as words, big endian. */
for (i = 0; i < SN_NREGS; i++) {
- sc->sc_reg_map[i] = (bus_size_t)((i * 4) + 2);
+ sc->sc_reg_map[i] = (bus_size_t)((i * 4) + offset);
}
/* snsetup returns 1 if something fails */