]>
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
16 #include <IndustryStandard/Xen/grant_table.h>
19 Initialize the Grant Table at the address MmioAddr.
21 @param Dev A pointer to XENBUS_DEVICE.
22 @param MmioAddr An address where the grant table can be mapped into
31 De-initialize the Grant Table.
39 Grant access to the page Frame to the domain DomainId.
41 @param This A pointer to XENBUS_PROTOCOL instance.
42 @param DomainId ID of the domain to grant access to.
43 @param Frame Frame Number of the page to grant access to.
44 @param ReadOnly Provide read-only or read-write access.
45 @param RefPtr Reference number of the grant will be written to this pointer.
50 IN XENBUS_PROTOCOL
*This
,
52 IN UINTN Frame
, // MFN
54 OUT grant_ref_t
*RefPtr
58 End access to grant Ref, previously return by XenBusGrantAccess.
60 @param This A pointer to XENBUS_PROTOCOL instance.
61 @param Ref Reference numeber of a grant previously returned by
66 XenBusGrantEndAccess (
67 IN XENBUS_PROTOCOL
*This
,
71 #endif /* !__GNTTAB_H__ */