VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/XenBusDxe/EventChannel.h@ 102466

Last change on this file since 102466 was 99404, checked in by vboxsync, 23 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1/** @file
2 Event Channel function declaration.
3
4 Copyright (C) 2014, Citrix Ltd.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef __XENBUS_EVENT_CHANNEL_H
11#define __XENBUS_EVENT_CHANNEL_H
12
13#include "XenBusDxe.h"
14
15#include <IndustryStandard/Xen/event_channel.h>
16
17/**
18 Send an event to the remote end of the channel whose local endpoint is Port.
19
20 @param Dev A pointer to XENBUS_DEVICE.
21 @param Port The port to notify.
22
23 @return Return 0 on success, or return the errno code from the hypercall.
24**/
25UINT32
26XenEventChannelNotify (
27 IN XENBUS_DEVICE *Dev,
28 IN evtchn_port_t Port
29 );
30
31/*
32 * XenBus protocol
33 */
34
35/**
36 Allocate a port that can be bind from domain DomainId.
37
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
41 allocated port.
42
43 @retval UINT32 The return value from the hypercall, 0 if success.
44**/
45UINT32
46EFIAPI
47XenBusEventChannelAllocate (
48 IN XENBUS_PROTOCOL *This,
49 IN domid_t DomainId,
50 OUT evtchn_port_t *Port
51 );
52
53/**
54 Send an event to the remote end of the channel whose local endpoint is Port.
55
56 @param This A pointer to the XENBUS_PROTOCOL.
57 @param Port Local port to the event from.
58
59 @retval UINT32 The return value from the hypercall, 0 if success.
60**/
61UINT32
62EFIAPI
63XenBusEventChannelNotify (
64 IN XENBUS_PROTOCOL *This,
65 IN evtchn_port_t Port
66 );
67
68/**
69 Close a local event channel Port.
70
71 @param This A pointer to the XENBUS_PROTOCOL.
72 @param Port The event channel to close.
73
74 @retval UINT32 The return value from the hypercall, 0 if success.
75**/
76UINT32
77EFIAPI
78XenBusEventChannelClose (
79 IN XENBUS_PROTOCOL *This,
80 IN evtchn_port_t Port
81 );
82
83#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette