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.

59 lines
1.7 KiB

  1. #ifndef _EFI_ERR_H
  2. #define _EFI_ERR_H
  3. /*++
  4. Copyright (c) 1998 Intel Corporation
  5. Module Name:
  6. efierr.h
  7. Abstract:
  8. EFI error codes
  9. Revision History
  10. --*/
  11. #define EFIWARN(a) (a)
  12. #define EFI_ERROR(a) (((INTN) a) < 0)
  13. #define EFI_SUCCESS 0
  14. #define EFI_LOAD_ERROR EFIERR(1)
  15. #define EFI_INVALID_PARAMETER EFIERR(2)
  16. #define EFI_UNSUPPORTED EFIERR(3)
  17. #define EFI_BAD_BUFFER_SIZE EFIERR(4)
  18. #define EFI_BUFFER_TOO_SMALL EFIERR(5)
  19. #define EFI_NOT_READY EFIERR(6)
  20. #define EFI_DEVICE_ERROR EFIERR(7)
  21. #define EFI_WRITE_PROTECTED EFIERR(8)
  22. #define EFI_OUT_OF_RESOURCES EFIERR(9)
  23. #define EFI_VOLUME_CORRUPTED EFIERR(10)
  24. #define EFI_VOLUME_FULL EFIERR(11)
  25. #define EFI_NO_MEDIA EFIERR(12)
  26. #define EFI_MEDIA_CHANGED EFIERR(13)
  27. #define EFI_NOT_FOUND EFIERR(14)
  28. #define EFI_ACCESS_DENIED EFIERR(15)
  29. #define EFI_NO_RESPONSE EFIERR(16)
  30. #define EFI_NO_MAPPING EFIERR(17)
  31. #define EFI_TIMEOUT EFIERR(18)
  32. #define EFI_NOT_STARTED EFIERR(19)
  33. #define EFI_ALREADY_STARTED EFIERR(20)
  34. #define EFI_ABORTED EFIERR(21)
  35. #define EFI_ICMP_ERROR EFIERR(22)
  36. #define EFI_TFTP_ERROR EFIERR(23)
  37. #define EFI_PROTOCOL_ERROR EFIERR(24)
  38. #define EFI_WARN_UNKOWN_GLYPH EFIWARN(1)
  39. #define EFI_WARN_DELETE_FAILURE EFIWARN(2)
  40. #define EFI_WARN_WRITE_FAILURE EFIWARN(3)
  41. #define EFI_WARN_BUFFER_TOO_SMALL EFIWARN(4)
  42. #endif