Module Name: src
Committed By: phx
Date: Mon Jan 10 18:35:50 UTC 2011
Modified Files:
src/sys/arch/sandpoint/stand/netboot: brdsetup.c
Log Message:
Try to detect Iomega Storcenter board (untested).
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/sandpoint/stand/netboot/brdsetup.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sandpoint/stand/netboot/brdsetup.c
diff -u src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.21 src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.22
--- src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.21 Sat Jun 26 21:45:49 2010
+++ src/sys/arch/sandpoint/stand/netboot/brdsetup.c Mon Jan 10 18:35:49 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: brdsetup.c,v 1.21 2010/06/26 21:45:49 phx Exp $ */
+/* $NetBSD: brdsetup.c,v 1.22 2011/01/10 18:35:49 phx Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -200,6 +200,10 @@
0x8086) { /* PCI_VENDOR_INTEL */
brdtype = BRD_QNAPTS101;
}
+ else if (PCI_VENDOR(pcicfgread(pcimaketag(0, 13, 0), PCI_ID_REG)) ==
+ 0x1106) { /* PCI_VENDOR_VIA */
+ brdtype = BRD_STORCENTER;
+ }
brdprop = brd_lookup(brdtype);
@@ -261,6 +265,7 @@
static void
setup()
{
+
if (brdprop->setup == NULL)
return;
(*brdprop->setup)(brdprop);
@@ -269,6 +274,7 @@
static void
brdfixup()
{
+
if (brdprop->brdfix == NULL)
return;
(*brdprop->brdfix)(brdprop);
@@ -277,6 +283,7 @@
void
pcifixup()
{
+
if (brdprop->pcifix == NULL)
return;
(*brdprop->pcifix)(brdprop);
@@ -285,6 +292,7 @@
void
encsetup(struct brdprop *brd)
{
+
#ifdef COSNAME
brd->consname = CONSNAME;
#endif
@@ -358,6 +366,7 @@
void
motsetup(struct brdprop *brd)
{
+
#ifdef COSNAME
brd->consname = CONSNAME;
#endif
@@ -372,6 +381,7 @@
void
motbrdfix(struct brdprop *brd)
{
+
/*
* WinBond/Symphony Lab 83C553 with PC87308 "SuperIO"
*
@@ -638,6 +648,7 @@
void
synosetup(struct brdprop *brd)
{
+
/* nothing */
}
@@ -723,6 +734,7 @@
void
_rtt(void)
{
+
if (brdprop->reset != NULL)
(*brdprop->reset)();
else