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 Support for IOMEGA Storcent...
details: https://anonhg.NetBSD.org/src/rev/0347c8acc78d
branches: trunk
changeset: 754695:0347c8acc78d
user: phx <phx%NetBSD.org@localhost>
date: Sat May 08 19:41:07 2010 +0000
description:
Support for IOMEGA Storcenter, by Toru Nishimura.
Kurobox console is 57600.
diffstat:
sys/arch/sandpoint/stand/netboot/brdsetup.c | 12 ++++++++++--
sys/arch/sandpoint/stand/netboot/globals.h | 3 ++-
sys/arch/sandpoint/stand/netboot/main.c | 4 +++-
3 files changed, 15 insertions(+), 4 deletions(-)
diffs (75 lines):
diff -r 0dab16af83e1 -r 0347c8acc78d sys/arch/sandpoint/stand/netboot/brdsetup.c
--- a/sys/arch/sandpoint/stand/netboot/brdsetup.c Sat May 08 18:48:44 2010 +0000
+++ b/sys/arch/sandpoint/stand/netboot/brdsetup.c Sat May 08 19:41:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brdsetup.c,v 1.10 2010/05/08 14:40:08 phx Exp $ */
+/* $NetBSD: brdsetup.c,v 1.11 2010/05/08 19:41:07 phx Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -150,7 +150,7 @@
brdtype = BRD_KUROBOX;
consname = "eumb";
consport = 0x4600;
- consspeed = 115200;
+ consspeed = 57600;
}
else if (PCI_VENDOR(pcicfgread(pcimaketag(0, 15, 0), PCI_ID_REG)) ==
0x11ab) { /* PCI_VENDOR_MARVELL */
@@ -166,6 +166,13 @@
consport = 0x4600;
consspeed = 115200;
}
+ else if (PCI_VENDOR(pcicfgread(pcimaketag(0, 15, 0), PCI_ID_REG)) ==
+ 0x10ec) { /* PCI_VENDOR_REALTEK */
+ brdtype = BRD_STORCENTER;
+ consname = "eumb";
+ consport = 0x4600;
+ consspeed = 115200;
+ }
/* determine clock frequencies */
if (busclock == 0) {
@@ -205,6 +212,7 @@
send_sat("247");
break;
case BRD_QNAPTS101:
+ case BRD_STORCENTER:
init_uart(uart2base, 9600, LCR_8BITS | LCR_PNONE);
break;
}
diff -r 0dab16af83e1 -r 0347c8acc78d sys/arch/sandpoint/stand/netboot/globals.h
--- a/sys/arch/sandpoint/stand/netboot/globals.h Sat May 08 18:48:44 2010 +0000
+++ b/sys/arch/sandpoint/stand/netboot/globals.h Sat May 08 19:41:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: globals.h,v 1.13 2010/05/08 14:40:08 phx Exp $ */
+/* $NetBSD: globals.h,v 1.14 2010/05/08 19:41:07 phx Exp $ */
/* clock feed */
#ifndef EXT_CLK_FREQ
@@ -13,6 +13,7 @@
#define BRD_KUROBOX 100
#define BRD_QNAPTS101 101
#define BRD_SYNOLOGY 102
+#define BRD_STORCENTER 103
#define BRD_UNKNOWN -1
extern char *consname;
diff -r 0dab16af83e1 -r 0347c8acc78d sys/arch/sandpoint/stand/netboot/main.c
--- a/sys/arch/sandpoint/stand/netboot/main.c Sat May 08 18:48:44 2010 +0000
+++ b/sys/arch/sandpoint/stand/netboot/main.c Sat May 08 19:41:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.26 2010/05/08 15:26:54 phx Exp $ */
+/* $NetBSD: main.c,v 1.27 2010/05/08 19:41:07 phx Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -91,6 +91,8 @@
printf("Kuro Box"); break;
case BRD_SYNOLOGY:
printf("Synology DS"); break;
+ case BRD_STORCENTER:
+ printf("IOMEGA StorCenter"); break;
default:
printf("Unknown board"); break;
}
Home |
Main Index |
Thread Index |
Old Index