~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: db615004aa54c0ad7179a48032548b04555323ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0
 *
 * (C) 2006, Steven Smith <sos22@cam.ac.uk>
 * (C) 2006, Grzegorz Milos <gm281@cam.ac.uk>
 * (C) 2020, EPAM Systems Inc.
 */
#ifndef __GNTTAB_H__
#define __GNTTAB_H__

#include <xen/interface/grant_table.h>

void init_gnttab(void);
void fini_gnttab(void);

grant_ref_t gnttab_alloc_and_grant(void **map);
grant_ref_t gnttab_grant_access(domid_t domid, unsigned long frame,
				int readonly);
int gnttab_end_access(grant_ref_t ref);
const char *gnttabop_error(int16_t status);

void get_gnttab_base(phys_addr_t *gnttab_base, phys_size_t *gnttab_sz);

#endif /* !__GNTTAB_H__ */