Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 93c78ed | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 2 | * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 3 | * |
dp-arm | 82cb2c1 | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | c3cf06f | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef QEMU_PRIVATE_H |
| 8 | #define QEMU_PRIVATE_H |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | 93c78ed | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 11 | |
Antonio Nino Diaz | 1ba2ff7 | 2018-09-26 09:29:45 +0100 | [diff] [blame] | 12 | void qemu_configure_mmu_svc_mon(unsigned long total_base, |
Etienne Carriere | 765ed9f | 2018-02-02 13:23:22 +0100 | [diff] [blame] | 13 | unsigned long total_size, |
Michalis Pappas | 27e0cca | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 14 | unsigned long code_start, unsigned long code_limit, |
Etienne Carriere | 765ed9f | 2018-02-02 13:23:22 +0100 | [diff] [blame] | 15 | unsigned long ro_start, unsigned long ro_limit, |
| 16 | unsigned long coh_start, unsigned long coh_limit); |
| 17 | |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 18 | void qemu_configure_mmu_el1(unsigned long total_base, unsigned long total_size, |
Michalis Pappas | 27e0cca | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 19 | unsigned long code_start, unsigned long code_limit, |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 20 | unsigned long ro_start, unsigned long ro_limit, |
| 21 | unsigned long coh_start, unsigned long coh_limit); |
| 22 | |
| 23 | void qemu_configure_mmu_el3(unsigned long total_base, unsigned long total_size, |
Michalis Pappas | 27e0cca | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 24 | unsigned long code_start, unsigned long code_limit, |
Jens Wiklander | 419e0d2 | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 25 | unsigned long ro_start, unsigned long ro_limit, |
| 26 | unsigned long coh_start, unsigned long coh_limit); |
| 27 | |
| 28 | void plat_qemu_io_setup(void); |
| 29 | unsigned int plat_qemu_calc_core_pos(u_register_t mpidr); |
| 30 | |
| 31 | int dt_add_psci_node(void *fdt); |
| 32 | int dt_add_psci_cpu_enable_methods(void *fdt); |
| 33 | |
Michalis Pappas | 6a55f6a | 2018-03-04 15:43:38 +0800 | [diff] [blame] | 34 | void qemu_console_init(void); |
Michalis Pappas | 6a55f6a | 2018-03-04 15:43:38 +0800 | [diff] [blame] | 35 | |
Antonio Nino Diaz | c3cf06f | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 36 | #endif /* QEMU_PRIVATE_H */ |