aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenctrlosdep.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
commitfcc007081b6e549911b83605cbffbfe8d651f5f8 (patch)
treed719c823ce4927ffe9cb49fe99fa7454b3406202 /tools/libxc/xenctrlosdep.h
parent3361a9deea33fb852dc6f2c10c43c4cfeb897abf (diff)
downloadxen-fcc007081b6e549911b83605cbffbfe8d651f5f8.tar.gz
xen-fcc007081b6e549911b83605cbffbfe8d651f5f8.tar.bz2
xen-fcc007081b6e549911b83605cbffbfe8d651f5f8.zip
libxc: osdep: convert xc_gnttab_map_{grant_ref,grant_refs,domain_grant_refs}()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrlosdep.h')
-rw-r--r--tools/libxc/xenctrlosdep.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/libxc/xenctrlosdep.h b/tools/libxc/xenctrlosdep.h
index 24d4bc27ef..65433a33f0 100644
--- a/tools/libxc/xenctrlosdep.h
+++ b/tools/libxc/xenctrlosdep.h
@@ -89,6 +89,22 @@ struct xc_osdep_ops
evtchn_port_or_error_t (*pending)(xc_evtchn *xce, xc_osdep_handle h);
int (*unmask)(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t port);
} evtchn;
+ struct {
+ void *(*map_grant_ref)(xc_gnttab *xcg, xc_osdep_handle h,
+ uint32_t domid,
+ uint32_t ref,
+ int prot);
+ void *(*map_grant_refs)(xc_gnttab *xcg, xc_osdep_handle h,
+ uint32_t count,
+ uint32_t *domids,
+ uint32_t *refs,
+ int prot);
+ void *(*map_domain_grant_refs)(xc_gnttab *xcg, xc_osdep_handle h,
+ uint32_t count,
+ uint32_t domid,
+ uint32_t *refs,
+ int prot);
+ } gnttab;
} u;
};
typedef struct xc_osdep_ops xc_osdep_ops;