]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenBusDxe/EventChannel.h
2 Event Channel function declaration.
4 Copyright (C) 2014, Citrix Ltd.
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __XENBUS_EVENT_CHANNEL_H
16 #define __XENBUS_EVENT_CHANNEL_H
18 #include "XenBusDxe.h"
20 #include <IndustryStandard/Xen/event_channel.h>
23 Send an event to the remote end of the channel whose local endpoint is Port.
25 @param Dev A pointer to XENBUS_DEVICE.
26 @param Port The port to notify.
28 @return Return 0 on success, or return the errno code from the hypercall.
31 XenEventChannelNotify (
32 IN XENBUS_DEVICE
*Dev
,
41 Allocate a port that can be bind from domain DomainId.
43 @param This A pointer to the XENBUS_PROTOCOL.
44 @param DomainId The domain ID that can bind the newly allocated port.
45 @param Port A pointer to a evtchn_port_t that will contain the newly
48 @retval UINT32 The return value from the hypercall, 0 if success.
52 XenBusEventChannelAllocate (
53 IN XENBUS_PROTOCOL
*This
,
55 OUT evtchn_port_t
*Port
59 Send an event to the remote end of the channel whose local endpoint is Port.
61 @param This A pointer to the XENBUS_PROTOCOL.
62 @param Port Local port to the the event from.
64 @retval UINT32 The return value from the hypercall, 0 if success.
68 XenBusEventChannelNotify (
69 IN XENBUS_PROTOCOL
*This
,
74 Close a local event channel Port.
76 @param This A pointer to the XENBUS_PROTOCOL.
77 @param Port The event channel to close.
79 @retval UINT32 The return value from the hypercall, 0 if success.
83 XenBusEventChannelClose (
84 IN XENBUS_PROTOCOL
*This
,