K9F2G08.h 801 B

12345678910111213141516171819202122232425262728
  1. #ifndef __K9F2G08_H__
  2. #define __K9F2G08_H__
  3. #include <rtdef.h>
  4. #include <s3c24x0.h>
  5. #include <nand.h>
  6. void K9F2G08_Program(u32 blockIndex, u32 srcAddress, u32 fileSize);
  7. //*************** H/W dependent functions ***************
  8. void K9F2G08_ReadChipID(u8* buf, UBOOL all);
  9. int K9F2G08_Check_badblk(u32 block);
  10. int K9F2G08_EraseBlock (u32 block);
  11. int K9F2G08_Mark_badblk (u32 block);
  12. int K9F2G08_ReadPage (u32 block, u32 page, u8 *buffer, int len, u8 *ecc);
  13. int K9F2G08_WritePage (u32 block, u32 page, const u8 *buffer, int len, const u8 *ecc);
  14. int K9F2G08_ReadTags (u32 block, u32 page, u8 *spare, int ofs, int len);
  15. int K9F2G08_WriteTags (u32 block, u32 page, const u8 *spare, int ofs, int len);
  16. void K9F2G08_Reset(void);
  17. void K9F2G08_Init(void);
  18. #endif