RTEMS 6.1-rc2
Loading...
Searching...
No Matches
xstatus.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) 2002 - 2021 Xilinx, Inc. All rights reserved.
3* SPDX-License-Identifier: MIT
4******************************************************************************/
5
6/*****************************************************************************/
23#ifndef XSTATUS_H /* prevent circular inclusions */
24#define XSTATUS_H /* by using protection macros */
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30/***************************** Include Files *********************************/
31
32#include "xil_types.h"
33#include "xil_assert.h"
34
35/************************** Constant Definitions *****************************/
36
37/*********************** Common statuses 0 - 500 *****************************/
42#define XST_SUCCESS 0L
43#define XST_FAILURE 1L
44#define XST_DEVICE_NOT_FOUND 2L
45#define XST_DEVICE_BLOCK_NOT_FOUND 3L
46#define XST_INVALID_VERSION 4L
47#define XST_DEVICE_IS_STARTED 5L
48#define XST_DEVICE_IS_STOPPED 6L
49#define XST_FIFO_ERROR 7L
54#define XST_RESET_ERROR 8L
56#define XST_DMA_ERROR 9L
59#define XST_NOT_POLLED 10L
61#define XST_FIFO_NO_ROOM 11L
63#define XST_BUFFER_TOO_SMALL 12L
65#define XST_NO_DATA 13L
66#define XST_REGISTER_ERROR 14L
68#define XST_INVALID_PARAM 15L
70#define XST_NOT_SGDMA 16L
72#define XST_LOOPBACK_ERROR 17L
73#define XST_NO_CALLBACK 18L
75#define XST_NO_FEATURE 19L
77#define XST_NOT_INTERRUPT 20L
79#define XST_DEVICE_BUSY 21L
80#define XST_ERROR_COUNT_MAX 22L
82#define XST_IS_STARTED 23L
85#define XST_IS_STOPPED 24L
88#define XST_DATA_LOST 26L
89#define XST_RECV_ERROR 27L
90#define XST_SEND_ERROR 28L
91#define XST_NOT_ENABLED 29L
94#define XST_NO_ACCESS 30L /* Generic access error */
95#define XST_TIMEOUT 31L
98/***************** Utility Component statuses 401 - 500 *********************/
103#define XST_MEMTEST_FAILED 401L
106/***************** Common Components statuses 501 - 1000 *********************/
111/********************* Packet Fifo statuses 501 - 510 ************************/
112
113#define XST_PFIFO_LACK_OF_DATA 501L
114#define XST_PFIFO_NO_ROOM 502L
115#define XST_PFIFO_BAD_REG_VALUE 503L
117#define XST_PFIFO_ERROR 504L
118#define XST_PFIFO_DEADLOCK 505L
126/************************** DMA statuses 511 - 530 ***************************/
127
128#define XST_DMA_TRANSFER_ERROR 511L
130#define XST_DMA_RESET_REGISTER_ERROR 512L
132#define XST_DMA_SG_LIST_EMPTY 513L
135#define XST_DMA_SG_IS_STARTED 514L
136#define XST_DMA_SG_IS_STOPPED 515L
137#define XST_DMA_SG_LIST_FULL 517L
140#define XST_DMA_SG_BD_LOCKED 518L
144#define XST_DMA_SG_NOTHING_TO_COMMIT 519L
147#define XST_DMA_SG_COUNT_EXCEEDED 521L
151#define XST_DMA_SG_LIST_EXISTS 522L
153#define XST_DMA_SG_NO_LIST 523L
155#define XST_DMA_SG_BD_NOT_COMMITTED 524L
158#define XST_DMA_SG_NO_DATA 525L
162#define XST_DMA_SG_LIST_ERROR 526L
164#define XST_DMA_BD_ERROR 527L
171/************************** IPIF statuses 531 - 550 ***************************/
172
173#define XST_IPIF_REG_WIDTH_ERROR 531L
175#define XST_IPIF_RESET_REGISTER_ERROR 532L
177#define XST_IPIF_DEVICE_STATUS_ERROR 533L
180#define XST_IPIF_DEVICE_ACK_ERROR 534L
183#define XST_IPIF_DEVICE_ENABLE_ERROR 535L
186#define XST_IPIF_IP_STATUS_ERROR 536L
189#define XST_IPIF_IP_ACK_ERROR 537L
191#define XST_IPIF_IP_ENABLE_ERROR 538L
194#define XST_IPIF_DEVICE_PENDING_ERROR 539L
197#define XST_IPIF_DEVICE_ID_ERROR 540L
200#define XST_IPIF_ERROR 541L
203/****************** Device specific statuses 1001 - 4095 *********************/
208/********************* Ethernet statuses 1001 - 1050 *************************/
209
210#define XST_EMAC_MEMORY_SIZE_ERROR 1001L
213#define XST_EMAC_MEMORY_ALLOC_ERROR 1002L
214#define XST_EMAC_MII_READ_ERROR 1003L
215#define XST_EMAC_MII_BUSY 1004L
216#define XST_EMAC_OUT_OF_BUFFERS 1005L
217#define XST_EMAC_PARSE_ERROR 1006L
218#define XST_EMAC_COLLISION_ERROR 1007L
225/*********************** UART statuses 1051 - 1075 ***************************/
226#define XST_UART
227
228#define XST_UART_INIT_ERROR 1051L
229#define XST_UART_START_ERROR 1052L
230#define XST_UART_CONFIG_ERROR 1053L
231#define XST_UART_TEST_FAIL 1054L
232#define XST_UART_BAUD_ERROR 1055L
233#define XST_UART_BAUD_RANGE 1056L
234
240/************************ IIC statuses 1076 - 1100 ***************************/
241
242#define XST_IIC_SELFTEST_FAILED 1076
243#define XST_IIC_BUS_BUSY 1077
244#define XST_IIC_GENERAL_CALL_ADDRESS 1078
245 /* general call address */
246#define XST_IIC_STAND_REG_RESET_ERROR 1079
247 /* value after reset not valid */
248#define XST_IIC_TX_FIFO_REG_RESET_ERROR 1080
249 /* value after reset not valid */
250#define XST_IIC_RX_FIFO_REG_RESET_ERROR 1081
251 /* value after reset not valid */
252#define XST_IIC_TBA_REG_RESET_ERROR 1082
253 /* value after reset not valid */
254#define XST_IIC_CR_READBACK_ERROR 1083
255 /* didn't return value written */
256#define XST_IIC_DTR_READBACK_ERROR 1084
257 /* didn't return value written */
258#define XST_IIC_DRR_READBACK_ERROR 1085
259 /* didn't return value written */
260#define XST_IIC_ADR_READBACK_ERROR 1086
261 /* didn't return value written */
262#define XST_IIC_TBA_READBACK_ERROR 1087
263 /* didn't return written value */
264#define XST_IIC_NOT_SLAVE 1088
265#define XST_IIC_ARB_LOST 1089
271/*********************** ATMC statuses 1101 - 1125 ***************************/
272
273#define XST_ATMC_ERROR_COUNT_MAX 1101L
282/*********************** Flash statuses 1126 - 1150 **************************/
283
284#define XST_FLASH_BUSY 1126L
286#define XST_FLASH_READY 1127L
287#define XST_FLASH_ERROR 1128L
291#define XST_FLASH_ERASE_SUSPENDED 1129L
293#define XST_FLASH_WRITE_SUSPENDED 1130L
295#define XST_FLASH_PART_NOT_SUPPORTED 1131L
297#define XST_FLASH_NOT_SUPPORTED 1132L
298#define XST_FLASH_TOO_MANY_REGIONS 1133L
299#define XST_FLASH_TIMEOUT_ERROR 1134L
301#define XST_FLASH_ADDRESS_ERROR 1135L
303#define XST_FLASH_ALIGNMENT_ERROR 1136L
304#define XST_FLASH_BLOCKING_CALL_ERROR 1137L
308#define XST_FLASH_CFI_QUERY_ERROR 1138L
314/*********************** SPI statuses 1151 - 1175 ****************************/
315
316#define XST_SPI_MODE_FAULT 1151
317#define XST_SPI_TRANSFER_DONE 1152
318#define XST_SPI_TRANSMIT_UNDERRUN 1153
319#define XST_SPI_RECEIVE_OVERRUN 1154
320#define XST_SPI_NO_SLAVE 1155
321#define XST_SPI_TOO_MANY_SLAVES 1156
323#define XST_SPI_NOT_MASTER 1157
324#define XST_SPI_SLAVE_ONLY 1158
326#define XST_SPI_SLAVE_MODE_FAULT 1159
327#define XST_SPI_SLAVE_MODE 1160
328#define XST_SPI_RECEIVE_NOT_EMPTY 1161
330#define XST_SPI_COMMAND_ERROR 1162
331#define XST_SPI_POLL_DONE 1163
338/********************** OPB Arbiter statuses 1176 - 1200 *********************/
339
340#define XST_OPBARB_INVALID_PRIORITY 1176
345#define XST_OPBARB_NOT_SUSPENDED 1177
350#define XST_OPBARB_PARK_NOT_ENABLED 1178
353#define XST_OPBARB_NOT_FIXED_PRIORITY 1179
362/************************ Intc statuses 1201 - 1225 **************************/
363
364#define XST_INTC_FAIL_SELFTEST 1201
365#define XST_INTC_CONNECT_ERROR 1202
371/********************** TmrCtr statuses 1226 - 1250 **************************/
372
373#define XST_TMRCTR_TIMER_FAILED 1226
379/********************** WdtTb statuses 1251 - 1275 ***************************/
380
381#define XST_WDTTB_TIMER_FAILED 1251L
387/********************** PlbArb statuses 1276 - 1300 **************************/
388
389#define XST_PLBARB_FAIL_SELFTEST 1276L
395/********************** Plb2Opb statuses 1301 - 1325 *************************/
396
397#define XST_PLB2OPB_FAIL_SELFTEST 1301L
403/********************** Opb2Plb statuses 1326 - 1350 *************************/
404
405#define XST_OPB2PLB_FAIL_SELFTEST 1326L
411/********************** SysAce statuses 1351 - 1360 **************************/
412
413#define XST_SYSACE_NO_LOCK 1351L
419/********************** PCI Bridge statuses 1361 - 1375 **********************/
420
421#define XST_PCI_INVALID_ADDRESS 1361L
427/********************** FlexRay constants 1400 - 1409 *************************/
428
429#define XST_FR_TX_ERROR 1400
430#define XST_FR_TX_BUSY 1401
431#define XST_FR_BUF_LOCKED 1402
432#define XST_FR_NO_BUF 1403
438/****************** USB constants 1410 - 1420 *******************************/
439
440#define XST_USB_ALREADY_CONFIGURED 1410
441#define XST_USB_BUF_ALIGN_ERROR 1411
442#define XST_USB_NO_DESC_AVAILABLE 1412
443#define XST_USB_BUF_TOO_BIG 1413
444#define XST_USB_NO_BUF 1414
450/****************** HWICAP constants 1421 - 1429 *****************************/
451
452#define XST_HWICAP_WRITE_DONE 1421
453
459/****************** AXI VDMA constants 1430 - 1440 *****************************/
460
461#define XST_VDMA_MISMATCH_ERROR 1430
467/*********************** NAND Flash statuses 1441 - 1459 *********************/
468
469#define XST_NAND_BUSY 1441L
472#define XST_NAND_READY 1442L
474#define XST_NAND_ERROR 1443L
477#define XST_NAND_PART_NOT_SUPPORTED 1444L
480#define XST_NAND_OPT_NOT_SUPPORTED 1445L
482#define XST_NAND_TIMEOUT_ERROR 1446L
486#define XST_NAND_ADDRESS_ERROR 1447L
489#define XST_NAND_ALIGNMENT_ERROR 1448L
491#define XST_NAND_PARAM_PAGE_ERROR 1449L
494#define XST_NAND_CACHE_ERROR 1450L
497#define XST_NAND_WRITE_PROTECTED 1451L
501/**************************** Type Definitions *******************************/
502
503typedef s32 XStatus;
504
505/***************** Macros (Inline Functions) Definitions *********************/
506
507
508/************************** Function Prototypes ******************************/
509
510#ifdef __cplusplus
511}
512#endif
513
514#endif /* end of protection macro */
515