Commit 6a12235c authored by David Woodhouse's avatar David Woodhouse
Browse files

agp: kill phys_to_gart() and gart_to_phys()



There seems to be no reason for these -- they're a 1:1 mapping on all
platforms.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent f692775d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -9,10 +9,6 @@
#define unmap_page_from_agp(page) 
#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)))
+0 −4
Original line number Diff line number Diff line
@@ -17,10 +17,6 @@
#define unmap_page_from_agp(page)	/* nothing */
#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)))
+0 −4
Original line number Diff line number Diff line
@@ -11,10 +11,6 @@
#define unmap_page_from_agp(page)	/* nothing */
#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)))
+0 −4
Original line number Diff line number Diff line
@@ -8,10 +8,6 @@
#define unmap_page_from_agp(page)
#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)))
+0 −4
Original line number Diff line number Diff line
@@ -7,10 +7,6 @@
#define unmap_page_from_agp(page)
#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)))
Loading