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

📄 flcustom.c

📁 H3 M-system NAND flash driver in Linux OS, M-DOC driver
💻 C
字号:
/****************************************************************************** *                                                                            * * Project: DOC Driver for Linux 2.6 Block device driver for mDOC H3  family  * * of devices under Linux kernel 2.6.                                         * *                                                                            * *   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$ *//* * includes */#include "flsystem.h"#include "tffsdrv.h"#include "flstdcmp.h"#ifdef FL_ENVIRONMENT_VARS/*---------------------------------------------------------------------*//*                 f l s e t E n v V a r                               *//*  Sets the value of all environment variaes                          *//*  Parameters : None                                                  *//*---------------------------------------------------------------------*/void flSetEnvVar ( void ){    /* do nothing */}#endif /* FL_ENVIRONMENT_VARS *//*-----------------------------------------------------------------------* *                                                                       * *           f l R e g i s t e r D o c h P a r a m s                     * *                                                                       * * DOCH socket registration routine.                                     * *                                                                       * * This function is called by DochSDKInit per sokcet at initialization.  * *                                                                       * * Parameters:                                                           * *      None                                                             * *                                                                       * *-----------------------------------------------------------------------*/FLStatus flRegisterDochParams ( void ){    SocketInfo * psoc = &tffsInfo.sockets[0];#ifdef DOCH_USE_FUNC    /* register HAL */    if( flRegisterDOCH_Hal_NOR() != DOCH_OK )    {        PrintkDebug ("flRegisterDOCH_Hal_NOR error");        return flAdapterNotFound;    }#endif    /* register single DOCH socket */    if( flRegisterDOCH3SOC(psoc->dwVirtAddr) != flOK )    {         PrintkDebug ("mDOC not found");         return flAdapterNotFound;    }    PrintkInfo ("mDOC found");     psoc->fFound = 1;    return flOK;}

⌨️ 快捷键说明

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