1/*
2 * This header was generated from the Linux kernel headers by update_headers.py,
3 * to provide necessary information from kernel to userspace, such as constants,
4 * structures, and macros, and thus, contains no copyrightable information.
5 */
6#ifndef __LINUX_PUBLIC_EVTCHN_H__
7#define __LINUX_PUBLIC_EVTCHN_H__
8#define IOCTL_EVTCHN_BIND_VIRQ				\
9	_IOC(_IOC_NONE, 'E', 0, sizeof(struct ioctl_evtchn_bind_virq))
10struct ioctl_evtchn_bind_virq {
11	unsigned int virq;
12};
13#define IOCTL_EVTCHN_BIND_INTERDOMAIN			\
14	_IOC(_IOC_NONE, 'E', 1, sizeof(struct ioctl_evtchn_bind_interdomain))
15struct ioctl_evtchn_bind_interdomain {
16	unsigned int remote_domain, remote_port;
17};
18#define IOCTL_EVTCHN_BIND_UNBOUND_PORT			\
19	_IOC(_IOC_NONE, 'E', 2, sizeof(struct ioctl_evtchn_bind_unbound_port))
20struct ioctl_evtchn_bind_unbound_port {
21	unsigned int remote_domain;
22};
23#define IOCTL_EVTCHN_UNBIND				\
24	_IOC(_IOC_NONE, 'E', 3, sizeof(struct ioctl_evtchn_unbind))
25struct ioctl_evtchn_unbind {
26	unsigned int port;
27};
28#define IOCTL_EVTCHN_NOTIFY				\
29	_IOC(_IOC_NONE, 'E', 4, sizeof(struct ioctl_evtchn_notify))
30struct ioctl_evtchn_notify {
31	unsigned int port;
32};
33#define IOCTL_EVTCHN_RESET				\
34	_IOC(_IOC_NONE, 'E', 5, 0)
35#define IOCTL_EVTCHN_RESTRICT_DOMID			\
36	_IOC(_IOC_NONE, 'E', 6, sizeof(struct ioctl_evtchn_restrict_domid))
37struct ioctl_evtchn_restrict_domid {
38	domid_t domid;
39};
40#endif
41