⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flstdcmp.h

📁 H3 M-system NAND flash driver in Linux OS, M-DOC driver
💻 H
字号:
/****************************************************************************** *                                                                            * * Project: DOC Driver for Linux 2.4 Block device driver for mDOC H3  family  * * of devices under Linux kernel 2.4.                                         * *                                                                            * *   Version: 1.0                                                             * *   Email questions to: oemsupport@sandisk.com                               * *   Copyright (C) SanDisk IL Ltd. 1995 - 2007                                * *   SanDisk IL Ltd., 7 Atir Yeda Street, Kfar Saba 44425, Israel             * *                                                                            * ****************************************************************************** *                                                                            * * This program is free software; you can redistribute it and/or modify it    * * under the terms of the GNU General Public License as published by the Free * * Software Foundation; either version 2 of the License, or any later version.* * This program is distributed in the hope that it will be useful, but WITHOUT* * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      * * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for  * * more details, which is set forth in the readme.txt file.                   * * You should have received a copy of the GNU General Public License along    * * with this program; if not, write to the Free Software Foundation, Inc., 51 * * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA                    * *                                                                            * * This License does not grant you any right to use the trademarks, service   * * marks or logos of SanDisk IL Ltd. or SanDisk Corporation.                  * * Subject to the foregoing, SanDisk IL Ltd., for itself and on behalf of its * * licensors, hereby reserves all intellectual property rights in the program,* * except for the rights expressly granted in this License.                   * *                                                                            * ******************************************************************************//*
 * $Log:   V:/PVCSDB/DiskOnChip/archives/version 6.3-up/TrueFFS/src/flstdcmp.h-arc  $
 * 
 *    Rev 1.23.1.0   Oct 22 2006 14:54:06   yaniv.iarovici
 * Changed flRegisterDOCH3SOC()return type to FLStatus.
 * 
 *    Rev 1.23   Oct 09 2006 14:05:48   yaniv.iarovici
 * 1. Removed #ifndef FL_DO_NOT_SUPPORT_H3
 * 2. Removed legacy devices related code and definitions
 * 
 *    Rev 1.22   Sep 13 2006 10:30:46   yaniv.iarovici
 * Fix compilation warnings
 * 
 *    Rev 1.21   Sep 11 2006 13:45:22   yaniv.iarovici
 * Legal header added
 * 
 *    Rev 1.20   Aug 09 2006 16:52:50   Polina.Marimont
 * initial for DOC Driver 1.0
 */

#ifndef FLSTDCOMP_H
#define FLSTDCOMP_H

#include "doch_api.h"

/************************************************************************/
/* Registration routines for socket I/F supplied with TrueFFS		*/
/************************************************************************/

FLStatus  flRegisterDOCH3SOC(FLDword dwAddress);		 /* see TFFS_API.C */	 

/* DiskOnChip H3 Register Routine */
FLStatus  flRegisterDochParams(void);

/* DiskOnChip H3 Access layer routine - not used in 7.x version */
#ifdef DOCH_USE_FUNC
#define flRegisterDOCH_Hal_SPI()    ((hal_init_spi(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#define flRegisterDOCH_Hal_SIM()    ((hal_init_sim(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#define flRegisterDOCH_Hal_NOR() 	((hal_init_nor(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#else /*DOCH_USE_FUNC*/
#define flRegisterDOCH_Hal_SPI()    ((hal_init_spi_noFunc(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#define flRegisterDOCH_Hal_SIM()    ((hal_init_sim_noFunc(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#define flRegisterDOCH_Hal_NOR() 	((hal_init_nor_noFunc(0) == 0) ? DOCH_OK : DOCH_GeneralFailure)
#endif /*DOCH_USE_FUNC*/

#endif /* FLSTDCOMP_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -