fpga_private.h 646 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
/*
 * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef FPGA_PRIVATE_H
#define FPGA_PRIVATE_H

10
11
12
13
14
#include "../fpga_def.h"
#include <platform_def.h>

#define C_RUNTIME_READY_KEY	(0xaa55aa55)
#define VALID_MPID		(1U)
15
#define FPGA_MAX_DTB_SIZE	0x10000
16
17
18
19

#ifndef __ASSEMBLER__

extern unsigned char fpga_valid_mpids[PLATFORM_CORE_COUNT];
20
21
22

void fpga_console_init(void);

23
24
25
void plat_fpga_gic_init(void);
void fpga_pwr_gic_on_finish(void);
void fpga_pwr_gic_off(void);
26
27
28
unsigned int plat_fpga_calc_core_pos(uint32_t mpid);

#endif /* __ASSEMBLER__ */
29

30
#endif /* FPGA_PRIVATE_H */