Source code of Windows XP (NT5)
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.

52 lines
2.2 KiB

  1. /*
  2. * $Log: V:/Flite/archives/TrueFFS5/Src/FLBUFFER.H_V $
  3. *
  4. * Rev 1.3 Jul 13 2001 01:03:58 oris
  5. * Added read Back buffer size definition.
  6. *
  7. * Rev 1.2 May 16 2001 21:29:24 oris
  8. * Change "data" named variables to flData to avoid name clashes.
  9. *
  10. * Rev 1.2 May 16 2001 21:17:44 oris
  11. * Added backwards compatibility check for FL_MALLOC the new definition replacing MALLOC.
  12. *
  13. * Rev 1.1 Apr 01 2001 07:45:44 oris
  14. * Updated copywrite notice
  15. *
  16. * Rev 1.0 Feb 04 2001 11:17:06 oris
  17. * Initial revision.
  18. *
  19. */
  20. /***********************************************************************************/
  21. /* M-Systems Confidential */
  22. /* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2001 */
  23. /* All Rights Reserved */
  24. /***********************************************************************************/
  25. /* NOTICE OF M-SYSTEMS OEM */
  26. /* SOFTWARE LICENSE AGREEMENT */
  27. /* */
  28. /* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
  29. /* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
  30. /* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
  31. /* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
  32. /* E-MAIL = [email protected] */
  33. /***********************************************************************************/
  34. #ifndef FLBUFFER_H
  35. #define FLBUFFER_H
  36. #include "flbase.h"
  37. #define READ_BACK_BUFFER_SIZE 1024 /* Size of read back buffer
  38. Must be multiplication of 512 */
  39. typedef struct {
  40. unsigned char flData[SECTOR_SIZE]; /* sector buffer */
  41. SectorNo sectorNo; /* current sector in buffer */
  42. void *owner; /* owner of buffer */
  43. FLBoolean dirty; /* sector in buffer was changed */
  44. FLBoolean checkPoint; /* sector in buffer must be flushed */
  45. } FLBuffer;
  46. #endif