Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/sparc64/sparc64 Pull up revision 1.97 (request...



details:   https://anonhg.NetBSD.org/src/rev/46d1b3fbdfb0
branches:  netbsd-1-5
changeset: 491758:46d1b3fbdfb0
user:      he <he%NetBSD.org@localhost>
date:      Tue May 15 22:04:56 2001 +0000

description:
Pull up revision 1.97 (requested by martin):
  Implement bus_space_subregion(), makes pciide work.

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 125ebae24b24 -r 46d1b3fbdfb0 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Tue May 15 21:56:12 2001 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Tue May 15 22:04:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.68.2.7 2000/10/18 16:31:32 tv Exp $ */
+/*     $NetBSD: machdep.c,v 1.68.2.8 2001/05/15 22:04:56 he Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1550,6 +1550,9 @@
                                    bus_space_handle_t *));
 static int     sparc_bus_unmap __P((bus_space_tag_t, bus_space_handle_t,
                                     bus_size_t));
+static int     sparc_bus_subregion __P((bus_space_tag_t, bus_space_handle_t,
+                                        bus_size_t, bus_size_t,
+                                        bus_space_handle_t *));
 static int     sparc_bus_mmap __P((bus_space_tag_t, bus_type_t,
                                    bus_addr_t, int, bus_space_handle_t *));
 static void    *sparc_mainbus_intr_establish __P((bus_space_tag_t, int, int,
@@ -1642,6 +1645,18 @@
 }
 
 int
+sparc_bus_subregion(tag, handle, offset, size, nhandlep)
+       bus_space_tag_t         tag;
+       bus_space_handle_t      handle;
+       bus_size_t              offset;
+       bus_size_t              size;
+       bus_space_handle_t      *nhandlep;
+{
+       *nhandlep = handle + offset;
+       return (0);
+}
+
+int
 sparc_bus_unmap(t, bh, size)
        bus_space_tag_t t;
        bus_size_t      size;
@@ -1748,7 +1763,7 @@
        UPA_BUS_SPACE,                  /* type */
        sparc_bus_map,                  /* bus_space_map */
        sparc_bus_unmap,                /* bus_space_unmap */
-       NULL,                           /* bus_space_subregion */
+       sparc_bus_subregion,            /* bus_space_subregion */
        sparc_bus_barrier,              /* bus_space_barrier */
        sparc_bus_mmap,                 /* bus_space_mmap */
        sparc_mainbus_intr_establish    /* bus_intr_establish */



Home | Main Index | Thread Index | Old Index