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/sparc64/include Pull up revision 1.4 (requeste...



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

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

diffstat:

 sys/arch/sparc64/include/bsd_openprom.h |  38 +++++++++++++++++++++++++++-----
 1 files changed, 32 insertions(+), 6 deletions(-)

diffs (59 lines):

diff -r bbaa648e09b1 -r 08ec8cc0c690 sys/arch/sparc64/include/bsd_openprom.h
--- a/sys/arch/sparc64/include/bsd_openprom.h   Fri Nov 22 22:30:31 2002 +0000
+++ b/sys/arch/sparc64/include/bsd_openprom.h   Fri Nov 22 22:30:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsd_openprom.h,v 1.3 2001/12/04 00:53:19 darrenr Exp $ */
+/*     $NetBSD: bsd_openprom.h,v 1.3.10.1 2002/11/22 22:30:50 tron Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -179,6 +179,37 @@
 };
 
 /*
+ * 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) */
+       u_int   oa_base;                /* address within space */
+       u_int   oa_size;                /* extent (number of bytes) */
+};
+
+/*
+ * 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.
@@ -298,11 +329,6 @@
  * are not in the openprom vectors but rather found by indirection from
  * there.  So the taste balances out.
  */
-struct openprom_addr {
-       int     oa_space;               /* address space (may be relative) */
-       u_int   oa_base;                /* address within space */
-       u_int   oa_size;                /* extent (number of bytes) */
-};
 
 struct nodeops {
        /*



Home | Main Index | Thread Index | Old Index