Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/include Provide a bus_space_mmap that always ...



details:   https://anonhg.NetBSD.org/src/rev/d7d46011c4bb
branches:  trunk
changeset: 960065:d7d46011c4bb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 07 10:01:08 2021 +0000

description:
Provide a bus_space_mmap that always fails.  Nothing uses it yet, but it
will be very soon.

OK tsutsui@

diffstat:

 sys/arch/hp300/include/bus.h |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 1c55f87c8058 -r d7d46011c4bb sys/arch/hp300/include/bus.h
--- a/sys/arch/hp300/include/bus.h      Sun Mar 07 10:01:03 2021 +0000
+++ b/sys/arch/hp300/include/bus.h      Sun Mar 07 10:01:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.21 2021/01/23 19:38:07 christos Exp $        */
+/*     $NetBSD: bus.h,v 1.22 2021/03/07 10:01:08 skrll Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -167,6 +167,20 @@
 void   bus_space_unmap(bus_space_tag_t, bus_space_handle_t, bus_size_t);
 
 /*
+ *     paddr_t bus_space_mmap(bus_space_tag_t t,
+ *         bus_addr_t addr, off_t off, int prot, int flags);
+ *
+ * Provide a cookie for pmap_phys_address/pmap_mmap_flags for bus_space address at
+ * addr + offset and flags.
+ */
+static __inline paddr_t
+bus_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off, int prot, int flags)
+{
+       /* Always fail for now */
+       return -1;
+}
+
+/*
  *     int bus_space_subregion(bus_space_tag_t t,
  *         bus_space_handle_t bsh, bus_size_t offset, bus_size_t size,
  *         bus_space_handle_t *nbshp);



Home | Main Index | Thread Index | Old Index