]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenBusDxe/GrantTable.h
2 Grant Table function declaration.
4 Grant Table are used to grant access to certain page of the current
7 Copyright (C) 2014, Citrix Ltd.
9 SPDX-License-Identifier: BSD-2-Clause-Patent
15 #include <IndustryStandard/Xen/grant_table.h>
18 Initialize the Grant Table at the address MmioAddr.
20 @param Dev A pointer to XENBUS_DEVICE.
21 @param MmioAddr An address where the grant table can be mapped into
30 De-initialize the Grant Table.
38 Grant access to the page Frame to the domain DomainId.
40 @param This A pointer to XENBUS_PROTOCOL instance.
41 @param DomainId ID of the domain to grant access to.
42 @param Frame Frame Number of the page to grant access to.
43 @param ReadOnly Provide read-only or read-write access.
44 @param RefPtr Reference number of the grant will be written to this pointer.
49 IN XENBUS_PROTOCOL
*This
,
51 IN UINTN Frame
, // MFN
53 OUT grant_ref_t
*RefPtr
57 End access to grant Ref, previously return by XenBusGrantAccess.
59 @param This A pointer to XENBUS_PROTOCOL instance.
60 @param Ref Reference numeber of a grant previously returned by
65 XenBusGrantEndAccess (
66 IN XENBUS_PROTOCOL
*This
,
70 #endif /* !__GNTTAB_H__ */