Oleksandr Andrushchenko | 2280d33 | 2020-08-06 12:42:48 +0300 | [diff] [blame] | 1 | /* 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 Andrushchenko | 3cc1dcc | 2020-08-06 12:42:54 +0300 | [diff] [blame] | 11 | * Map Xen memory pages, initialize event handler and xenbus, |
| 12 | * setup the grant table. |
Oleksandr Andrushchenko | 2280d33 | 2020-08-06 12:42:48 +0300 | [diff] [blame] | 13 | */ |
Ovidiu Panait | b5738e6 | 2020-11-28 10:43:14 +0200 | [diff] [blame] | 14 | int xen_init(void); |
Oleksandr Andrushchenko | 2280d33 | 2020-08-06 12:42:48 +0300 | [diff] [blame] | 15 | |
Oleksandr Andrushchenko | 10fa536 | 2020-08-06 12:43:00 +0300 | [diff] [blame] | 16 | /** |
| 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 | */ |
| 22 | void xen_fini(void); |
| 23 | |
Oleksandr Andrushchenko | 2280d33 | 2020-08-06 12:42:48 +0300 | [diff] [blame] | 24 | #endif /* __XEN_H__ */ |