122851890Sopenharmony_ci/* 222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py, 322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants, 422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information. 522851890Sopenharmony_ci */ 622851890Sopenharmony_ci#ifndef __LINUX_PUBLIC_GNTALLOC_H__ 722851890Sopenharmony_ci#define __LINUX_PUBLIC_GNTALLOC_H__ 822851890Sopenharmony_ci#include <linux/types.h> 922851890Sopenharmony_ci#define IOCTL_GNTALLOC_ALLOC_GREF \ 1022851890Sopenharmony_ci_IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref)) 1122851890Sopenharmony_cistruct ioctl_gntalloc_alloc_gref { 1222851890Sopenharmony_ci 1322851890Sopenharmony_ci 1422851890Sopenharmony_ci __u16 domid; 1522851890Sopenharmony_ci 1622851890Sopenharmony_ci __u16 flags; 1722851890Sopenharmony_ci 1822851890Sopenharmony_ci __u32 count; 1922851890Sopenharmony_ci 2022851890Sopenharmony_ci 2122851890Sopenharmony_ci __u64 index; 2222851890Sopenharmony_ci 2322851890Sopenharmony_ci 2422851890Sopenharmony_ci __u32 gref_ids[1]; 2522851890Sopenharmony_ci}; 2622851890Sopenharmony_ci#define GNTALLOC_FLAG_WRITABLE 1 2722851890Sopenharmony_ci#define IOCTL_GNTALLOC_DEALLOC_GREF \ 2822851890Sopenharmony_ci_IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref)) 2922851890Sopenharmony_cistruct ioctl_gntalloc_dealloc_gref { 3022851890Sopenharmony_ci 3122851890Sopenharmony_ci 3222851890Sopenharmony_ci __u64 index; 3322851890Sopenharmony_ci 3422851890Sopenharmony_ci __u32 count; 3522851890Sopenharmony_ci}; 3622851890Sopenharmony_ci#define IOCTL_GNTALLOC_SET_UNMAP_NOTIFY \ 3722851890Sopenharmony_ci_IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify)) 3822851890Sopenharmony_cistruct ioctl_gntalloc_unmap_notify { 3922851890Sopenharmony_ci 4022851890Sopenharmony_ci 4122851890Sopenharmony_ci __u64 index; 4222851890Sopenharmony_ci 4322851890Sopenharmony_ci __u32 action; 4422851890Sopenharmony_ci 4522851890Sopenharmony_ci __u32 event_channel_port; 4622851890Sopenharmony_ci}; 4722851890Sopenharmony_ci#define UNMAP_NOTIFY_CLEAR_BYTE 0x1 4822851890Sopenharmony_ci#define UNMAP_NOTIFY_SEND_EVENT 0x2 4922851890Sopenharmony_ci#endif 50