1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_AGP_H
3 #define _ASM_POWERPC_AGP_H
4 #ifdef __KERNEL__
5 
6 #include <asm/io.h>
7 
8 #define map_page_into_agp(page) do {} while (0)
9 #define unmap_page_from_agp(page) do {} while (0)
10 #define flush_agp_cache() mb()
11 
12 /* GATT allocation. Returns/accepts GATT kernel virtual address. */
13 #define alloc_gatt_pages(order)		\
14 	((char *)__get_free_pages(GFP_KERNEL, (order)))
15 #define free_gatt_pages(table, order)	\
16 	free_pages((unsigned long)(table), (order))
17 
18 #endif /* __KERNEL__ */
19 #endif	/* _ASM_POWERPC_AGP_H */
20