smcommon.h 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. /*----- < SMCommon.h> --------------------------------------------------*/
  2. #ifndef SMCOMMON_INCD
  3. #define SMCOMMON_INCD
  4. /***************************************************************************
  5. Define Difinetion
  6. ***************************************************************************/
  7. #define SMSUCCESS 0x0000 /* SUCCESS */
  8. #define ERROR 0xFFFF /* ERROR */
  9. #define CORRECT 0x0001 /* CORRECTABLE */
  10. /***************************************************************************/
  11. #define NO_ERROR 0x0000 /* NO ERROR */
  12. #define ERR_WriteFault 0x0003 /* Peripheral Device Write Fault */
  13. #define ERR_HwError 0x0004 /* Hardware Error */
  14. #define ERR_DataStatus 0x0010 /* DataStatus Error */
  15. #define ERR_EccReadErr 0x0011 /* Unrecovered Read Error */
  16. #define ERR_CorReadErr 0x0018 /* Recovered Read Data with ECC */
  17. #define ERR_OutOfLBA 0x0021 /* Illegal Logical Block Address */
  18. #define ERR_WrtProtect 0x0027 /* Write Protected */
  19. #define ERR_ChangedMedia 0x0028 /* Medium Changed */
  20. #define ERR_UnknownMedia 0x0030 /* Incompatible Medium Installed */
  21. #define ERR_IllegalFmt 0x0031 /* Medium Format Corrupted */
  22. #define ERR_NoSmartMedia 0x003A /* Medium Not Present */
  23. /***************************************************************************/
  24. void StringCopy(char *, char *, int);
  25. int StringCmp(char *, char *, int);
  26. #endif