agp.h 863 B

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