Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Add support for attaching "com" serial ...



details:   https://anonhg.NetBSD.org/src/rev/2579825a47b3
branches:  trunk
changeset: 508785:2579825a47b3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 19 18:25:26 2001 +0000

description:
Add support for attaching "com" serial ports as KGDB devices.

diffstat:

 sys/arch/alpha/alpha/api_up1000.c     |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_1000a.c      |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_2000_300.c   |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_2100_a50.c   |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_2100_a500.c  |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_550.c        |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_6600.c       |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_alphabook1.c |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_axppci_33.c  |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_eb164.c      |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_eb64plus.c   |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_eb66.c       |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_kn20aa.c     |  17 +++++++++++++++--
 sys/arch/alpha/alpha/dec_kn300.c      |  17 +++++++++++++++--
 14 files changed, 210 insertions(+), 28 deletions(-)

diffs (truncated from 630 to 300 lines):

diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/api_up1000.c
--- a/sys/arch/alpha/alpha/api_up1000.c Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/api_up1000.c Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: api_up1000.c,v 1.4 2000/06/20 03:48:53 matt Exp $ */
+/* $NetBSD: api_up1000.c,v 1.5 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.4 2000/06/20 03:48:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.5 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -77,6 +77,15 @@
 static void api_up1000_cons_init __P((void));
 static void api_up1000_device_register __P((struct device *, void *));
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 void
 api_up1000_init()
 {
@@ -151,6 +160,10 @@
                panic("consinit: unknown console type %ld\n",
                    ctb->ctb_term_type);
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, &icp->ic_iot);
+#endif /* KGDB */
 }
 
 static void
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_1000a.c
--- a/sys/arch/alpha/alpha/dec_1000a.c  Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_1000a.c  Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_1000a.c,v 1.10 2001/04/19 18:02:57 thorpej Exp $ */
+/* $NetBSD: dec_1000a.c,v 1.11 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.10 2001/04/19 18:02:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.11 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,6 +113,15 @@
 static void dec_1000a_cons_init __P((void));
 static void dec_1000a_device_register __P((struct device *, void *));
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 static const struct alpha_variation_table dec_1000_variations[] = {
        { 0, "AlphaServer 1000" },
        { 0, NULL },
@@ -232,6 +241,10 @@
                panic("consinit: unknown console type %ld\n",
                    ctb->ctb_term_type);
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, iot);
+#endif /* KGDB */
 }
 
 static void
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_2000_300.c
--- a/sys/arch/alpha/alpha/dec_2000_300.c       Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_2000_300.c       Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_2000_300.c,v 1.1 2000/07/12 20:36:07 thorpej Exp $ */
+/* $NetBSD: dec_2000_300.c,v 1.2 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_2000_300.c,v 1.1 2000/07/12 20:36:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_2000_300.c,v 1.2 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -97,6 +97,15 @@
 static void dec_2000_300_cons_init(void);
 static void dec_2000_300_device_register(struct device *, void *);
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 void
 dec_2000_300_init(void)
 {
@@ -175,6 +184,10 @@
        default:
                goto badconsole;
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, &jcp->jc_internal_iot);
+#endif /* KGDB */
 
        return;
  badconsole:
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_2100_a50.c
--- a/sys/arch/alpha/alpha/dec_2100_a50.c       Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_2100_a50.c       Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_2100_a50.c,v 1.45 2001/03/25 05:52:39 nathanw Exp $ */
+/* $NetBSD: dec_2100_a50.c,v 1.46 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@@ -31,7 +31,7 @@
  */
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.45 2001/03/25 05:52:39 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.46 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -81,6 +81,15 @@
                                     unsigned long, struct trapframe *));
 
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 const struct alpha_variation_table dec_2100_a50_variations[] = {
        { SV_ST_AVANTI, "AlphaStation 400 4/233 (\"Avanti\")" },
        { SV_ST_MUSTANG2_4_166, "AlphaStation 200 4/166 (\"Mustang II\")" },
@@ -174,6 +183,10 @@
                panic("consinit: unknown console type %ld\n",
                    ctb->ctb_term_type);
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, &acp->ac_iot);
+#endif /* KGDB */
 }
 
 static void
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_2100_a500.c
--- a/sys/arch/alpha/alpha/dec_2100_a500.c      Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_2100_a500.c      Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_2100_a500.c,v 1.1 2000/12/21 20:51:53 thorpej Exp $ */
+/* $NetBSD: dec_2100_a500.c,v 1.2 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_2100_a500.c,v 1.1 2000/12/21 20:51:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_2100_a500.c,v 1.2 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -109,6 +109,15 @@
 static void dec_2100_a500_machine_check(unsigned long, struct trapframe *,
        unsigned long, unsigned long);
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 void
 _dec_2100_a500_init(void)
 {
@@ -220,6 +229,10 @@
                panic("consinit: unknown console type %ld\n",
                    ctb->ctb_term_type);
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, &tcp->tc_iot);
+#endif /* KGDB */
 }
 
 static void
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_550.c
--- a/sys/arch/alpha/alpha/dec_550.c    Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_550.c    Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_550.c,v 1.10 2000/06/20 03:48:53 matt Exp $ */
+/* $NetBSD: dec_550.c,v 1.11 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.10 2000/06/20 03:48:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.11 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -80,6 +80,15 @@
 static void dec_550_device_register __P((struct device *, void *));
 static void dec_550_powerdown __P((void));
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */
+
 void
 dec_550_init()
 {
@@ -155,6 +164,10 @@
                panic("consinit: unknown console type %ld\n",
                    ctb->ctb_term_type);
        }
+#ifdef KGDB
+       /* Attach the KGDB device. */
+       alpha_kgdb_init(kgdb_devlist, &ccp->cc_iot);
+#endif /* KGDB */
 }
 
 static void
diff -r 67ac41f76998 -r 2579825a47b3 sys/arch/alpha/alpha/dec_6600.c
--- a/sys/arch/alpha/alpha/dec_6600.c   Thu Apr 19 18:24:16 2001 +0000
+++ b/sys/arch/alpha/alpha/dec_6600.c   Thu Apr 19 18:25:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_6600.c,v 1.8 2000/06/25 19:17:39 thorpej Exp $ */
+/* $NetBSD: dec_6600.c,v 1.9 2001/04/19 18:25:26 thorpej Exp $ */
 
 /*
  * Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.8 2000/06/25 19:17:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.9 2001/04/19 18:25:26 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -74,6 +74,15 @@
 static void dec_6600_cons_init __P((void));
 static void dec_6600_device_register __P((struct device *, void *));
 
+#ifdef KGDB
+#include <machine/db_machdep.h>
+
+static const char *kgdb_devlist[] = {
+       "com",
+       NULL,
+};
+#endif /* KGDB */



Home | Main Index | Thread Index | Old Index