18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_AGP_H
38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_AGP_H
48c2ecf20Sopenharmony_ci#ifdef __KERNEL__
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <asm/io.h>
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#define map_page_into_agp(page)
98c2ecf20Sopenharmony_ci#define unmap_page_from_agp(page)
108c2ecf20Sopenharmony_ci#define flush_agp_cache() mb()
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* GATT allocation. Returns/accepts GATT kernel virtual address. */
138c2ecf20Sopenharmony_ci#define alloc_gatt_pages(order)		\
148c2ecf20Sopenharmony_ci	((char *)__get_free_pages(GFP_KERNEL, (order)))
158c2ecf20Sopenharmony_ci#define free_gatt_pages(table, order)	\
168c2ecf20Sopenharmony_ci	free_pages((unsigned long)(table), (order))
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */
198c2ecf20Sopenharmony_ci#endif	/* _ASM_POWERPC_AGP_H */
20