aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/xen
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@iki.fi>2015-10-15 01:56:08 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2015-10-23 09:20:45 -0400
commita36012be64e65760d208c23ea68dc12a895001d8 (patch)
treec59fbc0efe4c211e660cfe79b61e67e835906302 /include/uapi/xen
parent91afb7c373e881d5038a78e1206a0f6469440ec3 (diff)
xen/gntdev: use types from linux/types.h in userspace headers
__u32, __u64 etc. are preferred for userspace API headers. Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/uapi/xen')
-rw-r--r--include/uapi/xen/gntdev.h34
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
36struct ioctl_gntdev_grant_ref { 38struct 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))
50struct ioctl_gntdev_map_grant_ref { 52struct 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))
70struct ioctl_gntdev_unmap_grant_ref { 72struct 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))
93struct ioctl_gntdev_get_offset_for_vaddr { 95struct 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))
113struct ioctl_gntdev_set_max_grants { 115struct 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 */