blob: 71ea4de1097ee023da6f4e3edad0662af83d6075 [file] [log] [blame]
Jens Wiklander52c798e2015-12-07 14:37:10 +01001/*
Hongbo Zhang32338ec2018-04-19 13:06:07 +08002 * Copyright (c) 2015-2019, 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
Michalis Pappascca6cb72018-03-04 15:43:38 +080031void qemu_console_init(void);
Michalis Pappascca6cb72018-03-04 15:43:38 +080032
Hongbo Zhang32338ec2018-04-19 13:06:07 +080033void plat_qemu_gic_init(void);
34void qemu_pwr_gic_on_finish(void);
35
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000036#endif /* QEMU_PRIVATE_H */