diff options
Diffstat (limited to 'extras/mini-os/include/gntmap.h')
-rw-r--r-- | extras/mini-os/include/gntmap.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/extras/mini-os/include/gntmap.h b/extras/mini-os/include/gntmap.h new file mode 100644 index 0000000000..fde53f39b1 --- /dev/null +++ b/extras/mini-os/include/gntmap.h @@ -0,0 +1,35 @@ +#ifndef __GNTMAP_H__ +#define __GNTMAP_H__ + +#include <os.h> + +/* + * Please consider struct gntmap opaque. If instead you choose to disregard + * this message, I insist that you keep an eye out for raptors. + */ +struct gntmap { + int nentries; + struct gntmap_entry *entries; +}; + +int +gntmap_set_max_grants(struct gntmap *map, int count); + +int +gntmap_munmap(struct gntmap *map, unsigned long start_address, int count); + +void* +gntmap_map_grant_refs(struct gntmap *map, + uint32_t count, + uint32_t *domids, + int domids_stride, + uint32_t *refs, + int writable); + +void +gntmap_init(struct gntmap *map); + +void +gntmap_fini(struct gntmap *map); + +#endif /* !__GNTMAP_H__ */ |