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