*\r
* Event channels between domains.\r
*\r
- * Permission is hereby granted, free of charge, to any person obtaining a copy\r
- * of this software and associated documentation files (the "Software"), to\r
- * deal in the Software without restriction, including without limitation the\r
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\r
- * sell copies of the Software, and to permit persons to whom the Software is\r
- * furnished to do so, subject to the following conditions:\r
- *\r
- * The above copyright notice and this permission notice shall be included in\r
- * all copies or substantial portions of the Software.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\r
- * DEALINGS IN THE SOFTWARE.\r
+ * SPDX-License-Identifier: MIT\r
*\r
* Copyright (c) 2003-2004, K A Fraser.\r
*/\r
*/\r
\r
/* ` enum event_channel_op { // EVTCHNOP_* => struct evtchn_* */\r
-#define EVTCHNOP_close 3\r
-#define EVTCHNOP_send 4\r
-#define EVTCHNOP_alloc_unbound 6\r
+#define EVTCHNOP_close 3\r
+#define EVTCHNOP_send 4\r
+#define EVTCHNOP_alloc_unbound 6\r
/* ` } */\r
\r
typedef UINT32 evtchn_port_t;\r
-DEFINE_XEN_GUEST_HANDLE(evtchn_port_t);\r
+DEFINE_XEN_GUEST_HANDLE (evtchn_port_t);\r
\r
/*\r
* EVTCHNOP_alloc_unbound: Allocate a port in domain <dom> and mark as\r
* 2. <rdom> may be DOMID_SELF, allowing loopback connections.\r
*/\r
struct evtchn_alloc_unbound {\r
- /* IN parameters */\r
- domid_t dom, remote_dom;\r
- /* OUT parameters */\r
- evtchn_port_t port;\r
+ /* IN parameters */\r
+ domid_t dom, remote_dom;\r
+ /* OUT parameters */\r
+ evtchn_port_t port;\r
};\r
+\r
typedef struct evtchn_alloc_unbound evtchn_alloc_unbound_t;\r
\r
/*\r
* (EVTCHNSTAT_unbound), awaiting a new connection.\r
*/\r
struct evtchn_close {\r
- /* IN parameters. */\r
- evtchn_port_t port;\r
+ /* IN parameters. */\r
+ evtchn_port_t port;\r
};\r
+\r
typedef struct evtchn_close evtchn_close_t;\r
\r
/*\r
* endpoint is <port>.\r
*/\r
struct evtchn_send {\r
- /* IN parameters. */\r
- evtchn_port_t port;\r
+ /* IN parameters. */\r
+ evtchn_port_t port;\r
};\r
+\r
typedef struct evtchn_send evtchn_send_t;\r
\r
#endif /* __XEN_PUBLIC_EVENT_CHANNEL_H__ */\r