Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 1 | /* |
Hongbo Zhang | 32338ec | 2018-04-19 13:06:07 +0800 | [diff] [blame] | 2 | * Copyright (c) 2015-2019, 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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef QEMU_PRIVATE_H |
| 8 | #define QEMU_PRIVATE_H |
Jens Wiklander | 52c798e | 2015-12-07 14:37:10 +0100 | [diff] [blame] | 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 | |
Antonio Nino Diaz | 099b0b1 | 2018-09-26 09:29:45 +0100 | [diff] [blame] | 12 | void qemu_configure_mmu_svc_mon(unsigned long total_base, |
Etienne Carriere | 911de8c | 2018-02-02 13:23:22 +0100 | [diff] [blame] | 13 | unsigned long total_size, |
Michalis Pappas | ba86112 | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 14 | unsigned long code_start, unsigned long code_limit, |
Etienne Carriere | 911de8c | 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 | 52c798e | 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 | ba86112 | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 19 | unsigned long code_start, unsigned long code_limit, |
Jens Wiklander | 52c798e | 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 | ba86112 | 2018-02-28 14:36:03 +0800 | [diff] [blame] | 24 | unsigned long code_start, unsigned long code_limit, |
Jens Wiklander | 52c798e | 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 | |
Michalis Pappas | cca6cb7 | 2018-03-04 15:43:38 +0800 | [diff] [blame] | 31 | void qemu_console_init(void); |
Michalis Pappas | cca6cb7 | 2018-03-04 15:43:38 +0800 | [diff] [blame] | 32 | |
Hongbo Zhang | 32338ec | 2018-04-19 13:06:07 +0800 | [diff] [blame] | 33 | void plat_qemu_gic_init(void); |
| 34 | void qemu_pwr_gic_on_finish(void); |
| 35 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 36 | #endif /* QEMU_PRIVATE_H */ |