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