diff options
Diffstat (limited to 'include/uapi/xen/gntdev.h')
-rw-r--r-- | include/uapi/xen/gntdev.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/include/uapi/xen/gntdev.h b/include/uapi/xen/gntdev.h index 5304bd3c84c5..aa7610a9b867 100644 --- a/include/uapi/xen/gntdev.h +++ b/include/uapi/xen/gntdev.h | |||
@@ -33,11 +33,13 @@ | |||
33 | #ifndef __LINUX_PUBLIC_GNTDEV_H__ | 33 | #ifndef __LINUX_PUBLIC_GNTDEV_H__ |
34 | #define __LINUX_PUBLIC_GNTDEV_H__ | 34 | #define __LINUX_PUBLIC_GNTDEV_H__ |
35 | 35 | ||
36 | #include <linux/types.h> | ||
37 | |||
36 | struct ioctl_gntdev_grant_ref { | 38 | struct ioctl_gntdev_grant_ref { |
37 | /* The domain ID of the grant to be mapped. */ | 39 | /* The domain ID of the grant to be mapped. */ |
38 | uint32_t domid; | 40 | __u32 domid; |
39 | /* The grant reference of the grant to be mapped. */ | 41 | /* The grant reference of the grant to be mapped. */ |
40 | uint32_t ref; | 42 | __u32 ref; |
41 | }; | 43 | }; |
42 | 44 | ||
43 | /* | 45 | /* |
@@ -50,11 +52,11 @@ _IOC(_IOC_NONE, 'G', 0, sizeof(struct ioctl_gntdev_map_grant_ref)) | |||
50 | struct ioctl_gntdev_map_grant_ref { | 52 | struct ioctl_gntdev_map_grant_ref { |
51 | /* IN parameters */ | 53 | /* IN parameters */ |
52 | /* The number of grants to be mapped. */ | 54 | /* The number of grants to be mapped. */ |
53 | uint32_t count; | 55 | __u32 count; |
54 | uint32_t pad; | 56 | __u32 pad; |
55 | /* OUT parameters */ | 57 | /* OUT parameters */ |
56 | /* The offset to be used on a subsequent call to mmap(). */ | 58 | /* The offset to be used on a subsequent call to mmap(). */ |
57 | uint64_t index; | 59 | __u64 index; |
58 | /* Variable IN parameter. */ | 60 | /* Variable IN parameter. */ |
59 | /* Array of grant references, of size @count. */ | 61 | /* Array of grant references, of size @count. */ |
60 | struct ioctl_gntdev_grant_ref refs[1]; | 62 | struct ioctl_gntdev_grant_ref refs[1]; |
@@ -70,10 +72,10 @@ _IOC(_IOC_NONE, 'G', 1, sizeof(struct ioctl_gntdev_unmap_grant_ref)) | |||
70 | struct ioctl_gntdev_unmap_grant_ref { | 72 | struct ioctl_gntdev_unmap_grant_ref { |
71 | /* IN parameters */ | 73 | /* IN parameters */ |
72 | /* The offset was returned by the corresponding map operation. */ | 74 | /* The offset was returned by the corresponding map operation. */ |
73 | uint64_t index; | 75 | __u64 index; |
74 | /* The number of pages to be unmapped. */ | 76 | /* The number of pages to be unmapped. */ |
75 | uint32_t count; | 77 | __u32 count; |
76 | uint32_t pad; | 78 | __u32 pad; |
77 | }; | 79 | }; |
78 | 80 | ||
79 | /* | 81 | /* |
@@ -93,13 +95,13 @@ _IOC(_IOC_NONE, 'G', 2, sizeof(struct ioctl_gntdev_get_offset_for_vaddr)) | |||
93 | struct ioctl_gntdev_get_offset_for_vaddr { | 95 | struct ioctl_gntdev_get_offset_for_vaddr { |
94 | /* IN parameters */ | 96 | /* IN parameters */ |
95 | /* The virtual address of the first mapped page in a range. */ | 97 | /* The virtual address of the first mapped page in a range. */ |
96 | uint64_t vaddr; | 98 | __u64 vaddr; |
97 | /* OUT parameters */ | 99 | /* OUT parameters */ |
98 | /* The offset that was used in the initial mmap() operation. */ | 100 | /* The offset that was used in the initial mmap() operation. */ |
99 | uint64_t offset; | 101 | __u64 offset; |
100 | /* The number of pages mapped in the VM area that begins at @vaddr. */ | 102 | /* The number of pages mapped in the VM area that begins at @vaddr. */ |
101 | uint32_t count; | 103 | __u32 count; |
102 | uint32_t pad; | 104 | __u32 pad; |
103 | }; | 105 | }; |
104 | 106 | ||
105 | /* | 107 | /* |
@@ -113,7 +115,7 @@ _IOC(_IOC_NONE, 'G', 3, sizeof(struct ioctl_gntdev_set_max_grants)) | |||
113 | struct ioctl_gntdev_set_max_grants { | 115 | struct ioctl_gntdev_set_max_grants { |
114 | /* IN parameter */ | 116 | /* IN parameter */ |
115 | /* The maximum number of grants that may be mapped at once. */ | 117 | /* The maximum number of grants that may be mapped at once. */ |
116 | uint32_t count; | 118 | __u32 count; |
117 | }; | 119 | }; |
118 | 120 | ||
119 | /* | 121 | /* |
@@ -135,11 +137,11 @@ struct ioctl_gntdev_unmap_notify { | |||
135 | * be cleared. Otherwise, it can be any byte in the page whose | 137 | * be cleared. Otherwise, it can be any byte in the page whose |
136 | * notification we are adjusting. | 138 | * notification we are adjusting. |
137 | */ | 139 | */ |
138 | uint64_t index; | 140 | __u64 index; |
139 | /* Action(s) to take on unmap */ | 141 | /* Action(s) to take on unmap */ |
140 | uint32_t action; | 142 | __u32 action; |
141 | /* Event channel to notify */ | 143 | /* Event channel to notify */ |
142 | uint32_t event_channel_port; | 144 | __u32 event_channel_port; |
143 | }; | 145 | }; |
144 | 146 | ||
145 | /* Clear (set to zero) the byte specified by index */ | 147 | /* Clear (set to zero) the byte specified by index */ |