]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenBusDxe/EventChannel.h
2 Event Channel function declaration.
4 Copyright (C) 2014, Citrix Ltd.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __XENBUS_EVENT_CHANNEL_H
11 #define __XENBUS_EVENT_CHANNEL_H
13 #include "XenBusDxe.h"
15 #include <IndustryStandard/Xen/event_channel.h>
18 Send an event to the remote end of the channel whose local endpoint is Port.
20 @param Dev A pointer to XENBUS_DEVICE.
21 @param Port The port to notify.
23 @return Return 0 on success, or return the errno code from the hypercall.
26 XenEventChannelNotify (
27 IN XENBUS_DEVICE
*Dev
,
36 Allocate a port that can be bind from domain DomainId.
38 @param This A pointer to the XENBUS_PROTOCOL.
39 @param DomainId The domain ID that can bind the newly allocated port.
40 @param Port A pointer to a evtchn_port_t that will contain the newly
43 @retval UINT32 The return value from the hypercall, 0 if success.
47 XenBusEventChannelAllocate (
48 IN XENBUS_PROTOCOL
*This
,
50 OUT evtchn_port_t
*Port
54 Send an event to the remote end of the channel whose local endpoint is Port.
56 @param This A pointer to the XENBUS_PROTOCOL.
57 @param Port Local port to the event from.
59 @retval UINT32 The return value from the hypercall, 0 if success.
63 XenBusEventChannelNotify (
64 IN XENBUS_PROTOCOL
*This
,
69 Close a local event channel Port.
71 @param This A pointer to the XENBUS_PROTOCOL.
72 @param Port The event channel to close.
74 @retval UINT32 The return value from the hypercall, 0 if success.
78 XenBusEventChannelClose (
79 IN XENBUS_PROTOCOL
*This
,