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