blob: c00e5abada41cc78b975e93b2f7fb09e5b23c9b8 [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__
21struct ioctl_gntdev_grant_ref {
Tao Baod7db5942015-01-28 10:07:51 -080022 uint32_t domid;
Christopher Ferris38062f92014-07-09 15:33:25 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 uint32_t ref;
Christopher Ferris38062f92014-07-09 15:33:25 -070025};
Tao Baod7db5942015-01-28 10:07:51 -080026#define IOCTL_GNTDEV_MAP_GRANT_REF _IOC(_IOC_NONE, 'G', 0, sizeof(struct ioctl_gntdev_map_grant_ref))
Christopher Ferris38062f92014-07-09 15:33:25 -070027struct ioctl_gntdev_map_grant_ref {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 uint32_t count;
30 uint32_t pad;
31 uint64_t index;
32 struct ioctl_gntdev_grant_ref refs[1];
Christopher Ferris38062f92014-07-09 15:33:25 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
Tao Baod7db5942015-01-28 10:07:51 -080035#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 -070036struct ioctl_gntdev_unmap_grant_ref {
Tao Baod7db5942015-01-28 10:07:51 -080037 uint64_t index;
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 uint32_t count;
40 uint32_t pad;
Christopher Ferris38062f92014-07-09 15:33:25 -070041};
Tao Baod7db5942015-01-28 10:07:51 -080042#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 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct ioctl_gntdev_get_offset_for_vaddr {
Tao Baod7db5942015-01-28 10:07:51 -080045 uint64_t vaddr;
46 uint64_t offset;
47 uint32_t count;
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 uint32_t pad;
Christopher Ferris38062f92014-07-09 15:33:25 -070050};
Tao Baod7db5942015-01-28 10:07:51 -080051#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 -070052struct ioctl_gntdev_set_max_grants {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 uint32_t count;
Christopher Ferris38062f92014-07-09 15:33:25 -070055};
Tao Baod7db5942015-01-28 10:07:51 -080056#define IOCTL_GNTDEV_SET_UNMAP_NOTIFY _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntdev_unmap_notify))
Christopher Ferris38062f92014-07-09 15:33:25 -070057struct ioctl_gntdev_unmap_notify {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 uint64_t index;
60 uint32_t action;
61 uint32_t event_channel_port;
Christopher Ferris38062f92014-07-09 15:33:25 -070062};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define UNMAP_NOTIFY_CLEAR_BYTE 0x1
65#define UNMAP_NOTIFY_SEND_EVENT 0x2
66#endif