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

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

?? xipif_v1_23_b.c

?? Xilinx XC4VSX35為核心的 XtremeDSP Development Kit-IV 開發板的例程
?? C
字號:
/* $Id: xipif_v1_23_b.c,v 1.3 2004/11/15 20:31:35 xduan 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-2004 Xilinx Inc.*       All rights reserved.*******************************************************************************//*****************************************************************************//**** @file xipif_v1_23_b.c** 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.** <b>Critical Sections</b>** 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.** <b>Mutual Exclusion</b>** 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.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.23b jhl  02/27/01 Repartioned to reduce size* 1.23b rpm  08/17/04 Doxygenated for inclusion in API documentation* 1.23b xd   10/27/04 Improve Doxygen format* </pre>*******************************************************************************//***************************** 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/* 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 32/**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Variable Definitions *****************************//************************** Function Prototypes ******************************/static XStatus IpIntrSelfTest(Xuint32 RegBaseAddress,                              Xuint32 IpRegistersWidth);/*****************************************************************************//**** 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.** @param RegBaseAddress is the base address of the device's IPIF registers** @param 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** A value of XST_SUCCESS indicates the test was successful with no errors.* Any one of the following error values may also be returned.*                                       <br><br>*   - XST_IPIF_RESET_REGISTER_ERROR     The value of a register at reset was*                                       not valid*                                       <br><br>*   - XST_IPIF_IP_STATUS_ERROR          A write to the IP interrupt status*                                       register did not read back correctly*                                       <br><br>*   - XST_IPIF_IP_ACK_ERROR             One or more bits in the IP interrupt*                                       status register did not reset when acked*                                       <br><br>*   - XST_IPIF_IP_ENABLE_ERROR          The IP interrupt enable register*                                       did not read back correctly based upon*                                       what was written to it** @note** None.*******************************************************************************/XStatus XIpIfV123b_SelfTest(Xuint32 RegBaseAddress,                            Xuint8 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;}/******************************************************************************* 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.** @param RegBaseAddress is the base address of the device's IPIF registers** @param 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** 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*                                       <br><br>*   - XST_IPIF_IP_STATUS_ERROR          A write to the IP interrupt status*                                       register did not read back correctly*                                       <br><br>*   - XST_IPIF_IP_ACK_ERROR             One or more bits in the IP status*                                       register did not reset when acked*                                       <br><br>*   - XST_IPIF_IP_ENABLE_ERROR          The IP interrupt enable register*                                       did not read back correctly based upon*                                       what was written to it* @note** None.*******************************************************************************/static XStatus IpIntrSelfTest(Xuint32 RegBaseAddress, Xuint32 IpRegistersWidth){    /* ensure that the IP 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)    {        Xuint32 BitCount;        Xuint32 IpInterruptMask = XIIF_V123B_FIRST_BIT_MASK;        Xuint32 Mask = XIIF_V123B_FIRST_BIT_MASK; /* bits assigned MSB to LSB */        Xuint32 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一区二区三区免费野_久草精品视频
日本一区二区视频在线| 亚洲一区二区三区在线播放| 国产女人18水真多18精品一级做 | 99久久精品情趣| 日韩一区二区免费高清| 亚洲欧美激情视频在线观看一区二区三区| 午夜精彩视频在线观看不卡| 91亚洲精华国产精华精华液| ww亚洲ww在线观看国产| 日韩av一区二区三区四区| 色国产精品一区在线观看| 国产精品网站在线观看| 久久99精品国产.久久久久久| 欧洲精品一区二区| 综合电影一区二区三区| 不卡影院免费观看| 欧美高清在线精品一区| 高清视频一区二区| 2021中文字幕一区亚洲| 美美哒免费高清在线观看视频一区二区| 欧亚一区二区三区| 亚洲精选一二三| 91在线观看下载| 亚洲欧美影音先锋| 99久久国产免费看| 亚洲免费资源在线播放| 色综合久久久久综合体| 亚洲免费观看高清在线观看| 97se亚洲国产综合自在线 | 国产激情91久久精品导航| 日韩免费看的电影| 极品少妇xxxx精品少妇偷拍| 精品福利一二区| 国产伦精品一区二区三区在线观看| 日韩欧美一级精品久久| 精品一区二区三区免费播放| 欧美www视频| 韩国精品免费视频| 日本一区二区三区高清不卡| 成人久久久精品乱码一区二区三区| 国产欧美一区二区精品性色| 成人91在线观看| 亚洲精品视频在线观看网站| 欧美日韩一区 二区 三区 久久精品| 亚洲国产va精品久久久不卡综合| 在线观看亚洲成人| 免费欧美日韩国产三级电影| 精品国产免费人成电影在线观看四季| 国产精品白丝jk黑袜喷水| 中文字幕av在线一区二区三区| 99久久精品一区二区| 午夜欧美视频在线观看| 精品国产乱码久久久久久1区2区| 国产精品888| 一区二区三区四区乱视频| 91精品国产乱码| 风间由美性色一区二区三区| 一区二区三区在线视频观看58| 91精品国产色综合久久ai换脸| 国产裸体歌舞团一区二区| 亚洲精选视频免费看| 欧美一区二区三区免费观看视频| 久久精品国产99国产精品| 欧美国产精品久久| 欧美丰满高潮xxxx喷水动漫| 国产成人精品午夜视频免费| 亚洲综合色噜噜狠狠| 2014亚洲片线观看视频免费| 91在线一区二区三区| 日韩高清不卡在线| 国产精品久久综合| 91精品国产aⅴ一区二区| 99久久精品情趣| 精品在线播放免费| 亚洲一区二区欧美日韩| 欧美国产精品一区二区三区| 欧美一区二区人人喊爽| 91欧美一区二区| 久久99久久精品| 亚洲美腿欧美偷拍| 中文字幕乱码一区二区免费| 91精品国产麻豆国产自产在线 | 亚洲国产精品久久久久秋霞影院 | 波多野结衣在线一区| 日韩成人伦理电影在线观看| 国产精品国产三级国产普通话蜜臀 | 91久久一区二区| 成人一区在线观看| 精品午夜一区二区三区在线观看| 亚洲色图视频免费播放| 2021国产精品久久精品| 日韩午夜电影在线观看| 欧美三级日韩在线| 色综合久久久久综合体桃花网| 国产91精品精华液一区二区三区| 日本视频中文字幕一区二区三区| 亚洲精品一二三| 最新日韩在线视频| 国产精品久久夜| 国产精品久久看| 国产精品久久免费看| 国产女人18毛片水真多成人如厕 | 成人在线视频一区| 激情文学综合插| 麻豆极品一区二区三区| 免费成人深夜小野草| 日韩国产一二三区| 三级影片在线观看欧美日韩一区二区| 一区二区三区毛片| 亚洲成av人在线观看| 午夜视频一区在线观看| 日韩精品欧美精品| 免费在线欧美视频| 麻豆免费精品视频| 极品美女销魂一区二区三区 | 国产精品毛片a∨一区二区三区| www久久精品| 欧美国产成人精品| 亚洲三级在线观看| 亚洲国产精品久久久久秋霞影院| 亚洲一区二区视频在线观看| 亚洲一区二区黄色| 日本大胆欧美人术艺术动态| 久久精品噜噜噜成人av农村| 看片的网站亚洲| 国产成人av一区二区| 99久久免费视频.com| 91福利社在线观看| 日韩欧美亚洲一区二区| 国产盗摄女厕一区二区三区| 久久99精品国产91久久来源| 精品一区二区三区在线视频| 国产精品一线二线三线| 不卡的电视剧免费网站有什么| 99久免费精品视频在线观看| 欧美在线小视频| 日韩精品在线看片z| 日本一区二区三区在线观看| 亚洲人妖av一区二区| 午夜精品视频在线观看| 国产毛片精品一区| 色综合色综合色综合色综合色综合 | 美女被吸乳得到大胸91| 国产福利精品导航| 欧美做爰猛烈大尺度电影无法无天| 欧美精品日韩一本| 久久精品一区二区三区四区| 一片黄亚洲嫩模| 国内精品在线播放| 一区二区三区久久| 亚洲韩国一区二区三区| 亚洲电影欧美电影有声小说| 卡一卡二国产精品| 色老汉一区二区三区| 精品伦理精品一区| 一区二区三区日韩欧美精品| 麻豆成人av在线| 99久久亚洲一区二区三区青草| 6080国产精品一区二区| 亚洲国产高清不卡| 奇米精品一区二区三区在线观看 | 五月开心婷婷久久| 丰满放荡岳乱妇91ww| 欧美一区二区成人6969| 亚洲精品菠萝久久久久久久| 久久99精品久久久| 欧美日韩一区精品| 中文字幕中文字幕一区二区 | 日韩精品91亚洲二区在线观看| 成人免费观看男女羞羞视频| 精品日本一线二线三线不卡| 一区二区三区精品视频| 国产成人精品免费| 2017欧美狠狠色| 六月丁香婷婷久久| 欧美日韩国产综合一区二区三区 | 精久久久久久久久久久| 欧美人与性动xxxx| 一区二区三区鲁丝不卡| 99精品久久久久久| 国产精品久久影院| 成人福利视频在线看| 久久久久久综合| 狠狠色狠狠色综合| 日韩午夜小视频| 毛片av一区二区| 精品久久久久久综合日本欧美| 五月综合激情网| 欧美男男青年gay1069videost| 夜夜嗨av一区二区三区中文字幕 | 99久久综合精品| 国产精品久久久久久亚洲毛片| 国产乱子伦一区二区三区国色天香| 日韩一区二区在线播放| 免费观看日韩电影| 日韩一区二区视频在线观看| 久久精品久久99精品久久| 日韩丝袜美女视频| 久久www免费人成看片高清| 26uuu另类欧美亚洲曰本|