ia64/xen-unstable

changeset 9503:bfc00c83f083

[IA64] dom0 vp model linux part: import agp.h from linux-2.6.16-rc3

[note: verified same as linux-2.6.16]

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri Apr 07 14:06:44 2006 -0600 (2006-04-07)
parents 70467f5491d8
children b09e8f46c9f6
files linux-2.6-xen-sparse/include/asm-ia64/agp.h
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-ia64/agp.h	Fri Apr 07 14:06:44 2006 -0600
     1.3 @@ -0,0 +1,31 @@
     1.4 +#ifndef _ASM_IA64_AGP_H
     1.5 +#define _ASM_IA64_AGP_H
     1.6 +
     1.7 +/*
     1.8 + * IA-64 specific AGP definitions.
     1.9 + *
    1.10 + * Copyright (C) 2002-2003 Hewlett-Packard Co
    1.11 + *	David Mosberger-Tang <davidm@hpl.hp.com>
    1.12 + */
    1.13 +
    1.14 +/*
    1.15 + * To avoid memory-attribute aliasing issues, we require that the AGPGART engine operate
    1.16 + * in coherent mode, which lets us map the AGP memory as normal (write-back) memory
    1.17 + * (unlike x86, where it gets mapped "write-coalescing").
    1.18 + */
    1.19 +#define map_page_into_agp(page)		/* nothing */
    1.20 +#define unmap_page_from_agp(page)	/* nothing */
    1.21 +#define flush_agp_mappings()		/* nothing */
    1.22 +#define flush_agp_cache()		mb()
    1.23 +
    1.24 +/* Convert a physical address to an address suitable for the GART. */
    1.25 +#define phys_to_gart(x) (x)
    1.26 +#define gart_to_phys(x) (x)
    1.27 +
    1.28 +/* GATT allocation. Returns/accepts GATT kernel virtual address. */
    1.29 +#define alloc_gatt_pages(order)		\
    1.30 +	((char *)__get_free_pages(GFP_KERNEL, (order)))
    1.31 +#define free_gatt_pages(table, order)	\
    1.32 +	free_pages((unsigned long)(table), (order))
    1.33 +
    1.34 +#endif /* _ASM_IA64_AGP_H */