⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xstatus.h

📁 自学ZedBoard:使用IP通过ARM PS访问FPGA(源代码)
💻 H
📖 第 1 页 / 共 2 页
字号:
/* $Id: xstatus.h,v 1.1.4.2 2011/12/07 11:55:26 sadanan Exp $ *//******************************************************************************** (c) Copyright 2002-2009 Xilinx, Inc. All rights reserved.** This file contains confidential and proprietary information of Xilinx, Inc.* and is protected under U.S. and international copyright and other* intellectual property laws.** DISCLAIMER* This disclaimer is not a license and does not grant any rights to the* materials distributed herewith. Except as otherwise provided in a valid* license issued to you by Xilinx, and to the maximum extent permitted by* applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL* FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS,* IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF* MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE;* and (2) Xilinx shall not be liable (whether in contract or tort, including* negligence, or under any other theory of liability) for any loss or damage* of any kind or nature related to, arising under or in connection with these* materials, including for any direct, or any indirect, special, incidental,* or consequential loss or damage (including loss of data, profits, goodwill,* or any type of loss or damage suffered as a result of any action brought by* a third party) even if such damage or loss was reasonably foreseeable or* Xilinx had been advised of the possibility of the same.** CRITICAL APPLICATIONS* Xilinx products are not designed or intended to be fail-safe, or for use in* any application requiring fail-safe performance, such as life-support or* safety devices or systems, Class III medical devices, nuclear facilities,* applications related to the deployment of airbags, or any other applications* that could lead to death, personal injury, or severe property or* environmental damage (individually and collectively, "Critical* Applications"). Customer assumes the sole risk and liability of any use of* Xilinx products in Critical Applications, subject only to applicable laws* and regulations governing limitations on product liability.** THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE* AT ALL TIMES.*******************************************************************************//*****************************************************************************//**** @file xstatus.h** This file contains Xilinx software status codes.  Status codes have their* own data type called int.  These codes are used throughout the Xilinx* device drivers.*******************************************************************************/#ifndef XSTATUS_H		/* prevent circular inclusions */#define XSTATUS_H		/* by using protection macros */#ifdef __cplusplusextern "C" {#endif/***************************** Include Files *********************************/#include "xil_types.h"#include "xil_assert.h"/************************** Constant Definitions *****************************//*********************** Common statuses 0 - 500 *****************************/#define XST_SUCCESS                     0L#define XST_FAILURE                     1L#define XST_DEVICE_NOT_FOUND            2L#define XST_DEVICE_BLOCK_NOT_FOUND      3L#define XST_INVALID_VERSION             4L#define XST_DEVICE_IS_STARTED           5L#define XST_DEVICE_IS_STOPPED           6L#define XST_FIFO_ERROR                  7L	/* an error occurred during an						   operation with a FIFO such as						   an underrun or overrun, this						   error requires the device to						   be reset */#define XST_RESET_ERROR                 8L	/* an error occurred which requires						   the device to be reset */#define XST_DMA_ERROR                   9L	/* a DMA error occurred, this error						   typically requires the device						   using the DMA to be reset */#define XST_NOT_POLLED                  10L	/* the device is not configured for						   polled mode operation */#define XST_FIFO_NO_ROOM                11L	/* a FIFO did not have room to put						   the specified data into */#define XST_BUFFER_TOO_SMALL            12L	/* the buffer is not large enough						   to hold the expected data */#define XST_NO_DATA                     13L	/* there was no data available */#define XST_REGISTER_ERROR              14L	/* a register did not contain the						   expected value */#define XST_INVALID_PARAM               15L	/* an invalid parameter was passed						   into the function */#define XST_NOT_SGDMA                   16L	/* the device is not configured for						   scatter-gather DMA operation */#define XST_LOOPBACK_ERROR              17L	/* a loopback test failed */#define XST_NO_CALLBACK                 18L	/* a callback has not yet been						   registered */#define XST_NO_FEATURE                  19L	/* device is not configured with						   the requested feature */#define XST_NOT_INTERRUPT               20L	/* device is not configured for						   interrupt mode operation */#define XST_DEVICE_BUSY                 21L	/* device is busy */#define XST_ERROR_COUNT_MAX             22L	/* the error counters of a device						   have maxed out */#define XST_IS_STARTED                  23L	/* used when part of device is						   already started i.e.						   sub channel */#define XST_IS_STOPPED                  24L	/* used when part of device is						   already stopped i.e.						   sub channel */#define XST_DATA_LOST                   26L	/* driver defined error */#define XST_RECV_ERROR                  27L	/* generic receive error */#define XST_SEND_ERROR                  28L	/* generic transmit error */#define XST_NOT_ENABLED                 29L	/* a requested service is not						   available because it has not						   been enabled *//***************** Utility Component statuses 401 - 500  *********************/#define XST_MEMTEST_FAILED              401L	/* memory test failed *//***************** Common Components statuses 501 - 1000 *********************//********************* Packet Fifo statuses 501 - 510 ************************/#define XST_PFIFO_LACK_OF_DATA          501L	/* not enough data in FIFO   */#define XST_PFIFO_NO_ROOM               502L	/* not enough room in FIFO   */#define XST_PFIFO_BAD_REG_VALUE         503L	/* self test, a register value						   was invalid after reset */#define XST_PFIFO_ERROR                 504L	/* generic packet FIFO error */#define XST_PFIFO_DEADLOCK              505L	/* packet FIFO is reporting						 * empty and full simultaneously						 *//************************** DMA statuses 511 - 530 ***************************/#define XST_DMA_TRANSFER_ERROR          511L	/* self test, DMA transfer						   failed */#define XST_DMA_RESET_REGISTER_ERROR    512L	/* self test, a register value						   was invalid after reset */#define XST_DMA_SG_LIST_EMPTY           513L	/* scatter gather list contains						   no buffer descriptors ready						   to be processed */#define XST_DMA_SG_IS_STARTED           514L	/* scatter gather not stopped */#define XST_DMA_SG_IS_STOPPED           515L	/* scatter gather not running */#define XST_DMA_SG_LIST_FULL            517L	/* all the buffer desciptors of						   the scatter gather list are						   being used */#define XST_DMA_SG_BD_LOCKED            518L	/* the scatter gather buffer						   descriptor which is to be						   copied over in the scatter						   list is locked */#define XST_DMA_SG_NOTHING_TO_COMMIT    519L	/* no buffer descriptors have been						   put into the scatter gather						   list to be commited */#define XST_DMA_SG_COUNT_EXCEEDED       521L	/* the packet count threshold						   specified was larger than the						   total # of buffer descriptors						   in the scatter gather list */#define XST_DMA_SG_LIST_EXISTS          522L	/* the scatter gather list has						   already been created */#define XST_DMA_SG_NO_LIST              523L	/* no scatter gather list has						   been created */#define XST_DMA_SG_BD_NOT_COMMITTED     524L	/* the buffer descriptor which was						   being started was not committed						   to the list */#define XST_DMA_SG_NO_DATA              525L	/* the buffer descriptor to start						   has already been used by the						   hardware so it can't be reused						 */#define XST_DMA_SG_LIST_ERROR           526L	/* general purpose list access						   error */#define XST_DMA_BD_ERROR                527L	/* general buffer descriptor						   error *//************************** IPIF statuses 531 - 550 ***************************/#define XST_IPIF_REG_WIDTH_ERROR        531L	/* an invalid register width						   was passed into the function */#define XST_IPIF_RESET_REGISTER_ERROR   532L	/* the value of a register at						   reset was not valid */#define XST_IPIF_DEVICE_STATUS_ERROR    533L	/* a write to the device interrupt						   status register did not read						   back correctly */#define XST_IPIF_DEVICE_ACK_ERROR       534L	/* the device interrupt status						   register did not reset when						   acked */#define XST_IPIF_DEVICE_ENABLE_ERROR    535L	/* the device interrupt enable						   register was not updated when						   other registers changed */#define XST_IPIF_IP_STATUS_ERROR        536L	/* a write to the IP interrupt						   status register did not read						   back correctly */#define XST_IPIF_IP_ACK_ERROR           537L	/* the IP interrupt status register						   did not reset when acked */#define XST_IPIF_IP_ENABLE_ERROR        538L	/* IP interrupt enable register was						   not updated correctly when other						   registers changed */#define XST_IPIF_DEVICE_PENDING_ERROR   539L	/* The device interrupt pending						   register did not indicate the						   expected value */#define XST_IPIF_DEVICE_ID_ERROR        540L	/* The device interrupt ID register						   did not indicate the expected						   value */#define XST_IPIF_ERROR                  541L	/* generic ipif error *//****************** Device specific statuses 1001 - 4095 *********************//********************* Ethernet statuses 1001 - 1050 *************************/#define XST_EMAC_MEMORY_SIZE_ERROR  1001L	/* Memory space is not big enough						 * to hold the minimum number of						 * buffers or descriptors */#define XST_EMAC_MEMORY_ALLOC_ERROR 1002L	/* Memory allocation failed */#define XST_EMAC_MII_READ_ERROR     1003L	/* MII read error */#define XST_EMAC_MII_BUSY           1004L	/* An MII operation is in progress */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -