aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/xen/gntalloc.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
commit92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch)
tree15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/uapi/xen/gntalloc.h
parent15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff)
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2 Backmerge to get at commit 1b0e3a049efe471c399674fd954500ce97438d30 Author: Imre Deak <imre.deak@intel.com> Date: Thu Nov 5 23:04:11 2015 +0200 drm/i915/skl: disable display side power well support for now so that we can proplery re-eanble skl power wells in -next. Conflicts are just adjacent lines changed, except for intel_fbdev.c where we need to interleave the changs. Nothing nefarious. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/uapi/xen/gntalloc.h')
-rw-r--r--include/uapi/xen/gntalloc.h22
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))
19struct ioctl_gntalloc_alloc_gref { 21struct 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))
43struct ioctl_gntalloc_dealloc_gref { 45struct 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 */