Blame view

include/asm-powerpc/agp.h 642 Bytes
a37c8875a   jdl@freescale.com   [PATCH] powerpc: ...
1
2
  #ifndef _ASM_POWERPC_AGP_H
  #define _ASM_POWERPC_AGP_H
88ced0314   Arnd Bergmann   [PATCH] powerpc: ...
3
  #ifdef __KERNEL__
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
5
  
  #include <asm/io.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
6
7
8
9
  #define map_page_into_agp(page)
  #define unmap_page_from_agp(page)
  #define flush_agp_mappings()
  #define flush_agp_cache() mb()
07eee78ea   Keir Fraser   [PATCH] AGP fix f...
10
11
12
13
14
15
16
17
18
  /* Convert a physical address to an address suitable for the GART. */
  #define phys_to_gart(x) (x)
  #define gart_to_phys(x) (x)
  
  /* GATT allocation. Returns/accepts GATT kernel virtual address. */
  #define alloc_gatt_pages(order)		\
  	((char *)__get_free_pages(GFP_KERNEL, (order)))
  #define free_gatt_pages(table, order)	\
  	free_pages((unsigned long)(table), (order))
88ced0314   Arnd Bergmann   [PATCH] powerpc: ...
19
  #endif /* __KERNEL__ */
a37c8875a   jdl@freescale.com   [PATCH] powerpc: ...
20
  #endif	/* _ASM_POWERPC_AGP_H */