xspi_error_codes.h 510 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2020 NXP
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. /* error codes */
  8. #ifndef XSPI_ERROR_CODES_H
  9. #define XSPI_ERROR_CODES_H
  10. #include <errno.h>
  11. typedef enum {
  12. XSPI_SUCCESS = 0,
  13. XSPI_READ_FAIL = ELAST + 1,
  14. XSPI_ERASE_FAIL,
  15. XSPI_IP_READ_FAIL,
  16. XSPI_AHB_READ_FAIL,
  17. XSPI_IP_WRITE_FAIL,
  18. XSPI_AHB_WRITE_FAIL,
  19. XSPI_BLOCK_TIMEOUT,
  20. XSPI_UNALIGN_ADDR,
  21. XSPI_UNALIGN_SIZE,
  22. } XSPI_STATUS_CODES;
  23. #undef ELAST
  24. #define ELAST XSPI_STATUS_CODES.XSPI_UNALIGN_SIZE
  25. #endif