📄 xparameters.h
字号:
/* $Id: xparameters.h,v 1.83.2.11 2011/05/18 03:23:57 svemula Exp $ *//******************************************************************************** (c) Copyright 2002-2011 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 xparameters.h** This file contains system parameters for the Xilinx device driver environment.* It is a representation of the system in that it contains the number of each* device in the system as well as the parameters and memory map for each* device. The user can view this file to obtain a summary of the devices in* their system and the device parameters.** This file may be automatically generated by a design tool such as System* Generator.*******************************************************************************//***************************** Include Files *********************************/#ifndef XPARAMETERS_H /* prevent circular inclusions */#define XPARAMETERS_H /* by using protection macros */#ifdef __cplusplusextern "C" {#endif/* unifying driver changesadded XPAR_INTC_0_ACK_BEFORE, XPAR_INTC_1_ACK_BEFOREchanged XPAR_INTC_MAX_ID to XPAR_INTC_MAX_NUM_INTR_INPUTSdeleted XPAR_INTC_0_MAX_ID, XPAR_INTC_1_MAX_ID*//************************** Constant Definitions *****************************//* * The following constants are for each device. * * An instance must exist for each physical device that exists in the system. * The device IDs in the following constants are unique between all devices to * allow device IDs to be searched in the future. *//***************************************************************************** * * System Level defines. These constants are for devices that do not require * a device driver. Examples of these types of devices include volatile RAM * devices. */#define XPAR_ZBT_NUM_INSTANCES 1#define XPAR_ZBT_0_BASE 0x00000000#define XPAR_ZBT_0_SIZE 0x00100000#define XPAR_SRAM_NUM_INSTANCES 1#define XPAR_SRAM_0_BASE 0x00100000#define XPAR_SRAM_0_SIZE 0x00200000#define XPAR_DDR_NUM_INSTANCES 1#define XPAR_DDR_0_BASE 0xF0000000#define XPAR_DDR_0_SIZE 0x01000000#define XPAR_CORE_CLOCK_FREQ_HZ 12500000#define XPAR_CPU_PPC405_CORE_CLOCK_FREQ_HZ XPAR_CORE_CLOCK_FREQ_HZ/***************************************************************************** * * Interrupt Controller (Intc) defines. * DeviceID starts at 0 */#define XPAR_XINTC_NUM_INSTANCES 2 /* Number of instances */#define XPAR_INTC_MAX_NUM_INTR_INPUTS 31 /* max # inputs of all */#define XPAR_INTC_SINGLE_BASEADDR 0x70800000 /* low level driver base */#define XPAR_INTC_SINGLE_DEVICE_ID 0 /* single instance ID */#define XPAR_INTC_SINGLE_ACK_BEFORE 0xFFFF00FF /* low level driver */#define XPAR_INTC_0_DEVICE_ID 1 /* Device ID for instance */#define XPAR_INTC_0_ACK_BEFORE 0xFFFF00FF /* Ack timing, before/after */#define XPAR_INTC_0_BASEADDR 0x70800000 /* Register base address */#define XPAR_INTC_0_UARTLITE_0_VEC_ID 4 /* Interrupt source for vector */#define XPAR_INTC_0_WDTTB_0_VEC_ID 5 /* Interrupt source for vector */#define XPAR_INTC_0_WD_0_VEC_ID 6 /* Interrupt source for vector */#define XPAR_INTC_0_TMRCTR_0_VEC_ID 7 /* Interrupt source for vector */#define XPAR_INTC_0_SPI_0_VEC_ID 11 /* Interrupt source for vector */#define XPAR_INTC_0_IIC_0_VEC_ID 12 /* Interrupt source for vector */#define XPAR_INTC_0_UARTNS550_0_VEC_ID 13 /* Interrupt source for vector */#define XPAR_INTC_0_UARTNS550_1_VEC_ID 14 /* Interrupt source for vector */#define XPAR_INTC_0_EMAC_0_VEC_ID 15 /* Interrupt source for vector */#define XPAR_INTC_0_AXIDMA_0_S2MM_INTROUT_VEC_ID 16 /* Intr ID for AXIDMA rx */#define XPAR_INTC_0_AXIDMA_0_MM2S_INTROUT_VEC_ID 17 /* Intr ID for AXIDMA tx */#define XPAR_INTC_0_AXICDMA_0_VEC_ID 18 /* Intr ID for AXICDMA */#define XPAR_INTC_0_AXIVDMA_0_S2MM_INTROUT_VEC_ID 19 /* AXIVDMA write intr */#define XPAR_INTC_0_AXIVDMA_0_MM2S_INTROUT_VEC_ID 20 /* AXIVDMA read intr */#define XPAR_INTC_1_DEVICE_ID 2 /* Device ID for instance */#define XPAR_INTC_1_ACK_BEFORE 0xFFFF00FF /* Ack timing, before/after */#define XPAR_INTC_1_BASEADDR 0x70800020 /* Register base address */#define XPAR_INTC_1_OPB_TO_PLB_ERR_VEC_ID 0 /* Interrupt source for vector */#define XPAR_INTC_1_PLB_TO_OPB_ERR_VEC_ID 1 /* Interrupt source for vector *//***************************************************************************** * * AXI DMA defines */#define XPAR_XAXIDMA_NUM_INSTANCES 1#define XPAR_AXI_DMA_0_DEVICE_ID 0#define XPAR_AXI_DMA_0_BASEADDR 0x40000000#define XPAR_AXI_DMA_0_HIGHADDR 0x4000007F#define XPAR_AXI_DMA_0_SG_INCLUDE_STSCNTRL_STRM 1#define XPAR_AXI_DMA_0_INCLUDE_MM2S_DRE 1#define XPAR_AXI_DMA_0_INCLUDE_S2MM_DRE 1#define XPAR_AXI_DMA_0_INCLUDE_MM2S 1#define XPAR_AXI_DMA_0_INCLUDE_S2MM 1#define XPAR_AXI_DMA_0_M_AXIS_MM2S_DATA_WIDTH 32#define XPAR_AXI_DMA_0_S_AXIS_S2MM_DATA_WIDTH 32/***************************************************************************** * * AXI Central DMA defines */#define XPAR_XAXICDMA_NUM_INSTANCES 1#define XPAR_AXI_CDMA_0_DEVICE_ID 0#define XPAR_AXI_CDMA_0_BASEADDR 0x40001000#define XPAR_AXI_CDMA_0_HIGHADDR 0x4000107F#define XPAR_AXI_CDMA_0_INCLUDE_DRE 1#define XPAR_AXI_CDMA_0_USE_DATAMOVER_LITE 0#define XPAR_AXI_CDMA_0_M_AXI_DATA_WIDTH 32/***************************************************************************** * * AXI Video DMA defines */#define XPAR_XAXIVDMA_NUM_INSTANCES 1#define XPAR_AXI_VDMA_0_DEVICE_ID 0#define XPAR_AXI_VDMA_0_BASEADDR 0x40002000#define XPAR_AXI_VDMA_0_NUM_FSTORES 16#define XPAR_AXI_VDMA_0_INCLUDE_MM2S 1#define XPAR_AXI_VDMA_0_INCLUDE_MM2S_DRE 1#define XPAR_AXI_VDMA_0_M_AXIS_MM2S_DATA_WIDTH 32#define XPAR_AXI_VDMA_0_INCLUDE_S2MM 1#define XPAR_AXI_VDMA_0_INCLUDE_S2MM_DRE 1#define XPAR_AXI_VDMA_0_S_AXIS_S2MM_DATA_WIDTH 32/***************************************************************************** * * Ethernet 10/100 MAC defines. * DeviceID starts at 10 */#define XPAR_XEMAC_NUM_INSTANCES 1 /* Number of instances */#define XPAR_EMAC_0_DEVICE_ID 10 /* Device ID for instance */#define XPAR_EMAC_0_BASEADDR 0x60000000/* Device base address */#define XPAR_EMAC_0_DMA_PRESENT FALSE /* Does device have DMA? */#define XPAR_EMAC_0_ERR_COUNT_EXIST TRUE /* Does device have counters? */#define XPAR_EMAC_0_MII_EXIST TRUE /* Does device support MII? *//***************************************************************************** * * NS16550 UART defines. * DeviceID starts at 20 */#define XPAR_XUARTNS550_NUM_INSTANCES 1 /* Number of instances */#define XPAR_UARTNS550_0_DEVICE_ID 20 /* Device ID for instance */#define XPAR_UARTNS550_0_BASEADDR 0xA0010000 /* IPIF base address */#define XPAR_UARTNS550_0_CLOCK_HZ (66000000L)/* 66 MHz clock */#define XPAR_UARTNS550_1_DEVICE_ID 21 /* Device ID for instance */#define XPAR_UARTNS550_1_BASEADDR 0xA0000000 /* IPIF base address */#define XPAR_UARTNS550_1_CLOCK_HZ (66000000L)/* 66 MHz clock *//***************************************************************************** * * UartLite defines. * DeviceID starts at 30 */#define XPAR_XUARTLITE_NUM_INSTANCES 1 /* Number of instances */#define XPAR_UARTLITE_0_DEVICE_ID 30 /* Device ID for instance */#define XPAR_UARTLITE_0_BASEADDR 0xA0020000 /* Device base address */#define XPAR_UARTLITE_0_BAUDRATE 19200 /* Baud rate */#define XPAR_UARTLITE_0_USE_PARITY FALSE /* Parity generator enabled */#define XPAR_UARTLITE_0_ODD_PARITY FALSE /* Type of parity generated */#define XPAR_UARTLITE_0_DATA_BITS 8 /* Data bits *//***************************************************************************** * * ATM controller defines. * DeviceID starts at 40 */#define XPAR_XATMC_NUM_INSTANCES 1 /* Number of instances */#define XPAR_ATMC_0_DEVICE_ID 40 /* Device ID for instance */#define XPAR_ATMC_0_BASEADDR 0x70000000 /* Device base address */#define XPAR_ATMC_0_DMA_PRESENT FALSE /* Does device have DMA? *//***************************************************************************** * * Serial Peripheral Interface (SPI) defines. * DeviceID starts at 50 */#define XPAR_XSPI_NUM_INSTANCES 2 /* Number of instances */#define XPAR_SPI_0_DEVICE_ID 50 /* Device ID for instance */#define XPAR_SPI_0_BASEADDR 0x50000000 /* Device base address */#define XPAR_SPI_0_FIFO_EXIST TRUE /* Does device have FIFOs? */#define XPAR_SPI_0_SLAVE_ONLY FALSE /* Is the device slave only? */#define XPAR_SPI_0_NUM_SS_BITS 32 /* Number of slave select bits */#define XPAR_SPI_1_DEVICE_ID 51 /* Device ID for instance */#define XPAR_SPI_1_BASEADDR 0x50000100 /* IPIF base address */#define XPAR_SPI_1_FIFO_EXIST TRUE /* Does device have FIFOs? */#define XPAR_SPI_1_SLAVE_ONLY FALSE /* Is the device slave only? */#define XPAR_SPI_1_NUM_SS_BITS 32 /* Number of slave select bits *//***************************************************************************** * * OPB Arbiter defines. * DeviceID starts at 60 */#define XPAR_XOPBARB_NUM_INSTANCES 1 /* Number of instances */#define XPAR_OPBARB_0_DEVICE_ID 60 /* Device ID for instance */#define XPAR_OPBARB_0_BASEADDR 0x80000000 /* Register base address */#define XPAR_OPBARB_0_NUM_MASTERS 8 /* Number of masters on bus *//***************************************************************************** * * Watchdog timer/timebase (WdtTb) defines. * DeviceID starts at 70 */#define XPAR_XWDTTB_NUM_INSTANCES 1 /* Number of instances */#define XPAR_WDTTB_0_DEVICE_ID 70 /* Device ID for instance */#define XPAR_WDTTB_0_BASEADDR 0x70800040 /* Register base address *//***************************************************************************** * * Timer Counter (TmrCtr) defines. * DeviceID starts at 80 */#define XPAR_XTMRCTR_NUM_INSTANCES 2 /* Number of instances */#define XPAR_TMRCTR_0_DEVICE_ID 80 /* Device ID for instance */#define XPAR_TMRCTR_0_BASEADDR 0x70800100 /* Register base address *//***************************************************************************** * * IIC defines. * DeviceID starts at 90 */#define XPAR_XIIC_NUM_INSTANCES 2 /* Number of instances */#define XPAR_IIC_0_DEVICE_ID 90 /* Device ID for instance */#define XPAR_IIC_0_BASEADDR 0xA8000000 /* Device base address */#define XPAR_IIC_0_TEN_BIT_ADR TRUE /* Supports 10 bit addresses */#define XPAR_IIC_1_DEVICE_ID 91 /* Device ID for instance */#define XPAR_IIC_1_BASEADDR 0xA8000000 /* Device base address */#define XPAR_IIC_1_TEN_BIT_ADR TRUE /* Supports 10 bit addresses *//***************************************************************************** * * Flash defines. * DeviceID starts at 100 */#define XPAR_XFLASH_NUM_INSTANCES 1 /* Number of instances */#define XPAR_FLASH_INTEL_SUPPORT /* Include intel flash support */#define XPAR_FLASH_0_DEVICE_ID 100 /* Device ID for first instance*/#define XPAR_FLASH_0_BASEADDR 0xFF000000 /* Base address of parts */#define XPAR_FLASH_0_NUM_PARTS 2 /* Number of parts in array */#define XPAR_FLASH_0_PART_WIDTH 2 /* Width of each part in bytes */#define XPAR_FLASH_0_PART_MODE 2 /* Mode of each part in bytes *//***************************************************************************** * * GPIO defines. * DeviceID starts at 110 */#define XPAR_XGPIO_NUM_INSTANCES 1#define XPAR_GPIO_0_DEVICE_ID 110 /* Device ID for instance */#define XPAR_GPIO_0_BASEADDR 0x90000000 /* Register base address */#define XPAR_GPIO_0_INTERRUPT_PRESENT 0 /* Interrupts supported? */#define XPAR_GPIO_0_IS_DUAL 0 /* Dual channels supported? *//***************************************************************************** * * EMC defines. * DeviceID starts at 120 */#define XPAR_XEMC_NUM_INSTANCES 1#define XPAR_EMC_0_DEVICE_ID 120 /* Device ID for instance */#define XPAR_EMC_0_BASEADDR 0xE0000000 /* Register base address */#define XPAR_EMC_0_NUM_BANKS_MEM 3 /* Number of banks *//***************************************************************************** * * PLB Arbiter defines. * DeviceID starts at 130 */#define XPAR_XPLBARB_NUM_INSTANCES 1#define XPAR_PLBARB_0_DEVICE_ID 130 /* Device ID for instance */#define XPAR_PLBARB_0_BASEADDR 0x300 /* Register base address */#define XPAR_PLBARB_0_NUM_MASTERS 1 /* Number of masters on bus *//***************************************************************************** * * PLB To OPB Bridge defines. * DeviceID starts at 140 */#define XPAR_XPLB2OPB_NUM_INSTANCES 1#define XPAR_PLB2OPB_0_DEVICE_ID 140 /* Device ID for instance */#define XPAR_PLB2OPB_0_DCR_BASEADDR 0x0 /* DCR Register base address
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -