]>
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
9 #ifndef __XENBUS_EVENT_CHANNEL_H
10 #define __XENBUS_EVENT_CHANNEL_H
12 #include "XenBusDxe.h"
14 #include <IndustryStandard/Xen/event_channel.h>
17 Send an event to the remote end of the channel whose local endpoint is Port.
19 @param Dev A pointer to XENBUS_DEVICE.
20 @param Port The port to notify.
22 @return Return 0 on success, or return the errno code from the hypercall.
25 XenEventChannelNotify (
26 IN XENBUS_DEVICE
*Dev
,
35 Allocate a port that can be bind from domain DomainId.
37 @param This A pointer to the XENBUS_PROTOCOL.
38 @param DomainId The domain ID that can bind the newly allocated port.
39 @param Port A pointer to a evtchn_port_t that will contain the newly
42 @retval UINT32 The return value from the hypercall, 0 if success.
46 XenBusEventChannelAllocate (
47 IN XENBUS_PROTOCOL
*This
,
49 OUT evtchn_port_t
*Port
53 Send an event to the remote end of the channel whose local endpoint is Port.
55 @param This A pointer to the XENBUS_PROTOCOL.
56 @param Port Local port to the event from.
58 @retval UINT32 The return value from the hypercall, 0 if success.
62 XenBusEventChannelNotify (
63 IN XENBUS_PROTOCOL
*This
,
68 Close a local event channel Port.
70 @param This A pointer to the XENBUS_PROTOCOL.
71 @param Port The event channel to close.
73 @retval UINT32 The return value from the hypercall, 0 if success.
77 XenBusEventChannelClose (
78 IN XENBUS_PROTOCOL
*This
,