blob: 08ac9c7933f127fbb1bc9ec5b33e62c51e708895 [file] [log] [blame]
Christopher Ferris38062f92014-07-09 15:33:25 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_PUBLIC_GNTDEV_H__
20#define __LINUX_PUBLIC_GNTDEV_H__
Christopher Ferris05d08e92016-02-04 13:16:38 -080021#include <linux/types.h>
Christopher Ferris38062f92014-07-09 15:33:25 -070022struct ioctl_gntdev_grant_ref {
Christopher Ferris38062f92014-07-09 15:33:25 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024 __u32 domid;
25 __u32 ref;
Christopher Ferris38062f92014-07-09 15:33:25 -070026};
Tao Baod7db5942015-01-28 10:07:51 -080027#define IOCTL_GNTDEV_MAP_GRANT_REF _IOC(_IOC_NONE, 'G', 0, sizeof(struct ioctl_gntdev_map_grant_ref))
Christopher Ferris05d08e92016-02-04 13:16:38 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029struct ioctl_gntdev_map_grant_ref {
Christopher Ferris05d08e92016-02-04 13:16:38 -080030 __u32 count;
31 __u32 pad;
32 __u64 index;
Christopher Ferris38062f92014-07-09 15:33:25 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 struct ioctl_gntdev_grant_ref refs[1];
Christopher Ferris38062f92014-07-09 15:33:25 -070035};
Tao Baod7db5942015-01-28 10:07:51 -080036#define IOCTL_GNTDEV_UNMAP_GRANT_REF _IOC(_IOC_NONE, 'G', 1, sizeof(struct ioctl_gntdev_unmap_grant_ref))
Christopher Ferris38062f92014-07-09 15:33:25 -070037struct ioctl_gntdev_unmap_grant_ref {
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u64 index;
40 __u32 count;
41 __u32 pad;
Christopher Ferris38062f92014-07-09 15:33:25 -070042};
Christopher Ferris05d08e92016-02-04 13:16:38 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define IOCTL_GNTDEV_GET_OFFSET_FOR_VADDR _IOC(_IOC_NONE, 'G', 2, sizeof(struct ioctl_gntdev_get_offset_for_vaddr))
Christopher Ferris38062f92014-07-09 15:33:25 -070045struct ioctl_gntdev_get_offset_for_vaddr {
Christopher Ferris05d08e92016-02-04 13:16:38 -080046 __u64 vaddr;
47 __u64 offset;
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049 __u32 count;
50 __u32 pad;
Christopher Ferris38062f92014-07-09 15:33:25 -070051};
Tao Baod7db5942015-01-28 10:07:51 -080052#define IOCTL_GNTDEV_SET_MAX_GRANTS _IOC(_IOC_NONE, 'G', 3, sizeof(struct ioctl_gntdev_set_max_grants))
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054struct ioctl_gntdev_set_max_grants {
55 __u32 count;
Christopher Ferris38062f92014-07-09 15:33:25 -070056};
Tao Baod7db5942015-01-28 10:07:51 -080057#define IOCTL_GNTDEV_SET_UNMAP_NOTIFY _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntdev_unmap_notify))
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059struct ioctl_gntdev_unmap_notify {
Christopher Ferris05d08e92016-02-04 13:16:38 -080060 __u64 index;
61 __u32 action;
62 __u32 event_channel_port;
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064};
Christopher Ferris106b3a82016-08-24 12:15:38 -070065struct gntdev_grant_copy_segment {
66 union {
67 void __user * virt;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 struct {
70 grant_ref_t ref;
71 __u16 offset;
72 domid_t domid;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 } foreign;
75 } source, dest;
76 __u16 len;
77 __u16 flags;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __s16 status;
80};
81#define IOCTL_GNTDEV_GRANT_COPY _IOC(_IOC_NONE, 'G', 8, sizeof(struct ioctl_gntdev_grant_copy))
82struct ioctl_gntdev_grant_copy {
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 unsigned int count;
85 struct gntdev_grant_copy_segment __user * segments;
86};
Christopher Ferris38062f92014-07-09 15:33:25 -070087#define UNMAP_NOTIFY_CLEAR_BYTE 0x1
Christopher Ferris106b3a82016-08-24 12:15:38 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089#define UNMAP_NOTIFY_SEND_EVENT 0x2
90#endif