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

📄 nand_2k_media.h

📁 <B>SMSC USB2.0 Flash硬盘驱动源码</B>
💻 H
字号:
/*============================================================================
  ____________________________________________________________________________
                                ______________________________________________
   SSSS  M   M          CCCC          Standard Microsystems Corporation
  S      MM MM   SSSS  C                    Austin Design Center
   SSS   M M M  S      C                 11000 N. Mopac Expressway
      S  M   M   SSS   C                Stonelake Bldg. 6, Suite 500
  SSSS   M   M      S   CCCC                Austin, Texas 78759
                SSSS            ______________________________________________
  ____________________________________________________________________________
  Copyright(C) 1999, Standard Microsystems Corporation
  All Rights Reserved.
  This program code listing is proprietary to SMSC and may not be copied,
  distributed, or used without a license to do so.  Such license may have
  Limited or Restricted Rights. Please refer to the license for further
  clarification.
  ____________________________________________________________________________
  Notice: The program contained in this listing is a proprietary trade
  secret of SMSC, Hauppauge, New York, and is copyrighted
  under the United States Copyright Act of 1976 as an unpublished work,
  pursuant to Section 104 and Section 408 of Title XVII of the United
  States code. Unauthorized copying, adaption, distribution, use, or
  display is prohibited by this law.
  ____________________________________________________________________________
  Use, duplication, or disclosure by the Government is subject to
  restrictions as set forth in subparagraph(c)(1)(ii) of the Rights
  in Technical Data and Computer Software clause at DFARS 52.227-7013.
  Contractor/Manufacturer is Standard Microsystems Corporation,
  80 Arkay Drive, Hauppauge, New York, 1178-8847.
  ____________________________________________________________________________
  ____________________________________________________________________________
  fmcdev.h - USB97210 device specific hardware interface definitions and
             functions that are external to the MCU (ergo external to minimos).
  ____________________________________________________________________________
  comments tbd
  ____________________________________________________________________________
  Revision History
  Date      Who  Comment
  ________  ___  _____________________________________________________________
  07/16/02  cds  initial version
  07/22/02  cds  - added the following functions specific to 2k page nand flash cards:
                    n2k_page_read_for_data(), n2k_page_read_for_copy(),
                    n2k_page_set_rd_addr(), n2k_page_set_wr_offset(),
                    n2k_page_program(), n2k_cache_program()
  07/29/02  cds  moved n2k_page_*() functions into nand.h                    
  08/09/02  cds  added n2k versions of virtual->physical address translation fn's                  
  09/05/02  cds  removed n2k va2pa conversion routines.  functionality moved to
                   nand_xx_va2pa functions  
============================================================================*/

#ifndef __nand_2k_media_dot_h__
#define __nand_2k_media_dot_h__

//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// nand_2k_media overrides 
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result  n2k_read_sector(void) reentrant ; 
#undef _v_media_read_sector
#define _v_media_read_sector n2k_read_sector

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result  n2k_write_sector(void) reentrant ;
#undef _v_media_write_sector
#define _v_media_write_sector n2k_write_sector

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result n2k_copy_sector(void) reentrant ;
#undef _v_media_copy_sector
#define _v_media_copy_sector n2k_copy_sector

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result  n2k_read_extra_data(void) reentrant ;
#undef _v_media_read_extra_data
#define _v_media_read_extra_data n2k_read_extra_data

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result  n2k_write_extra_data(void) reentrant ;
#undef _v_media_write_extra_data
#define _v_media_write_extra_data n2k_write_extra_data

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result nand_2k_set_read_addr() reentrant ;
#undef _v_media_set_read_addr
#define _v_media_set_read_addr nand_2k_set_read_addr

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result nand_2k_set_write_addr() reentrant ;
#undef _v_media_set_write_addr
#define _v_media_set_write_addr nand_2k_set_write_addr

//+-----------------------------------------------------------------------------
//------------------------------------------------------------------------------
t_result nand_2k_set_erase_addr() reentrant ;
#undef _v_media_set_erase_addr
#define _v_media_set_erase_addr nand_2k_set_erase_addr


//------------------------------------------------------------------------------
// virtual method table
typedef uint8 t_nand_2k_media_vtbl_ix ;
typedef enum e_nand_2k_media_vtbl_entry
{
  k_nand_2k_media_vtbl_sz = k_nand_media_vtbl_sz
} ;

// large nand media class definition:
#define _v_nand_2k_media _v_nand_media

// sm class vtable declaration & vtable size declaration
extern code  _vtbl_decl(nand_2k_media) ;

// #endif // (k_log_lun_nand < k_max_log_lun)


#else
#error "warning: header included too many times!"
#endif  // __nand_dot_h__

//---eof------------------------------------------------------------------------

⌨️ 快捷键说明

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