Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/stand/netboot Try to detect Iomega Storce...



details:   https://anonhg.NetBSD.org/src/rev/618077520361
branches:  trunk
changeset: 760672:618077520361
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Jan 10 18:35:49 2011 +0000

description:
Try to detect Iomega Storcenter board (untested).

diffstat:

 sys/arch/sandpoint/stand/netboot/brdsetup.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (84 lines):

diff -r 393ae299d459 -r 618077520361 sys/arch/sandpoint/stand/netboot/brdsetup.c
--- a/sys/arch/sandpoint/stand/netboot/brdsetup.c       Mon Jan 10 17:17:36 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/brdsetup.c       Mon Jan 10 18:35:49 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index