36 lines
550 B
C
36 lines
550 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|||
|
|
/*
|
||
|
|
* Copyright (c) 2021 Amlogic, Inc. All rights reserved.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef _RTOSINFO_H_
|
||
|
|
#define _RTOSINFO_H_
|
||
|
|
|
||
|
|
#define VERSION_1_0 0x10
|
||
|
|
|
||
|
|
enum ertosstate {
|
||
|
|
ertosstat_off = 0,
|
||
|
|
ertosstat_initializing,
|
||
|
|
ertosstat_working,
|
||
|
|
ertosstat_done,
|
||
|
|
ertosstat_release,
|
||
|
|
};
|
||
|
|
|
||
|
|
struct xrtosinfo_t {
|
||
|
|
u32 version;
|
||
|
|
u32 status;
|
||
|
|
u32 cpumask;
|
||
|
|
u32 flags;
|
||
|
|
u32 logbuf_len;
|
||
|
|
u32 logbuf_phy;
|
||
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_FREERTOS_T7)
|
||
|
|
u32 rtos_run_flag;
|
||
|
|
u32 android_status;
|
||
|
|
u32 reserved0;
|
||
|
|
u32 reserved1;
|
||
|
|
#endif
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|