]>
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 This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 #include <IndustryStandard/Xen/grant_table.h>
24 Initialize the Grant Table at the address MmioAddr.
26 @param Dev A pointer to XENBUS_DEVICE.
27 @param MmioAddr An address where the grant table can be mapped into
32 IN XENBUS_DEVICE
*Dev
,
37 Desinitilize the Grant Table.
45 Grant access to the page Frame to the domain DomainId.
47 @param This A pointer to XENBUS_PROTOCOL instance.
48 @param DomainId ID of the domain to grant acces to.
49 @param Frame Frame Number of the page to grant access to.
50 @param ReadOnly Provide read-only or read-write access.
51 @param RefPtr Reference number of the grant will be writen to this pointer.
56 IN XENBUS_PROTOCOL
*This
,
58 IN UINTN Frame
, // MFN
60 OUT grant_ref_t
*RefPtr
64 End access to grant Ref, previously return by XenBusGrantAccess.
66 @param This A pointer to XENBUS_PROTOCOL instance.
67 @param Ref Reference numeber of a grant previously returned by
72 XenBusGrantEndAccess (
73 IN XENBUS_PROTOCOL
*This
,
77 #endif /* !__GNTTAB_H__ */