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