blob: 868132156e9bbcae543dc159ace0baa5e9303654 [file] [log] [blame]
Oleksandr Andrushchenko48654412020-08-06 12:42:48 +03001/* SPDX-License-Identifier: GPL-2.0
2 *
3 * (C) 2020, EPAM Systems Inc.
4 */
5#ifndef __XEN_H__
6#define __XEN_H__
7
8/**
9 * xen_init() - Xen initialization
10 *
Oleksandr Andrushchenkoc8506742020-08-06 12:42:54 +030011 * Map Xen memory pages, initialize event handler and xenbus,
12 * setup the grant table.
Oleksandr Andrushchenko48654412020-08-06 12:42:48 +030013 */
Ovidiu Panaiteb2825b2020-11-28 10:43:14 +020014int xen_init(void);
Oleksandr Andrushchenko48654412020-08-06 12:42:48 +030015
Oleksandr Andrushchenkod17f6692020-08-06 12:43:00 +030016/**
17 * xen_fini() - Board cleanup before Linux kernel start
18 *
19 * Unmap Xen memory pages the specified guest's pseudophysical
20 * address space and unbind all event channels.
21 */
22void xen_fini(void);
23
Oleksandr Andrushchenko48654412020-08-06 12:42:48 +030024#endif /* __XEN_H__ */