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.

43 lines
1.1 KiB

  1. /*
  2. * $Log: V:/Flite/archives/TrueFFS5/Src/REEDSOL.H_V $
  3. *
  4. * Rev 1.2 Jul 13 2001 01:10:10 oris
  5. * Moved syndrome byte length definition (SYNDROM_BYTES).
  6. * Moved saved syndrome array forward definition (used by d2tst).
  7. *
  8. * Rev 1.1 Apr 01 2001 08:00:20 oris
  9. * copywrite notice.
  10. *
  11. * Rev 1.0 Feb 04 2001 12:37:48 oris
  12. * Initial revision.
  13. *
  14. */
  15. /************************************************************************/
  16. /* */
  17. /* FAT-FTL Lite Software Development Kit */
  18. /* Copyright (C) M-Systems Ltd. 1995-2001 */
  19. /* */
  20. /************************************************************************/
  21. #ifndef FLEDC_H
  22. #define FLEDC_H
  23. #include "flbase.h"
  24. #define SYNDROM_BYTES 6
  25. /* Global variable containing the EDC/ECC of the last operation */
  26. #ifdef D2TST
  27. extern byte saveSyndromForDumping[SYNDROM_BYTES];
  28. #endif /* D2TST */
  29. typedef enum { NO_EDC_ERROR, CORRECTABLE_ERROR, UNCORRECTABLE_ERROR, EDC_ERROR } EDCstatus;
  30. EDCstatus flCheckAndFixEDC(char FAR1 *block, char *syndrom, FLBoolean byteSwap);
  31. #endif