From a13408c205260716e925a734ef399899d69182ba Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Sun, 12 Feb 2023 10:46:11 +0200 Subject: char/agp: introduce asm-generic/agp.h There are several architectures that duplicate definitions of map_page_into_agp(), unmap_page_from_agp() and flush_agp_cache(). Define those in asm-generic/agp.h and use it instead of duplicated per-architecture headers. Signed-off-by: Mike Rapoport (IBM) Signed-off-by: Arnd Bergmann --- include/asm-generic/agp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/asm-generic/agp.h (limited to 'include/asm-generic/agp.h') diff --git a/include/asm-generic/agp.h b/include/asm-generic/agp.h new file mode 100644 index 000000000000..10db92ede168 --- /dev/null +++ b/include/asm-generic/agp.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_GENERIC_AGP_H +#define _ASM_GENERIC_AGP_H + +#include + +#define map_page_into_agp(page) do {} while (0) +#define unmap_page_from_agp(page) do {} while (0) +#define flush_agp_cache() mb() + +#endif /* _ASM_GENERIC_AGP_H */ -- cgit