^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_PARISC_AGP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ASM_PARISC_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) * PARISC specific AGP definitions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (c) 2006 Kyle McMartin <kyle@parisc-linux.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define map_page_into_agp(page) /* nothing */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define unmap_page_from_agp(page) /* nothing */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define flush_agp_cache() mb()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /* GATT allocation. Returns/accepts GATT kernel virtual address. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define alloc_gatt_pages(order) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) ((char *)__get_free_pages(GFP_KERNEL, (order)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define free_gatt_pages(table, order) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) free_pages((unsigned long)(table), (order))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif /* _ASM_PARISC_AGP_H */