coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mcu_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_MTLIB_COMMON_H
4 #define SOC_MEDIATEK_MTLIB_COMMON_H
5 
6 struct mtk_mcu {
7  const char *firmware_name; /* The firmware file name in CBFS */
8  void *run_address; /* The address for running the firmware */
9  size_t run_size; /* The buffer for loading the firmware */
10  void *load_buffer; /* The buffer size */
11  size_t buffer_size; /* The firmware real size */
12  void *priv; /* The additional data required by the reset callback */
13  void (*reset)(struct mtk_mcu *mcu); /* The reset callback */
14 };
15 
16 int mtk_init_mcu(struct mtk_mcu *mcu);
17 
18 #endif /* SOC_MEDIATEK_MTLIB_COMMON_H */
int mtk_init_mcu(struct mtk_mcu *mcu)
Definition: mcu.c:10
size_t buffer_size
Definition: mcu_common.h:11
void * run_address
Definition: mcu_common.h:8
const char * firmware_name
Definition: mcu_common.h:7
void * priv
Definition: mcu_common.h:12
void(* reset)(struct mtk_mcu *mcu)
Definition: mcu_common.h:13
void * load_buffer
Definition: mcu_common.h:10
size_t run_size
Definition: mcu_common.h:9
typedef void(X86APIP X86EMU_intrFuncs)(int num)