blob: 199ca018e7c998bf7f230b9a9a8872cbcf9a828a [file] [log] [blame]
Jens Wiklander52c798e2015-12-07 14:37:10 +01001/*
Ruchika Gupta5c172532022-04-08 13:14:44 +05302 * Copyright (c) 2015-2022, 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
Chen Baozif7d9aa82023-02-20 10:50:15 +000012#include <lib/xlat_tables/xlat_tables_compat.h>
Jens Wiklander52c798e2015-12-07 14:37:10 +010013
14void plat_qemu_io_setup(void);
Jens Wiklandera43c1282022-11-22 14:39:26 +010015int qemu_io_register_sp_pkg(const char *name, const char *uuid,
16 uintptr_t load_addr);
Jens Wiklander52c798e2015-12-07 14:37:10 +010017unsigned int plat_qemu_calc_core_pos(u_register_t mpidr);
Chen Baozif7d9aa82023-02-20 10:50:15 +000018const mmap_region_t *plat_qemu_get_mmap(void);
Jens Wiklander52c798e2015-12-07 14:37:10 +010019
Michalis Pappascca6cb72018-03-04 15:43:38 +080020void qemu_console_init(void);
Michalis Pappascca6cb72018-03-04 15:43:38 +080021
Hongbo Zhang32338ec2018-04-19 13:06:07 +080022void plat_qemu_gic_init(void);
23void qemu_pwr_gic_on_finish(void);
Andrew Walbran8fe72b92020-01-23 16:22:44 +000024void qemu_pwr_gic_off(void);
Hongbo Zhang32338ec2018-04-19 13:06:07 +080025
Ruchika Gupta5c172532022-04-08 13:14:44 +053026int qemu_set_tos_fw_info(uintptr_t config_base, uintptr_t log_addr,
27 size_t log_size);
28
29int qemu_set_nt_fw_info(
30/*
31 * Currently OP-TEE does not support reading DTBs from Secure memory
32 * and this option should be removed when feature is supported.
33 */
34#ifdef SPD_opteed
35 uintptr_t log_addr,
36#endif
37 size_t log_size,
38 uintptr_t *ns_log_addr);
39
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000040#endif /* QEMU_PRIVATE_H */