summaryrefslogtreecommitdiff
path: root/include/asm-generic/agp.h
diff options
context:
space:
mode:
authorMike Rapoport <rppt@kernel.org>2023-02-12 10:46:11 +0200
committerArnd Bergmann <arnd@arndb.de>2023-02-13 22:13:29 +0100
commita13408c205260716e925a734ef399899d69182ba (patch)
tree559417021d3bb1dca09def9f5f5aa68cc51bdcc9 /include/asm-generic/agp.h
parent0e4f2c4567953a230b420f2c4460c3368d6509db (diff)
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) <rppt@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/asm-generic/agp.h')
-rw-r--r--include/asm-generic/agp.h11
1 files changed, 11 insertions, 0 deletions
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 <asm/io.h>
+
+#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 */