blob: 1710f4a062c87a7f81e2fc7547d323f99a23d3ec [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_GNTALLOC_H__
20#define __LINUX_PUBLIC_GNTALLOC_H__
Tao Baod7db5942015-01-28 10:07:51 -080021#define IOCTL_GNTALLOC_ALLOC_GREF _IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref))
Christopher Ferris38062f92014-07-09 15:33:25 -070022struct ioctl_gntalloc_alloc_gref {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 uint16_t domid;
25 uint16_t flags;
26 uint32_t count;
27 uint64_t index;
Christopher Ferris38062f92014-07-09 15:33:25 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 uint32_t gref_ids[1];
Christopher Ferris38062f92014-07-09 15:33:25 -070030};
31#define GNTALLOC_FLAG_WRITABLE 1
Tao Baod7db5942015-01-28 10:07:51 -080032#define IOCTL_GNTALLOC_DEALLOC_GREF _IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref))
Christopher Ferris38062f92014-07-09 15:33:25 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34struct ioctl_gntalloc_dealloc_gref {
Tao Baod7db5942015-01-28 10:07:51 -080035 uint64_t index;
36 uint32_t count;
Christopher Ferris38062f92014-07-09 15:33:25 -070037};
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039#define IOCTL_GNTALLOC_SET_UNMAP_NOTIFY _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify))
Christopher Ferris38062f92014-07-09 15:33:25 -070040struct ioctl_gntalloc_unmap_notify {
Tao Baod7db5942015-01-28 10:07:51 -080041 uint64_t index;
42 uint32_t action;
Christopher Ferris38062f92014-07-09 15:33:25 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 uint32_t event_channel_port;
Christopher Ferris38062f92014-07-09 15:33:25 -070045};
46#define UNMAP_NOTIFY_CLEAR_BYTE 0x1
47#define UNMAP_NOTIFY_SEND_EVENT 0x2
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#endif