doch_sys.h
来自「H3 M-system NAND flash driver in Linux O」· C头文件 代码 · 共 103 行
H
103 行
/****************************************************************************** * * * 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. * * * ******************************************************************************//***********************************************************************************/
/* */
/* Header file for doch_sys module */
/* */
/***********************************************************************************/
/*
* $Log: V:/PVCSDB/DiskOnChip/archives/Test for 7.x/src/H3/doch_sys.h-arc $
*
* Rev 1.15.1.0 Oct 31 2006 12:23:42 yaniv.iarovici
* Fix compilation warnings.
*
* Rev 1.15 Sep 11 2006 13:45:16 yaniv.iarovici
* Legal header added
*
* Rev 1.14 Aug 09 2006 17:26:54 Polina.Marimont
* initial for DOC Driver 1.0
*
* Rev 1.13.1.0 Aug 08 2006 15:55:26 Polina.Marimont
* DOC Driver 1.0 initial
*
* Rev 1.13 May 18 2006 14:41:20 polina.marimont
* v1.40Fin1, PVCS log inside
*/
#ifndef DOCH_SYS_H
#define DOCH_SYS_H
#include "flcustom.h"
/*
* Access Layer API
*/
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
unsigned char (*hal_get_ata_reg) (volatile unsigned char *base, int reg);
void (*hal_set_ata_reg) (volatile unsigned char *base, int reg, unsigned int val);
unsigned short (*hal_get_ctrl_reg) (volatile unsigned char *base, int reg);
void (*hal_set_ctrl_reg) (volatile unsigned char *base, int reg, unsigned int val);
int (*hal_blk_read) (volatile unsigned char *base, unsigned char *buf, int sectors);
int (*hal_blk_write) (volatile unsigned char *base, unsigned char *buf, int sectors);
int (*hal_doch_release) (int socketNo);
} DOCH_HALRoutnies;
#ifdef __cplusplus
}
#endif
#ifdef FL_MIGRATION_VERSION
#ifndef DOCH_USE_FUNC
#include "defs.h"
#ifdef __cplusplus
extern "C" {
#endif
extern FLFlash * DOCHFlash;
#ifdef __cplusplus
}
#endif
#endif /* DOCH_USE_FUNC */
#endif /*FL_MIGRATION_VERSION*/
#endif /* DOCH_SYS_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?