]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/XenBusDxe/EventChannel.c
OvmfPkg/XenBusDxe: Add Event Channel Notify.
[mirror_edk2.git] / OvmfPkg / XenBusDxe / EventChannel.c
CommitLineData
f1259bba
AP
1/** @file\r
2 Event Channel function implementation.\r
3\r
4 Event channel are use to notify of an event that happend in a shared\r
5 structure for example.\r
6\r
7 Copyright (C) 2014, Citrix Ltd.\r
8\r
9 This program and the accompanying materials\r
10 are licensed and made available under the terms and conditions of the BSD License\r
11 which accompanies this distribution. The full text of the license may be found at\r
12 http://opensource.org/licenses/bsd-license.php\r
13\r
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16\r
17**/\r
18#include "EventChannel.h"\r
19#include "XenHypercall.h"\r
20\r
21UINT32\r
22XenEventChannelNotify (\r
23 IN XENBUS_DEVICE *Dev,\r
24 IN evtchn_port_t Port\r
25 )\r
26{\r
27 INTN ReturnCode;\r
28 evtchn_send_t Send;\r
29\r
30 Send.port = Port;\r
31 ReturnCode = XenHypercallEventChannelOp (Dev, EVTCHNOP_send, &Send);\r
32 return ReturnCode;\r
33}\r