blob: e80a88d5fe9b2138880f7a9537a4b5c3d7707f24 [file] [log] [blame]
Jens Wiklander52c798e2015-12-07 14:37:10 +01001/*
Marcin Juszkiewiczb6839fb2023-05-10 10:03:01 +02002 * Copyright (c) 2015-2023, 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);
Marcin Juszkiewiczb6839fb2023-05-10 10:03:01 +020021#ifdef PLAT_qemu_sbsa
22void sip_svc_init(void);
23#endif
Michalis Pappascca6cb72018-03-04 15:43:38 +080024
Hongbo Zhang32338ec2018-04-19 13:06:07 +080025void plat_qemu_gic_init(void);
26void qemu_pwr_gic_on_finish(void);
Andrew Walbran8fe72b92020-01-23 16:22:44 +000027void qemu_pwr_gic_off(void);
Hongbo Zhang32338ec2018-04-19 13:06:07 +080028
Ruchika Gupta5c172532022-04-08 13:14:44 +053029int qemu_set_tos_fw_info(uintptr_t config_base, uintptr_t log_addr,
30 size_t log_size);
31
32int qemu_set_nt_fw_info(
33/*
34 * Currently OP-TEE does not support reading DTBs from Secure memory
35 * and this option should be removed when feature is supported.
36 */
37#ifdef SPD_opteed
38 uintptr_t log_addr,
39#endif
40 size_t log_size,
41 uintptr_t *ns_log_addr);
42
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000043#endif /* QEMU_PRIVATE_H */