~ubuntu-branches/ubuntu/intrepid/xen-3.3/intrepid-proposed

« back to all changes in this revision

Viewing changes to extras/mini-os/include/gntmap.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-08-14 10:28:57 UTC
  • Revision ID: james.westby@ubuntu.com-20080814102857-a832fn5gowurz5do
Tags: upstream-3.3.0
ImportĀ upstreamĀ versionĀ 3.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __GNTMAP_H__
 
2
#define __GNTMAP_H__
 
3
 
 
4
#include <os.h>
 
5
 
 
6
/*
 
7
 * Please consider struct gntmap opaque. If instead you choose to disregard
 
8
 * this message, I insist that you keep an eye out for raptors.
 
9
 */
 
10
struct gntmap {
 
11
    int nentries;
 
12
    struct gntmap_entry *entries;
 
13
};
 
14
 
 
15
int
 
16
gntmap_set_max_grants(struct gntmap *map, int count);
 
17
 
 
18
int
 
19
gntmap_munmap(struct gntmap *map, unsigned long start_address, int count);
 
20
 
 
21
void*
 
22
gntmap_map_grant_refs(struct gntmap *map, 
 
23
                      uint32_t count,
 
24
                      uint32_t *domids,
 
25
                      int domids_stride,
 
26
                      uint32_t *refs,
 
27
                      int writable);
 
28
 
 
29
void
 
30
gntmap_init(struct gntmap *map);
 
31
 
 
32
void
 
33
gntmap_fini(struct gntmap *map);
 
34
 
 
35
#endif /* !__GNTMAP_H__ */