blob: db615004aa54c0ad7179a48032548b04555323ae [file] [log] [blame]
Anastasiia Lukianenkob6618c42020-08-21 12:10:04 +03001/* SPDX-License-Identifier: GPL-2.0
Oleksandr Andrushchenko3cc1dcc2020-08-06 12:42:54 +03002 *
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
12void init_gnttab(void);
13void fini_gnttab(void);
14
15grant_ref_t gnttab_alloc_and_grant(void **map);
16grant_ref_t gnttab_grant_access(domid_t domid, unsigned long frame,
17 int readonly);
18int gnttab_end_access(grant_ref_t ref);
19const char *gnttabop_error(int16_t status);
20
21void get_gnttab_base(phys_addr_t *gnttab_base, phys_size_t *gnttab_sz);
22
23#endif /* !__GNTTAB_H__ */