blob: a68541c81b83e2099853b215bc63b9a9789ba851 [file] [log] [blame]
/*
* include/soc/asr/asr_mflag.h
*
*/
#ifndef __ASR_MFLAG_H__
#define __ASR_MFLAG_H__
#include <linux/kernel.h>
#define ASR_MFLAG_OFFSET_FROM_CRASHKERNEL (0x300)
#define AP_DIAG_BUF_SET_MAGIC (0x41504447) /* APDG */
#define AP_DIAG_BUF_SET_MAGIC2 (0x41504467) /* APDg */
/* resever a 128 bytes(0x300 to 0x380) structure to save asr memory flags */
struct asr_mflag {
u32 reserved1[0x28 / sizeof(u32)];
u32 diag_buff_magic;
u32 diag_buff_addr;
u32 diag_buff_len;
u32 fastboot_flag; /* fast boot mode flag, offset 0x34 */
u32 ubifs_error_magic; /* ubifs error magic offset 0x38 */
u32 ubifs_error_type; /* ubifs error magic offset 0x3c */
u32 reserved2[0x40 / sizeof(u32)];
} __attribute__ ((__packed__));
extern struct asr_mflag * get_asr_mflag(void);
#endif