Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/include Add macros to decode the `turboslot' ...



details:   https://anonhg.NetBSD.org/src/rev/fca6ba6f4f59
branches:  trunk
changeset: 471912:fca6ba6f4f59
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Apr 14 23:28:31 1999 +0000

description:
Add macros to decode the `turboslot' member of the Console Terminal Block.

diffstat:

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

diffs (33 lines):

diff -r 98d1f203912b -r fca6ba6f4f59 sys/arch/alpha/include/rpb.h
--- a/sys/arch/alpha/include/rpb.h      Wed Apr 14 23:14:45 1999 +0000
+++ b/sys/arch/alpha/include/rpb.h      Wed Apr 14 23:28:31 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.30 1999/04/14 23:28:31 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_BUS_TC            0       /* TURBOchannel */
+#define        CTB_TURBOSLOT_BUS_ISA           1       /* ISA */
+#define        CTB_TURBOSLOT_BUS_EISA          2       /* EISA */
+#define        CTB_TURBOSLOT_BUS_PCI           3       /* PCI */
+
 /* 
  * CRD: Console Routine Descriptor
  */



Home | Main Index | Thread Index | Old Index