Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/sparc/include Pull up revision 1.18 (requested...



details:   https://anonhg.NetBSD.org/src/rev/bbaa648e09b1
branches:  netbsd-1-6
changeset: 529465:bbaa648e09b1
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Nov 22 22:30:31 2002 +0000

description:
Pull up revision 1.18 (requested by martin in ticket #948):
* Refine the comment describing openprom_addr.
* Add openprom_range and openprom_intr structures.

diffstat:

 sys/arch/sparc/include/bsd_openprom.h |  26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 9ebccc0d9a94 -r bbaa648e09b1 sys/arch/sparc/include/bsd_openprom.h
--- a/sys/arch/sparc/include/bsd_openprom.h     Fri Nov 22 17:55:56 2002 +0000
+++ b/sys/arch/sparc/include/bsd_openprom.h     Fri Nov 22 22:30:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsd_openprom.h,v 1.17 2000/11/15 16:12:01 pk Exp $ */
+/*     $NetBSD: bsd_openprom.h,v 1.17.18.1 2002/11/22 22:30:31 tron Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -178,7 +178,8 @@
 };
 
 /*
- * The format used by the PROM to describe a physical address.
+ * The format used by the PROM to describe a physical address.  These
+ * are typically found in a "reg" property.
  */
 struct openprom_addr {
        int     oa_space;               /* address space (may be relative) */
@@ -187,6 +188,27 @@
 };
 
 /*
+ * The format used by the PROM to describe an address space window.  These
+ * are typically found in a "range" property.
+ */
+struct openprom_range {
+       int     or_child_space;         /* address space of child */
+       u_int   or_child_base;          /* offset in child's view of bus */
+       int     or_parent_space;        /* address space of parent */
+       u_int   or_parent_base;         /* offset in parent's view of bus */
+       u_int   or_size;                /* extent (number of bytes) */
+};
+
+/*
+ * The format used by the PROM to describe an interrupt.  These are
+ * typically found in an "intr" property.
+ */
+struct openprom_intr {
+       int     oi_pri;                 /* interrupt priority */
+       int     oi_vec;                 /* interrupt vector */
+};
+
+/*
  * The following structure defines the primary PROM vector interface.
  * The Boot PROM hands the kernel a pointer to this structure in %o0.
  * There are numerous substructures defined below.



Home | Main Index | Thread Index | Old Index