📄 flash_msg.h
字号:
#ifndef __FLASH_MSG_H__#define __FLASH_MSG_H__/********************************************************************** * flash_msg.h * * Flash message header. * * * Copyright (C) 2006, Qualcomm, Inc. * **********************************************************************//*=========================================================================== EDIT HISTORY FOR MODULE This section contains comments describing changes made to the module. Notice that changes are listed in reverse chronological order. $Header: //depot/asic/msmshared/drivers/flash/MSM_FLASH.01.04/flash_msg.h#3 $ $DateTime: 2006/05/16 22:40:13 $ $Author: dhamimp $when who what, where, why-------- --- ----------------------------------------------------------2006-02-06 dp Created===========================================================================*/#include "comdef.h"#ifdef FEATURE_IG_EFS_EXT_SERVER #include "efs2_ext_server_stub.h" #include "msmhwio.h" #include "msmhwioreg.h"#else#include "clk.h"#endif/* * NOTE: The flash drivers are called by the file system code and the * flash programming tools. It is never appropriate to call ERR_FATAL * macro directly. * In the flash programming tools, ERR_FATAL is not defined at all. In * AMSS, even though ERR_FATAL is defined, it makes calls that try to log * to the file system and if we just got a fatal error by being called * by the file system code, then we don't want to try to use the file * system to log the error. So the wrapper macro turns off logging and * then displays the error message in the normal fashion. * The version of this fatal error macro for flash tools merely goes * into an infinite loop. */#if defined(BUILD_BOOT_CHAIN) #include "oemsbl.h" #undef MSG_HIGH #define MSG_HIGH(x,a,b,c) /**/ #define FLASH_ERR_FATAL(x,a,b,c) do { OEMSBL_KICK_WATCHDOG(); } while (1) #define DPRINTF(x) #define TPRINTF(level, x)#elif defined(BUILD_JNAND) #include "jnand_msm.h" #include "jnand_msg.h" #undef MSG_HIGH #define MSG_HIGH(x,a,b,c) /**/ #define FLASH_ERR_FATAL(x,a,b,c) do { KICK_WATCHDOG(); } while (1)#elif defined(BUILD_NANDPRG) #include "ap_armprg.h" #include "ap_msm.h" #undef MSG_HIGH #define MSG_HIGH(x,a,b,c) /**/ #define FLASH_ERR_FATAL(x,a,b,c) do { KICK_WATCHDOG(); } while (1)#elif defined (BUILD_JFLASH) #include "jfi.h" #include "jflash_msg.h" #undef MSG_HIGH #define MSG_HIGH(x,a,b,c) /**/ #define FLASH_ERR_FATAL(x,a,b,c) do { KICK_WATCHDOG(); } while (1)#elif defined (BUILD_ARMPRG) #include "ap_armprg.h" #include "ap_msm.h" #include "ap_flash.h" #undef MSG_HIGH #define MSG_HIGH(x,a,b,c) /**/ #define FLASH_ERR_FATAL(x,a,b,c) do { KICK_WATCHDOG(); } while (1)#else #include "msg.h" #include "err.h" #define FLASH_ERR_FATAL(fmt,a,b,c) \ do { \ err_disable_fs_log (); \ ERR_FATAL (fmt, a, b, c); \ } while (0) #define DPRINTF(x) #define TPRINTF(level, x)#endif/* This header file has to be at the bottom to undefine certain** macros in order to void compile errors in oemsbl.*/#if defined(BUILD_BOOT_CHAIN) #include "custoemsbl.h"#endif#ifdef FEATURE_IG_EFS_EXT_SERVER static void *memcpy (long *, const long *, unsigned long);extern dword msm6550_int_cntl_safe_read( dword address, dword mask );#endif /* FEATURE_IG_EFS_EXT_SERVER */#endif /* __FLASH_MSG_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -