1 /* SPDX-License-Identifier: GPL-2.0 2 * 3 * (C) 2006, Steven Smith <sos22@cam.ac.uk> 4 * (C) 2006, Grzegorz Milos <gm281@cam.ac.uk> 5 * (C) 2020, EPAM Systems Inc. 6 */ 7 #ifndef __GNTTAB_H__ 8 #define __GNTTAB_H__ 9 10 #include <xen/interface/grant_table.h> 11 12 void init_gnttab(void); 13 void fini_gnttab(void); 14 15 grant_ref_t gnttab_alloc_and_grant(void **map); 16 grant_ref_t gnttab_grant_access(domid_t domid, unsigned long frame, 17 int readonly); 18 int gnttab_end_access(grant_ref_t ref); 19 const char *gnttabop_error(int16_t status); 20 21 void get_gnttab_base(phys_addr_t *gnttab_base, phys_size_t *gnttab_sz); 22 23 #endif /* !__GNTTAB_H__ */ 24