^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _ASM_IA64_AGP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ASM_IA64_AGP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * IA-64 specific AGP definitions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * Copyright (C) 2002-2003 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * To avoid memory-attribute aliasing issues, we require that the AGPGART engine operate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * in coherent mode, which lets us map the AGP memory as normal (write-back) memory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) * (unlike x86, where it gets mapped "write-coalescing").
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define map_page_into_agp(page) do { } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define unmap_page_from_agp(page) do { } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define flush_agp_cache() mb()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /* GATT allocation. Returns/accepts GATT kernel virtual address. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define alloc_gatt_pages(order) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) ((char *)__get_free_pages(GFP_KERNEL, (order)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define free_gatt_pages(table, order) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) free_pages((unsigned long)(table), (order))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif /* _ASM_IA64_AGP_H */