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