Module Name: src Committed By: jmcneill Date: Wed Sep 8 11:02:05 UTC 2021
Modified Files: src/sys/arch/arm/arm: bus_stubs.c Log Message: Consider two tags equal if they share the same cookie. For fdtbus, we may have different tags to deal with mapping attributes and CPU vs bus address translation, but otherwise represent the same bus space. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/arm/bus_stubs.c 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/arm/arm/bus_stubs.c diff -u src/sys/arch/arm/arm/bus_stubs.c:1.1 src/sys/arch/arm/arm/bus_stubs.c:1.2 --- src/sys/arch/arm/arm/bus_stubs.c:1.1 Mon Apr 13 07:09:51 2020 +++ src/sys/arch/arm/arm/bus_stubs.c Wed Sep 8 11:02:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: bus_stubs.c,v 1.1 2020/04/13 07:09:51 maxv Exp $ */ +/* $NetBSD: bus_stubs.c,v 1.2 2021/09/08 11:02:05 jmcneill Exp $ */ /* * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -30,13 +30,18 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bus_stubs.c,v 1.1 2020/04/13 07:09:51 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_stubs.c,v 1.2 2021/09/08 11:02:05 jmcneill Exp $"); #include <sys/systm.h> #include <sys/asan.h> +#include <sys/bus.h> +#include <sys/bus_proto.h> -#include <machine/bus_defs.h> -#include <machine/bus_funcs.h> +bool +bus_space_is_equal(bus_space_tag_t t1, bus_space_tag_t t2) +{ + return t1->bs_cookie == t2->bs_cookie; +} int bus_dmamap_create(bus_dma_tag_t t, bus_size_t size, int nsegments,