-/* $OpenBSD: if_bge.c,v 1.239 2008/08/24 16:30:18 deraadt Exp $ */
+/* $OpenBSD: if_bge.c,v 1.240 2008/08/24 20:24:43 deraadt Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
#endif
#ifdef __sparc64__
+#include <sparc64/autoconf.h>
#include <dev/ofw/openfirm.h>
#endif
struct ifnet *ifp;
caddr_t kva;
#ifdef __sparc64__
+ char namebuf[32];
int subvendor;
#endif
if (subvendor == PCI_VENDOR_SUN)
sc->bge_flags |= BGE_NO_EEPROM;
}
+ if (OF_getprop(findroot(), "name", namebuf, sizeof(namebuf)) > 0 &&
+ strcmp(namebuf, "TAD,Viper") == 0)
+ sc->bge_flags |= BGE_NO_EEPROM;
#endif
/*