18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_IA64_AGP_H 38c2ecf20Sopenharmony_ci#define _ASM_IA64_AGP_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * IA-64 specific AGP definitions. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 2002-2003 Hewlett-Packard Co 98c2ecf20Sopenharmony_ci * David Mosberger-Tang <davidm@hpl.hp.com> 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * To avoid memory-attribute aliasing issues, we require that the AGPGART engine operate 148c2ecf20Sopenharmony_ci * in coherent mode, which lets us map the AGP memory as normal (write-back) memory 158c2ecf20Sopenharmony_ci * (unlike x86, where it gets mapped "write-coalescing"). 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci#define map_page_into_agp(page) do { } while (0) 188c2ecf20Sopenharmony_ci#define unmap_page_from_agp(page) do { } while (0) 198c2ecf20Sopenharmony_ci#define flush_agp_cache() mb() 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* GATT allocation. Returns/accepts GATT kernel virtual address. */ 228c2ecf20Sopenharmony_ci#define alloc_gatt_pages(order) \ 238c2ecf20Sopenharmony_ci ((char *)__get_free_pages(GFP_KERNEL, (order))) 248c2ecf20Sopenharmony_ci#define free_gatt_pages(table, order) \ 258c2ecf20Sopenharmony_ci free_pages((unsigned long)(table), (order)) 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#endif /* _ASM_IA64_AGP_H */ 28