Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/alpha/include Pull up 1.29 -> 1.31. (Console ...



details:   https://anonhg.NetBSD.org/src/rev/1dc919c75cb8
branches:  netbsd-1-4
changeset: 468297:1dc919c75cb8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Apr 16 23:07:53 1999 +0000

description:
Pull up 1.29 -> 1.31.  (Console Terminal Block `turboslot' definitions.)

diffstat:

 sys/arch/alpha/include/rpb.h |  19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r dc99997610e0 -r 1dc919c75cb8 sys/arch/alpha/include/rpb.h
--- a/sys/arch/alpha/include/rpb.h      Fri Apr 16 22:05:49 1999 +0000
+++ b/sys/arch/alpha/include/rpb.h      Fri Apr 16 23:07:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpb.h,v 1.29 1999/03/17 18:58:51 drochner Exp $ */
+/* $NetBSD: rpb.h,v 1.29.2.1 1999/04/16 23:07:53 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -368,6 +368,23 @@
        u_int8_t        ctb_csd;                /* 272: console specific data */
 };
 
+/*
+ * Format of the Console Terminal Block Type 4 `turboslot' field:
+ *
+ *  63                   40 39       32 31     24 23      16 15   8 7    0
+ *  |      reserved        |  channel  |  hose   | bus type |  bus | slot|
+ */
+#define        CTB_TURBOSLOT_CHANNEL(x)        (((x) >> 32) & 0xff)
+#define        CTB_TURBOSLOT_HOSE(x)           (((x) >> 24) & 0xff)
+#define        CTB_TURBOSLOT_TYPE(x)           (((x) >> 16) & 0xff)
+#define        CTB_TURBOSLOT_BUS(x)            (((x) >> 8) & 0xff)
+#define        CTB_TURBOSLOT_SLOT(x)           ((x) & 0xff)
+
+#define        CTB_TURBOSLOT_TYPE_TC           0       /* TURBOchannel */
+#define        CTB_TURBOSLOT_TYPE_ISA          1       /* ISA */
+#define        CTB_TURBOSLOT_TYPE_EISA         2       /* EISA */
+#define        CTB_TURBOSLOT_TYPE_PCI          3       /* PCI */
+
 /* 
  * CRD: Console Routine Descriptor
  */



Home | Main Index | Thread Index | Old Index