Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.8 KiB

  1. /*********************************************************************
  2. * *
  3. * FAT-FTL Lite Software Development Kit *
  4. * Copyright (C) M-Systems Ltd. 1995-2001 *
  5. * *
  6. *********************************************************************
  7. * *
  8. * Notes for the future: *
  9. * *
  10. * 1. Get rid of both macros and routines flRead8bitRegPlus/ *
  11. * flPreInitRead8bitRegPlus/flWrite8bitRegPlus/ *
  12. * flPreInitWrite8bitRegPlus by calling routines mplusReadReg8/ *
  13. * mplusWriteReg8 directly from M+ MTD. *
  14. * *
  15. *********************************************************************/
  16. /*
  17. * $Log: V:/Flite/archives/TrueFFS5/Src/docsysp.h_V $
  18. *
  19. * Rev 1.2 Sep 25 2001 15:39:46 oris
  20. * Removed FL_MPLUS_FAST_ACCESS.
  21. *
  22. * Rev 1.1 Sep 24 2001 18:23:34 oris
  23. * Completely revised to support runtime true 16-bit access.
  24. */
  25. #ifndef DOCSYSP_H
  26. #define DOCSYSP_H
  27. /*
  28. * includes
  29. */
  30. #include "flflash.h"
  31. #include "nanddefs.h"
  32. /*
  33. * macros
  34. */
  35. #define DOC_WIN mplusWinSize()
  36. #define flRead8bitRegPlus(vol,offset) ((Reg8bitType)mplusReadReg8((void FAR0 *)NFDC21thisVars->win, (int)offset))
  37. #define flPreInitRead8bitRegPlus(driveNo,win,offset) ((Reg8bitType)mplusReadReg8((void FAR0 *)win, (int)offset))
  38. #define flWrite8bitRegPlus(vol,offset,val) mplusWriteReg8((void FAR0 *)NFDC21thisVars->win, (int)offset, (unsigned char)val)
  39. #define flPreInitWrite8bitRegPlus(driveNo,win,offset,val) mplusWriteReg8((void FAR0 *)win, (int)offset, (unsigned char)val)
  40. /*
  41. * routines
  42. */
  43. extern unsigned char mplusReadReg8 (void FAR0 *win, int offset);
  44. extern void mplusWriteReg8 (void FAR0 *win, int offset, unsigned char val);
  45. extern Reg16bitType flRead16bitRegPlus (FLFlash vol, unsigned offset);
  46. extern void flWrite16bitRegPlus (FLFlash vol, unsigned offset, Reg16bitType val);
  47. extern void docPlusRead (FLFlash vol, unsigned regOffset, void FAR1 *dest,
  48. unsigned int count);
  49. extern void docPlusWrite (FLFlash vol, void FAR1 *src, unsigned int count);
  50. extern void docPlusSet (FLFlash vol, unsigned int count, unsigned char val);
  51. extern unsigned long mplusWinSize (void);
  52. #endif /* DOCSYSP_H */