blob: 754831ab5af38caaf87d36e9d224c04a42ed4bc3 [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef QEMU_PRIVATE_H
8#define QEMU_PRIVATE_H
Jens Wiklander52c798e2015-12-07 14:37:10 +01009
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <stdint.h>
Jens Wiklander52c798e2015-12-07 14:37:10 +010011
Antonio Nino Diaz099b0b12018-09-26 09:29:45 +010012void qemu_configure_mmu_svc_mon(unsigned long total_base,
Etienne Carriere911de8c2018-02-02 13:23:22 +010013 unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080014 unsigned long code_start, unsigned long code_limit,
Etienne Carriere911de8c2018-02-02 13:23:22 +010015 unsigned long ro_start, unsigned long ro_limit,
16 unsigned long coh_start, unsigned long coh_limit);
17
Jens Wiklander52c798e2015-12-07 14:37:10 +010018void qemu_configure_mmu_el1(unsigned long total_base, unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080019 unsigned long code_start, unsigned long code_limit,
Jens Wiklander52c798e2015-12-07 14:37:10 +010020 unsigned long ro_start, unsigned long ro_limit,
21 unsigned long coh_start, unsigned long coh_limit);
22
23void qemu_configure_mmu_el3(unsigned long total_base, unsigned long total_size,
Michalis Pappasba861122018-02-28 14:36:03 +080024 unsigned long code_start, unsigned long code_limit,
Jens Wiklander52c798e2015-12-07 14:37:10 +010025 unsigned long ro_start, unsigned long ro_limit,
26 unsigned long coh_start, unsigned long coh_limit);
27
28void plat_qemu_io_setup(void);
29unsigned int plat_qemu_calc_core_pos(u_register_t mpidr);
30
31int dt_add_psci_node(void *fdt);
32int dt_add_psci_cpu_enable_methods(void *fdt);
33
Michalis Pappascca6cb72018-03-04 15:43:38 +080034void qemu_console_init(void);
Michalis Pappascca6cb72018-03-04 15:43:38 +080035
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000036#endif /* QEMU_PRIVATE_H */