/* * NAND Flash Controller Device Driver * Copyright (c) 2008-2010, Intel Corporation and its suppliers. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope 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. * * 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 St - Fifth Floor, Boston, MA 02110-1301 USA. * */ #ifndef _LLD_EMU_ #define _LLD_EMU_ #ifdef ELDORA #include "defs.h" #else #include "flash.h" #include "ffsport.h" #include "ffsdefs.h" #endif // prototypes: emulator API functions extern uint16 emu_Flash_Reset (void); extern uint16 emu_Flash_Init (void); extern uint16 emu_Flash_Release (void); extern uint16 emu_Read_Device_ID (void); extern uint16 emu_Erase_Block (BLOCKNODE block_addr); extern uint16 emu_Write_Page_Main(byte * write_data, BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Read_Page_Main(byte * read_data, BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Event_Status(void); extern void emu_Enable_Disable_Interrupts(uint16 INT_ENABLE); #ifndef ELDORA extern uint16 emu_Write_Page_Main_Spare(byte * write_data, BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Write_Page_Spare (byte * write_data,BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Read_Page_Main_Spare(byte * read_data,BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Read_Page_Spare (byte * read_data, BLOCKNODE Block, PAGENUMTYPE Page, PAGENUMTYPE PageCount); extern uint16 emu_Get_Bad_Block(BLOCKNODE block); #endif // !ELDORA uint16 emu_CDMA_Flash_Init (void); uint16 emu_CDMA_Execute_CMDs (uint16 tag_count); uint16 emu_CDMA_Event_Status(void); #endif //_LLD_EMU_