X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fagp.h;h=ef855a3bc0f54eed5048af5cf636d4c365bf29e7;hb=4f4ef2967e1e8dce43e9cf7186aeb60a8c33aaf4;hp=c99dbbb5bcb5ae32f02d8c3f4af9d3c4d2638f77;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=karo-tx-linux.git diff --git a/include/asm-alpha/agp.h b/include/asm-alpha/agp.h index c99dbbb5bcb5..ef855a3bc0f5 100644 --- a/include/asm-alpha/agp.h +++ b/include/asm-alpha/agp.h @@ -10,4 +10,14 @@ #define flush_agp_mappings() #define flush_agp_cache() mb() +/* 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)) + #endif