diff options
Diffstat (limited to 'include/uapi/xen/gntalloc.h')
-rw-r--r-- | include/uapi/xen/gntalloc.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/uapi/xen/gntalloc.h b/include/uapi/xen/gntalloc.h index 76bd58065f4f..48d2790ef928 100644 --- a/include/uapi/xen/gntalloc.h +++ b/include/uapi/xen/gntalloc.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #ifndef __LINUX_PUBLIC_GNTALLOC_H__ | 11 | #ifndef __LINUX_PUBLIC_GNTALLOC_H__ |
12 | #define __LINUX_PUBLIC_GNTALLOC_H__ | 12 | #define __LINUX_PUBLIC_GNTALLOC_H__ |
13 | 13 | ||
14 | #include <linux/types.h> | ||
15 | |||
14 | /* | 16 | /* |
15 | * Allocates a new page and creates a new grant reference. | 17 | * Allocates a new page and creates a new grant reference. |
16 | */ | 18 | */ |
@@ -19,17 +21,17 @@ _IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref)) | |||
19 | struct ioctl_gntalloc_alloc_gref { | 21 | struct ioctl_gntalloc_alloc_gref { |
20 | /* IN parameters */ | 22 | /* IN parameters */ |
21 | /* The ID of the domain to be given access to the grants. */ | 23 | /* The ID of the domain to be given access to the grants. */ |
22 | uint16_t domid; | 24 | __u16 domid; |
23 | /* Flags for this mapping */ | 25 | /* Flags for this mapping */ |
24 | uint16_t flags; | 26 | __u16 flags; |
25 | /* Number of pages to map */ | 27 | /* Number of pages to map */ |
26 | uint32_t count; | 28 | __u32 count; |
27 | /* OUT parameters */ | 29 | /* OUT parameters */ |
28 | /* The offset to be used on a subsequent call to mmap(). */ | 30 | /* The offset to be used on a subsequent call to mmap(). */ |
29 | uint64_t index; | 31 | __u64 index; |
30 | /* The grant references of the newly created grant, one per page */ | 32 | /* The grant references of the newly created grant, one per page */ |
31 | /* Variable size, depending on count */ | 33 | /* Variable size, depending on count */ |
32 | uint32_t gref_ids[1]; | 34 | __u32 gref_ids[1]; |
33 | }; | 35 | }; |
34 | 36 | ||
35 | #define GNTALLOC_FLAG_WRITABLE 1 | 37 | #define GNTALLOC_FLAG_WRITABLE 1 |
@@ -43,9 +45,9 @@ _IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref)) | |||
43 | struct ioctl_gntalloc_dealloc_gref { | 45 | struct ioctl_gntalloc_dealloc_gref { |
44 | /* IN parameters */ | 46 | /* IN parameters */ |
45 | /* The offset returned in the map operation */ | 47 | /* The offset returned in the map operation */ |
46 | uint64_t index; | 48 | __u64 index; |
47 | /* Number of references to unmap */ | 49 | /* Number of references to unmap */ |
48 | uint32_t count; | 50 | __u32 count; |
49 | }; | 51 | }; |
50 | 52 | ||
51 | /* | 53 | /* |
@@ -67,11 +69,11 @@ struct ioctl_gntalloc_unmap_notify { | |||
67 | * be cleared. Otherwise, it can be any byte in the page whose | 69 | * be cleared. Otherwise, it can be any byte in the page whose |
68 | * notification we are adjusting. | 70 | * notification we are adjusting. |
69 | */ | 71 | */ |
70 | uint64_t index; | 72 | __u64 index; |
71 | /* Action(s) to take on unmap */ | 73 | /* Action(s) to take on unmap */ |
72 | uint32_t action; | 74 | __u32 action; |
73 | /* Event channel to notify */ | 75 | /* Event channel to notify */ |
74 | uint32_t event_channel_port; | 76 | __u32 event_channel_port; |
75 | }; | 77 | }; |
76 | 78 | ||
77 | /* Clear (set to zero) the byte specified by index */ | 79 | /* Clear (set to zero) the byte specified by index */ |