blob: 0fb7cd5fd22086fabb4a691147ebfc8d8984ad51 [file] [log] [blame]
Jens Wiklander52c798e2015-12-07 14:37:10 +01001/*
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +01002 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
Jens Wiklander52c798e2015-12-07 14:37:10 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Jens Wiklander52c798e2015-12-07 14:37:10 +01005 */
6
7#ifndef __QEMU_PRIVATE_H
8#define __QEMU_PRIVATE_H
9
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <stdint.h>
Jens Wiklander52c798e2015-12-07 14:37:10 +010011
Michalis Pappasba861122018-02-28 14:36:03 +080012#include "../../bl1/bl1_private.h"
13
Etienne Carriere911de8c2018-02-02 13:23:22 +010014void qemu_configure_mmu_secure(unsigned long total_base,
15 unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080016 unsigned long code_start, unsigned long code_limit,
Etienne Carriere911de8c2018-02-02 13:23:22 +010017 unsigned long ro_start, unsigned long ro_limit,
18 unsigned long coh_start, unsigned long coh_limit);
19
Jens Wiklander52c798e2015-12-07 14:37:10 +010020void qemu_configure_mmu_el1(unsigned long total_base, unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080021 unsigned long code_start, unsigned long code_limit,
Jens Wiklander52c798e2015-12-07 14:37:10 +010022 unsigned long ro_start, unsigned long ro_limit,
23 unsigned long coh_start, unsigned long coh_limit);
24
25void qemu_configure_mmu_el3(unsigned long total_base, unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080026 unsigned long code_start, unsigned long code_limit,
Jens Wiklander52c798e2015-12-07 14:37:10 +010027 unsigned long ro_start, unsigned long ro_limit,
28 unsigned long coh_start, unsigned long coh_limit);
29
30void plat_qemu_io_setup(void);
31unsigned int plat_qemu_calc_core_pos(u_register_t mpidr);
32
33int dt_add_psci_node(void *fdt);
34int dt_add_psci_cpu_enable_methods(void *fdt);
35
Michalis Pappascca6cb72018-03-04 15:43:38 +080036void qemu_console_init(void);
Michalis Pappascca6cb72018-03-04 15:43:38 +080037
Jens Wiklander52c798e2015-12-07 14:37:10 +010038#endif /*__QEMU_PRIVATE_H*/