亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xipif_v1_23_b.c

?? gumstiz u-boot loader in linux
?? C
字號:
/* $Id: xipif_v1_23_b.c,v 1.1 2002/03/18 23:24:52 linnj Exp $ *//********************************************************************************       XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*       AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*       SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*       OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*       APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*       THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*       AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*       FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*       WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*       IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*       REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*       INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*       FOR A PARTICULAR PURPOSE.**       (c) Copyright 2002 Xilinx Inc.*       All rights reserved.*******************************************************************************//******************************************************************************** FILENAME:** xipif.c** DESCRIPTION:** This file contains the implementation of the XIpIf component. The* XIpIf component encapsulates the IPIF, which is the standard interface* that IP must adhere to when connecting to a bus.  The purpose of this* component is to encapsulate the IPIF processing such that maintainability* is increased.  This component does not provide a lot of abstraction from* from the details of the IPIF as it is considered a building block for* device drivers.  A device driver designer must be familiar with the* details of the IPIF hardware to use this component.** The IPIF hardware provides a building block for all hardware devices such* that each device does not need to reimplement these building blocks. The* IPIF contains other building blocks, such as FIFOs and DMA channels, which* are also common to many devices.  These blocks are implemented as separate* hardware blocks and instantiated within the IPIF.  The primary hardware of* the IPIF which is implemented by this software component is the interrupt* architecture.  Since there are many blocks of a device which may generate* interrupts, all the interrupt processing is contained in the common part* of the device, the IPIF.  This interrupt processing is for the device level* only and does not include any processing for the interrupt controller.** A device is a mechanism such as an Ethernet MAC.  The device is made* up of several parts which include an IPIF and the IP.  The IPIF contains most* of the device infrastructure which is common to all devices, such as* interrupt processing, DMA channels, and FIFOs.  The infrastructure may also* be referred to as IPIF internal blocks since they are part of the IPIF and* are separate blocks that can be selected based upon the needs of the device.* The IP of the device is the logic that is unique to the device and interfaces* to the IPIF of the device.** In general, there are two levels of registers within the IPIF.  The first* level, referred to as the device level, contains registers which are for the* entire device.  The second level, referred to as the IP level, contains* registers which are specific to the IP of the device.  The two levels of* registers are designed to be hierarchical such that the device level is* is a more general register set above the more specific registers of the IP.* The IP level of registers provides functionality which is typically common* across all devices and allows IP designers to focus on the unique aspects* of the IP.** The interrupt registers of the IPIF are parameterizable such that the only* the number of bits necessary for the device are implemented. The functions* of this component do not attempt to validate that the passed in arguments are* valid based upon the number of implemented bits.  This is necessary to* maintain the level of performance required for the common components.  Bits* of the registers are assigned starting at the least significant bit of the* registers.** Critical Sections** It is the responsibility of the device driver designer to use critical* sections as necessary when calling functions of the IPIF.  This component* does not use critical sections and it does access registers using* read-modify-write operations.  Calls to IPIF functions from a main thread* and from an interrupt context could produce unpredictable behavior such that* the caller must provide the appropriate critical sections.** Mutual Exclusion** The functions of the IPIF are not thread safe such that the caller of all* functions is responsible for ensuring mutual exclusion for an IPIF.  Mutual* exclusion across multiple IPIF components is not necessary.** NOTES:** None.** MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.23b jhl  02/27/01 Repartioned to reduce size*******************************************************************************//***************************** Include Files *********************************/#include "xipif_v1_23_b.h"#include "xio.h"/************************** Constant Definitions *****************************//* the following constant is used to generate bit masks for register testing * in the self test functions, it defines the starting bit mask that is to be * shifted from the LSB to MSB in creating a register test mask */#define XIIF_V123B_FIRST_BIT_MASK     1UL/**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Variable Definitions *****************************//************************** Function Prototypes ******************************/static XStatus IpIntrSelfTest(u32 RegBaseAddress, u32 IpRegistersWidth);/******************************************************************************** FUNCTION:** XIpIf_SelfTest** DESCRIPTION:** This function performs a self test on the specified IPIF component.  Many* of the registers in the IPIF are tested to ensure proper operation.  This* function is destructive because the IPIF is reset at the start of the test* and at the end of the test to ensure predictable results.  The IPIF reset* also resets the entire device that uses the IPIF.  This function exits with* all interrupts for the device disabled.** ARGUMENTS:** InstancePtr points to the XIpIf to operate on.** DeviceRegistersWidth contains the number of bits in the device interrupt* registers. The hardware is parameterizable such that only the number of bits* necessary to support a device are implemented.  This value must be between 0* and 32 with 0 indicating there are no device interrupt registers used.** IpRegistersWidth contains the number of bits in the IP interrupt registers* of the device.  The hardware is parameterizable such that only the number of* bits necessary to support a device are implemented.  This value must be* between 0 and 32 with 0 indicating there are no IP interrupt registers used.** RETURN VALUE:** A value of XST_SUCCESS indicates the test was successful with no errors.* Any one of the following error values may also be returned.**   XST_IPIF_RESET_REGISTER_ERROR       The value of a register at reset was*                                       not valid*   XST_IPIF_IP_STATUS_ERROR            A write to the IP interrupt status*                                       register did not read back correctly*   XST_IPIF_IP_ACK_ERROR               One or more bits in the IP interrupt*                                       status register did not reset when acked*   XST_IPIF_IP_ENABLE_ERROR            The IP interrupt enable register*                                       did not read back correctly based upon*                                       what was written to it** NOTES:** None.*******************************************************************************//* the following constant defines the maximum number of bits which may be * used in the registers at the device and IP levels, this is based upon the * number of bits available in the registers */#define XIIF_V123B_MAX_REG_BIT_COUNT 32XStatusXIpIfV123b_SelfTest(u32 RegBaseAddress, u8 IpRegistersWidth){	XStatus Status;	/* assert to verify arguments are valid */	XASSERT_NONVOID(IpRegistersWidth <= XIIF_V123B_MAX_REG_BIT_COUNT);	/* reset the IPIF such that it's in a known state before the test	 * and interrupts are globally disabled	 */	XIIF_V123B_RESET(RegBaseAddress);	/* perform the self test on the IP interrupt registers, if	 * it is not successful exit with the status	 */	Status = IpIntrSelfTest(RegBaseAddress, IpRegistersWidth);	if (Status != XST_SUCCESS) {		return Status;	}	/* reset the IPIF such that it's in a known state before exiting test */	XIIF_V123B_RESET(RegBaseAddress);	/* reaching this point means there were no errors, return success */	return XST_SUCCESS;}/******************************************************************************** FUNCTION:** IpIntrSelfTest** DESCRIPTION:** Perform a self test on the IP interrupt registers of the IPIF. This* function modifies registers of the IPIF such that they are not guaranteed* to be in the same state when it returns.  Any bits in the IP interrupt* status register which are set are assumed to be set by default after a reset* and are not tested in the test.** ARGUMENTS:** InstancePtr points to the XIpIf to operate on.** IpRegistersWidth contains the number of bits in the IP interrupt registers* of the device.  The hardware is parameterizable such that only the number of* bits necessary to support a device are implemented.  This value must be* between 0 and 32 with 0 indicating there are no IP interrupt registers used.** RETURN VALUE:** A status indicating XST_SUCCESS if the test was successful.  Otherwise, one* of the following values is returned.**   XST_IPIF_RESET_REGISTER_ERROR       The value of a register at reset was*                                       not valid*   XST_IPIF_IP_STATUS_ERROR            A write to the IP interrupt status*                                       register did not read back correctly*   XST_IPIF_IP_ACK_ERROR               One or more bits in the IP status*                                       register did not reset when acked*   XST_IPIF_IP_ENABLE_ERROR            The IP interrupt enable register*                                       did not read back correctly based upon*                                       what was written to it* NOTES:** None.*******************************************************************************/static XStatusIpIntrSelfTest(u32 RegBaseAddress, u32 IpRegistersWidth){	/* ensure that the IP interrupt interrupt enable register is  zero	 * as it should be at reset, the interrupt status is dependent upon the	 * IP such that it's reset value is not known	 */	if (XIIF_V123B_READ_IIER(RegBaseAddress) != 0) {		return XST_IPIF_RESET_REGISTER_ERROR;	}	/* if there are any used IP interrupts, then test all of the interrupt	 * bits in all testable registers	 */	if (IpRegistersWidth > 0) {		u32 BitCount;		u32 IpInterruptMask = XIIF_V123B_FIRST_BIT_MASK;		u32 Mask = XIIF_V123B_FIRST_BIT_MASK;	/* bits assigned MSB to LSB */		u32 InterruptStatus;		/* generate the register masks to be used for IP register tests, the		 * number of bits supported by the hardware is parameterizable such		 * that only that number of bits are implemented in the registers, the		 * bits are allocated starting at the MSB of the registers		 */		for (BitCount = 1; BitCount < IpRegistersWidth; BitCount++) {			Mask = Mask << 1;			IpInterruptMask |= Mask;		}		/* get the current IP interrupt status register contents, any bits		 * already set must default to 1 at reset in the device and these		 * bits can't be tested in the following test, remove these bits from		 * the mask that was generated for the test		 */		InterruptStatus = XIIF_V123B_READ_IISR(RegBaseAddress);		IpInterruptMask &= ~InterruptStatus;		/* set the bits in the device status register and verify them by reading		 * the register again, all bits of the register are latched		 */		XIIF_V123B_WRITE_IISR(RegBaseAddress, IpInterruptMask);		InterruptStatus = XIIF_V123B_READ_IISR(RegBaseAddress);		if ((InterruptStatus & IpInterruptMask) != IpInterruptMask)		{			return XST_IPIF_IP_STATUS_ERROR;		}		/* test to ensure that the bits set in the IP interrupt status register		 * can be cleared by acknowledging them in the IP interrupt status		 * register then read it again and verify it was cleared		 */		XIIF_V123B_WRITE_IISR(RegBaseAddress, IpInterruptMask);		InterruptStatus = XIIF_V123B_READ_IISR(RegBaseAddress);		if ((InterruptStatus & IpInterruptMask) != 0) {			return XST_IPIF_IP_ACK_ERROR;		}		/* set the IP interrupt enable set register and then read the IP		 * interrupt enable register and verify the interrupts were enabled		 */		XIIF_V123B_WRITE_IIER(RegBaseAddress, IpInterruptMask);		if (XIIF_V123B_READ_IIER(RegBaseAddress) != IpInterruptMask) {			return XST_IPIF_IP_ENABLE_ERROR;		}		/* clear the IP interrupt enable register and then read the		 * IP interrupt enable register and verify the interrupts were disabled		 */		XIIF_V123B_WRITE_IIER(RegBaseAddress, 0);		if (XIIF_V123B_READ_IIER(RegBaseAddress) != 0) {			return XST_IPIF_IP_ENABLE_ERROR;		}	}	return XST_SUCCESS;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲三级在线免费观看| 成人中文字幕合集| 国产91高潮流白浆在线麻豆| 色噜噜狠狠色综合欧洲selulu | 另类的小说在线视频另类成人小视频在线 | 国产午夜精品理论片a级大结局| 一区av在线播放| 国产精品综合在线视频| 91麻豆精品国产91久久久使用方法| 日本一区二区在线不卡| 久久99精品久久久| 欧美日韩国产小视频在线观看| 国产精品不卡一区| 国产福利一区在线观看| 精品人在线二区三区| 青草av.久久免费一区| 在线国产亚洲欧美| 中文字幕亚洲精品在线观看| 国产福利一区二区| 亚洲精品在线网站| 久久99久久久欧美国产| 91精品一区二区三区久久久久久| 夜夜精品视频一区二区| 91丨porny丨户外露出| 国产农村妇女精品| 国产乱人伦偷精品视频免下载| 精品少妇一区二区| 美腿丝袜亚洲一区| 91精品在线麻豆| 美女视频网站黄色亚洲| 日韩一卡二卡三卡| 精品影视av免费| 欧美第一区第二区| 精品中文字幕一区二区| 日韩欧美国产一二三区| 麻豆精品一区二区| 久久嫩草精品久久久精品一| 国产一区二三区| 久久久国际精品| 国产成人h网站| 成人欧美一区二区三区1314 | 亚洲激情在线激情| 在线影视一区二区三区| 亚洲成人免费在线观看| 欧美日韩在线播放| 久久99国产精品久久99| 国产三级精品三级在线专区| 成人一级片网址| 亚洲精品视频在线观看网站| 欧美性一二三区| 蜜桃视频一区二区| 久久精品一级爱片| 91美女视频网站| 日韩成人一区二区| 2023国产精品| 91视频一区二区三区| 亚洲午夜久久久久中文字幕久| 欧美肥胖老妇做爰| 国精品**一区二区三区在线蜜桃| 日本一区二区动态图| 在线精品视频小说1| 奇米色777欧美一区二区| 国产拍欧美日韩视频二区| 成人激情校园春色| 婷婷综合另类小说色区| 久久久精品tv| 欧美午夜精品久久久久久超碰 | 午夜久久福利影院| 久久久亚洲国产美女国产盗摄| 粉嫩绯色av一区二区在线观看| 亚洲高清视频中文字幕| 久久久五月婷婷| 欧美视频一区二区| 精品在线视频一区| 亚洲综合精品自拍| 久久九九久久九九| 欧美军同video69gay| 成人久久久精品乱码一区二区三区 | 欧美国产一区二区| 色猫猫国产区一区二在线视频| 午夜精品免费在线| 最新国产精品久久精品| 欧美一区二区免费观在线| 91啪亚洲精品| 国产精品亚洲视频| 看片的网站亚洲| 亚洲小说春色综合另类电影| 中文字幕在线观看一区| 欧美精品一区二区三区四区| 欧美日韩一区在线| 色哟哟一区二区在线观看| 国产经典欧美精品| 久久草av在线| 琪琪久久久久日韩精品| 亚洲国产综合色| 综合久久久久综合| 欧美韩国日本一区| 国产亚洲一区二区三区四区| 日韩一区二区麻豆国产| 欧美群妇大交群的观看方式| 欧美在线制服丝袜| 91麻豆成人久久精品二区三区| 国产1区2区3区精品美女| 九九精品视频在线看| 裸体歌舞表演一区二区| 首页亚洲欧美制服丝腿| 亚洲在线中文字幕| 一区二区三区四区视频精品免费| 国产精品电影一区二区| 国产精品素人一区二区| 国产日韩精品一区二区浪潮av | 欧美一区二区在线观看| 欧美午夜视频网站| 欧美日韩电影在线播放| 欧美日韩电影在线| 欧美一区二区不卡视频| 91精品国产91久久久久久一区二区 | 欧美少妇一区二区| 欧美日韩一级二级三级| 欧美精品久久久久久久久老牛影院| 欧美色精品在线视频| 欧美日韩国产一二三| 日韩欧美在线123| 久久色中文字幕| 国产欧美日韩卡一| 最好看的中文字幕久久| 亚洲乱码国产乱码精品精可以看| 亚洲靠逼com| 午夜伊人狠狠久久| 精品一区二区精品| 成人美女视频在线观看18| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美亚洲禁片免费| 精品剧情v国产在线观看在线| 国产亚洲精品免费| 亚洲免费观看高清在线观看| 亚洲国产欧美在线| 韩国视频一区二区| 不卡欧美aaaaa| 欧美日韩国产片| 国产亚洲成年网址在线观看| 中文字幕一区二区三区不卡在线| 亚洲观看高清完整版在线观看| 久久精品免费观看| 97精品电影院| 日韩一区二区三| 国产精品视频九色porn| 亚洲国产sm捆绑调教视频| 韩国视频一区二区| 日本韩国欧美在线| 精品久久久久香蕉网| 亚洲欧洲av一区二区三区久久| 亚洲第一主播视频| 国产一区二区三区在线观看免费| aaa欧美大片| 日韩一区国产二区欧美三区| 国产精品日日摸夜夜摸av| 午夜激情综合网| 成人小视频免费在线观看| 欧美欧美欧美欧美首页| 中文字幕乱码久久午夜不卡| 丝袜诱惑制服诱惑色一区在线观看| 国产美女一区二区| 制服.丝袜.亚洲.另类.中文| 国产精品久久久久久久久搜平片| 麻豆精品一区二区三区| 欧美私模裸体表演在线观看| 久久精子c满五个校花| 日韩av电影免费观看高清完整版在线观看| 成人亚洲一区二区一| 欧美成人高清电影在线| 亚洲自拍偷拍图区| 99国产欧美另类久久久精品| 精品久久一区二区| 日韩精品91亚洲二区在线观看| 99久久精品国产一区| www国产精品av| 日本欧美在线看| 在线观看免费成人| 亚洲欧洲制服丝袜| 国产99久久久久| 欧美精品一区二区三区蜜桃视频| 一区二区三区成人在线视频| 97se亚洲国产综合自在线| 久久精品夜夜夜夜久久| 九一九一国产精品| 欧美一级免费观看| 午夜精品影院在线观看| 在线欧美小视频| 自拍视频在线观看一区二区| www.色精品| 国产精品乱码一区二三区小蝌蚪| 国产乱一区二区| 久久日韩粉嫩一区二区三区| 国内久久婷婷综合| 精品美女在线观看| 裸体一区二区三区| 精品国产一区二区三区不卡| 麻豆精品一区二区综合av| 欧美xingq一区二区|