ia64/xen-unstable

view xen/include/asm-ia64/iocap.h @ 18633:f27787b9f8d7

[IA64] Change ioports_permit_access interface().

use VTD to assing device, guest port may not be equal to host port.
Change ioports_permit_access interface to get guest pseudo physical
address.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Fri Oct 17 17:40:15 2008 +0900 (2008-10-17)
parents 601509daabfc
children 2d68d518038b
line source
1 /******************************************************************************
2 * iocap.h
3 *
4 * Architecture-specific per-domain I/O capabilities.
5 */
7 #ifndef __IA64_IOCAP_H__
8 #define __IA64_IOCAP_H__
10 extern int ioports_permit_access(struct domain *d, unsigned int gs,
11 unsigned int s, unsigned int e);
12 extern int ioports_deny_access(struct domain *d,
13 unsigned int s, unsigned int e);
15 #define ioports_access_permitted(d, s, e) \
16 rangeset_contains_range((d)->arch.ioport_caps, s, e)
18 #endif /* __IA64_IOCAP_H__ */