1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __LINUX_PUBLIC_EVTCHN_H__ 8 #define __LINUX_PUBLIC_EVTCHN_H__ 9 #define IOCTL_EVTCHN_BIND_VIRQ _IOC(_IOC_NONE, 'E', 0, sizeof(struct ioctl_evtchn_bind_virq)) 10 struct ioctl_evtchn_bind_virq { 11 unsigned int virq; 12 }; 13 #define IOCTL_EVTCHN_BIND_INTERDOMAIN _IOC(_IOC_NONE, 'E', 1, sizeof(struct ioctl_evtchn_bind_interdomain)) 14 struct ioctl_evtchn_bind_interdomain { 15 unsigned int remote_domain, remote_port; 16 }; 17 #define IOCTL_EVTCHN_BIND_UNBOUND_PORT _IOC(_IOC_NONE, 'E', 2, sizeof(struct ioctl_evtchn_bind_unbound_port)) 18 struct ioctl_evtchn_bind_unbound_port { 19 unsigned int remote_domain; 20 }; 21 #define IOCTL_EVTCHN_UNBIND _IOC(_IOC_NONE, 'E', 3, sizeof(struct ioctl_evtchn_unbind)) 22 struct ioctl_evtchn_unbind { 23 unsigned int port; 24 }; 25 #define IOCTL_EVTCHN_NOTIFY _IOC(_IOC_NONE, 'E', 4, sizeof(struct ioctl_evtchn_notify)) 26 struct ioctl_evtchn_notify { 27 unsigned int port; 28 }; 29 #define IOCTL_EVTCHN_RESET _IOC(_IOC_NONE, 'E', 5, 0) 30 #define IOCTL_EVTCHN_RESTRICT_DOMID _IOC(_IOC_NONE, 'E', 6, sizeof(struct ioctl_evtchn_restrict_domid)) 31 struct ioctl_evtchn_restrict_domid { 32 domid_t domid; 33 }; 34 #define IOCTL_EVTCHN_BIND_STATIC _IOC(_IOC_NONE, 'E', 7, sizeof(struct ioctl_evtchn_bind)) 35 struct ioctl_evtchn_bind { 36 unsigned int port; 37 }; 38 #endif 39