ia64/xen-unstable

view xen/include/asm-x86/iocap.h @ 19175:92557a0b021f

Fix PCI passthrough for devices w/o iomem.

From: Manuel Bouyer <bouyer@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 05 15:08:53 2009 +0000 (2009-02-05)
parents d966b7a00959
children 2d68d518038b
line source
1 /******************************************************************************
2 * iocap.h
3 *
4 * Architecture-specific per-domain I/O capabilities.
5 */
7 #ifndef __X86_IOCAP_H__
8 #define __X86_IOCAP_H__
10 #define ioports_permit_access(d, s, e) \
11 rangeset_add_range((d)->arch.ioport_caps, s, e)
12 #define ioports_deny_access(d, s, e) \
13 rangeset_remove_range((d)->arch.ioport_caps, s, e)
14 #define ioports_access_permitted(d, s, e) \
15 rangeset_contains_range((d)->arch.ioport_caps, s, e)
17 #define cache_flush_permitted(d) \
18 (!rangeset_is_empty((d)->iomem_caps) || \
19 !rangeset_is_empty((d)->arch.ioport_caps))
21 #endif /* __X86_IOCAP_H__ */