Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips Add kttcp, sysmon and broadcom/sibyte devices.
details: https://anonhg.NetBSD.org/src/rev/2f803a032f19
branches: trunk
changeset: 534633:2f803a032f19
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Jul 31 03:42:54 2002 +0000
description:
Add kttcp, sysmon and broadcom/sibyte devices.
diffstat:
sys/arch/evbmips/alchemy/conf.c | 7 +++-
sys/arch/evbmips/evbmips/conf_common.c | 46 ++++++++++++++++++++++++++++++---
sys/arch/evbmips/malta/conf.c | 9 ++++--
3 files changed, 52 insertions(+), 10 deletions(-)
diffs (159 lines):
diff -r 411b92424db3 -r 2f803a032f19 sys/arch/evbmips/alchemy/conf.c
--- a/sys/arch/evbmips/alchemy/conf.c Wed Jul 31 03:18:04 2002 +0000
+++ b/sys/arch/evbmips/alchemy/conf.c Wed Jul 31 03:42:54 2002 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: conf.c,v 1.1 2002/07/29 16:22:56 simonb Exp $ */
+/* $NetBSD: conf.c,v 1.2 2002/07/31 03:42:54 simonb Exp $ */
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.1 2002/07/29 16:22:56 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.2 2002/07/31 03:42:54 simonb Exp $");
#undef CONF_HAVE_ISDN
#undef CONF_HAVE_PCI
@@ -11,6 +11,9 @@
#undef CONF_HAVE_WSCONS
#undef CONF_HAVE_SPKR
#undef CONF_HAVE_ISA /* XXX needs a better name */
+#undef CONF_HAVE_KTTCP
+#undef CONF_HAVE_SYSMON
#define CONF_HAVE_ALCHEMY
+#undef CONF_HAVE_SBMIPS
#include "arch/evbmips/evbmips/conf_common.c"
diff -r 411b92424db3 -r 2f803a032f19 sys/arch/evbmips/evbmips/conf_common.c
--- a/sys/arch/evbmips/evbmips/conf_common.c Wed Jul 31 03:18:04 2002 +0000
+++ b/sys/arch/evbmips/evbmips/conf_common.c Wed Jul 31 03:42:54 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf_common.c,v 1.1 2002/07/26 03:23:04 simonb Exp $ */
+/* $NetBSD: conf_common.c,v 1.2 2002/07/31 03:42:54 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: conf_common.c,v 1.1 2002/07/26 03:23:04 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf_common.c,v 1.2 2002/07/31 03:42:54 simonb Exp $");
#include "opt_systrace.h"
@@ -160,6 +160,18 @@
#define NSPKR 0
#endif
+#ifdef CONF_HAVE_KTTCP
+#include "kttcp.h"
+#else
+#define NKTTCP 0
+#endif
+
+#ifdef CONF_HAVE_SYSMON
+#include <dev/sysmon/sysmonconf.h>
+#else
+#define NSYSMON 0
+#endif
+
#ifdef CONF_HAVE_ISA /* XXX bad name */
#include "fdc.h"
#include "lpt.h"
@@ -178,6 +190,17 @@
#define NAUCOM 0
#endif
+#ifdef CONF_HAVE_SBMIPS
+#ifdef JTAGCONSOLE
+cdev_decl(sbjcn);
+#else
+#include "sbscn.h"
+cdev_decl(sbscn);
+#endif /* JTAGCONSOLE */
+#else
+#define NSBSCN 0
+#endif
+
#include "clockctl.h"
cdev_decl(clockctl);
#include "irframe.h"
@@ -251,6 +274,8 @@
#include <altq/altqconf.h>
cdev_decl(pci);
+cdev_decl(kttcp);
+cdev_decl(sysmon);
struct bdevsw bdevsw[] =
{
@@ -327,6 +352,8 @@
bdev_lkm_dummy(), /* 70 */
bdev_lkm_dummy(), /* 71 */
bdev_lkm_dummy(), /* 72 */
+ bdev_lkm_dummy(), /* 73 */
+ bdev_lkm_dummy(), /* 74 */
};
int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
@@ -349,7 +376,11 @@
cdev_ch_init(NCH,ch), /* 14: SCSI autochanger */
cdev_notdef(), /* 15 */
cdev_lkm_init(NLKM,lkm), /* 16: loadable module driver */
- cdev_lkm_dummy(), /* 17 */
+#ifdef JTAGCONSOLE
+ cdev_tty_init(1,sbjcn), /* 17: JTAG serial port */
+#else
+ cdev_tty_init(NSBSCN,sbscn), /* 17: sbscn serial port */
+#endif
cdev_lkm_dummy(), /* 18 */
cdev_lkm_dummy(), /* 19 */
cdev_lkm_dummy(), /* 20 */
@@ -409,8 +440,10 @@
#else
cdev_notdef(), /* 70: system call tracing */
#endif
- cdev__oci_init(NWSFONT, wsfont),/* 71: wsfont pseudo-device */
- cdev_tty_init(NAUCOM,aucom), /* 72: au1k UART */
+ cdev__oci_init(NKTTCP,kttcp), /* 71: kernel ttcp helper */
+ cdev__oci_init(NWSFONT, wsfont),/* 72: wsfont pseudo-device */
+ cdev_tty_init(NAUCOM,aucom), /* 73: au1k UART */
+ cdev_sysmon_init(NSYSMON, sysmon), /* 74: System Monitor */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@@ -522,6 +555,9 @@
/* 69 */ NODEV,
/* 70 */ NODEV,
/* 71 */ NODEV,
+ /* 72 */ NODEV,
+ /* 73 */ NODEV,
+ /* 74 */ NODEV,
};
/*
diff -r 411b92424db3 -r 2f803a032f19 sys/arch/evbmips/malta/conf.c
--- a/sys/arch/evbmips/malta/conf.c Wed Jul 31 03:18:04 2002 +0000
+++ b/sys/arch/evbmips/malta/conf.c Wed Jul 31 03:42:54 2002 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: conf.c,v 1.5 2002/07/26 03:23:05 simonb Exp $ */
+/* $NetBSD: conf.c,v 1.6 2002/07/31 03:42:55 simonb Exp $ */
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.5 2002/07/26 03:23:05 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.6 2002/07/31 03:42:55 simonb Exp $");
#define CONF_HAVE_ISDN
#define CONF_HAVE_PCI
@@ -10,7 +10,10 @@
#define CONF_HAVE_USB
#define CONF_HAVE_WSCONS
#define CONF_HAVE_SPKR
-#define CONF_HAVE_ISA /* XXX bad name */
+#define CONF_HAVE_ISA /* XXX needs a better name */
+#undef CONF_HAVE_KTTCP
+#undef CONF_HAVE_SYSMON
#undef CONF_HAVE_ALCHEMY
+#undef CONF_HAVE_SBMIPS
#include "arch/evbmips/evbmips/conf_common.c"
Home |
Main Index |
Thread Index |
Old Index