Module Name: src Committed By: skrll Date: Sun Mar 7 10:01:09 UTC 2021
Modified Files: src/sys/arch/hp300/include: bus.h Log Message: Provide a bus_space_mmap that always fails. Nothing uses it yet, but it will be very soon. OK tsutsui@ To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/hp300/include/bus.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hp300/include/bus.h diff -u src/sys/arch/hp300/include/bus.h:1.21 src/sys/arch/hp300/include/bus.h:1.22 --- src/sys/arch/hp300/include/bus.h:1.21 Sat Jan 23 19:38:07 2021 +++ src/sys/arch/hp300/include/bus.h Sun Mar 7 10:01:08 2021 @@ -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 @@ int bus_space_map(bus_space_tag_t, bus_a 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);