Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_IA64_AGP_H |
| 2 | #define _ASM_IA64_AGP_H |
| 3 | |
| 4 | /* |
| 5 | * IA-64 specific AGP definitions. |
| 6 | * |
| 7 | * Copyright (C) 2002-2003 Hewlett-Packard Co |
| 8 | * David Mosberger-Tang <davidm@hpl.hp.com> |
| 9 | */ |
| 10 | |
| 11 | /* |
| 12 | * To avoid memory-attribute aliasing issues, we require that the AGPGART engine operate |
| 13 | * in coherent mode, which lets us map the AGP memory as normal (write-back) memory |
| 14 | * (unlike x86, where it gets mapped "write-coalescing"). |
| 15 | */ |
| 16 | #define map_page_into_agp(page) /* nothing */ |
| 17 | #define unmap_page_from_agp(page) /* nothing */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #define flush_agp_cache() mb() |
| 19 | |
Keir Fraser | 07eee78 | 2005-03-30 13:17:04 -0800 | [diff] [blame] | 20 | /* GATT allocation. Returns/accepts GATT kernel virtual address. */ |
| 21 | #define alloc_gatt_pages(order) \ |
| 22 | ((char *)__get_free_pages(GFP_KERNEL, (order))) |
| 23 | #define free_gatt_pages(table, order) \ |
| 24 | free_pages((unsigned long)(table), (order)) |
| 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #endif /* _ASM_IA64_AGP_H */ |