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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xversion.c

?? edk9.1關(guān)于xilinx大學(xué)計(jì)劃培訓(xùn)的實(shí)例程序
?? C
字號(hào):
/* $Id: xversion.c,v 1.8 2006/09/05 09:12:50 svemula 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.*******************************************************************************//*****************************************************************************//**** @file xversion.c** This file contains the implementation of the XVersion component. This* component represents a version ID.  It is encapsulated within a component* so that it's type and implementation can change without affecting users of* it.** The version is formatted as X.YYZ where X = 0 - 9, Y = 00 - 99, Z = a - z* X is the major revision, YY is the minor revision, and Z is the* compatability revision.** Packed versions are also utilized for the configuration ROM such that* memory is minimized. A packed version consumes only 16 bits and is* formatted as follows.** <pre>* Revision                  Range       Bit Positions** Major Revision            0 - 9       Bits 15 - 12* Minor Revision            0 - 99      Bits 11 - 5* Compatability Revision    a - z       Bits 4 - 0** MODIFICATION HISTORY:** Ver   Who    Date   Changes* ----- ---- -------- -------------------------------------------------------* 1.00a xd   11/03/04 Improved support for doxygen.</pre>*******************************************************************************//***************************** Include Files *********************************/#include "xbasic_types.h"#include "xversion.h"/************************** Constant Definitions *****************************//* the following constants define the masks and shift values to allow the * revisions to be packed and unpacked, a packed version is packed into a 16 * bit value in the following format, XXXXYYYYYYYZZZZZ, where XXXX is the * major revision, YYYYYYY is the minor revision, and ZZZZZ is the compatability * revision */#define XVE_MAJOR_SHIFT_VALUE       12#define XVE_MINOR_ONLY_MASK         0x0FE0#define XVE_MINOR_SHIFT_VALUE       5#define XVE_COMP_ONLY_MASK          0x001F/* the following constants define the specific characters of a version string * for each character of the revision, a version string is in the following * format, "X.YYZ" where X is the major revision (0 - 9), YY is the minor * revision (00 - 99), and Z is the compatability revision (a - z) */#define XVE_MAJOR_CHAR      0   /* major revision 0 - 9 */#define XVE_MINOR_TENS_CHAR 2   /* minor revision tens 0 - 9 */#define XVE_MINOR_ONES_CHAR 3   /* minor revision ones 0 - 9 */#define XVE_COMP_CHAR       4   /* compatability revision a - z */#define XVE_END_STRING_CHAR 5/**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Function Prototypes ******************************/static Xboolean IsVersionStringValid(Xint8* StringPtr);/*****************************************************************************//**** Unpacks a packed version into the specified version. Versions are packed* into the configuration ROM to reduce the amount storage. A packed version* is a binary format as oppossed to a non-packed version which is implemented* as a string.** @param    InstancePtr points to the version to unpack the packed version into.* @param    PackedVersion contains the packed version to unpack.** @return   None.** @note     None.*******************************************************************************/void XVersion_UnPack(XVersion *InstancePtr, Xuint16 PackedVersion){    /* not implemented yet since CROM related */}/*****************************************************************************//**** Packs a version into the specified packed version. Versions are packed into* the configuration ROM to reduce the amount storage.** @param    InstancePtr points to the version to pack.* @param    PackedVersionPtr points to the packed version which will receive*           the new packed version.** @return** A status, XST_SUCCESS, indicating the packing was accomplished* successfully, or an error, XST_INVALID_VERSION, indicating the specified* input version was not valid such that the pack did not occur* <br><br>* The packed version pointed to by PackedVersionPtr is modified with the new* packed version if the status indicates success.** @note** None.*******************************************************************************/XStatus XVersion_Pack(XVersion *InstancePtr, Xuint16 *PackedVersionPtr){    /* not implemented yet since CROM related */    return XST_SUCCESS;}/*****************************************************************************//**** Determines if two versions are equal.** @param    InstancePtr points to the first version to be compared.* @param    VersionPtr points to a second version to be compared.** @return** XTRUE if the versions are equal, XFALSE otherwise.** @note** None.*******************************************************************************/Xboolean XVersion_IsEqual(XVersion *InstancePtr, XVersion *VersionPtr){    Xuint8 *Version1 = (Xuint8 *)InstancePtr;    Xuint8 *Version2 = (Xuint8 *)VersionPtr;    Xuint32 Index;    /* assert to verify input arguments */    XASSERT_NONVOID(InstancePtr != XNULL);    XASSERT_NONVOID(VersionPtr != XNULL);    /* check each byte of the versions to see if they are the same,     * return at any point a byte differs between them     */    for (Index = 0; Index < sizeof(XVersion); Index++)    {        if (Version1[Index] != Version2[Index])        {            return XFALSE;        }    }    /* No byte was found to be different between the versions, so indicate     * the versions are equal     */    return XTRUE;}/*****************************************************************************//**** Converts a version to a null terminated string.** @param    InstancePtr points to the version to convert.* @param    StringPtr points to the string which will be the result of the*           conversion. This does not need to point to a null terminated*           string as an input, but must point to storage which is an adequate*           amount to hold the result string.** @return** The null terminated string is inserted at the location pointed to by* StringPtr if the status indicates success.** @note** It is necessary for the caller to have already allocated the storage to* contain the string.  The amount of memory necessary for the string is* specified in the version header file.*******************************************************************************/void XVersion_ToString(XVersion *InstancePtr, Xint8 *StringPtr){    /* assert to verify input arguments */    XASSERT_VOID(InstancePtr != XNULL);    XASSERT_VOID(StringPtr != XNULL);    /* since version is implemented as a string, just copy the specified     * input into the specified output     */    XVersion_Copy(InstancePtr, (XVersion *)StringPtr);}/*****************************************************************************//**** Initializes a version from a null terminated string. Since the string may not* be a format which is compatible with the version, an error could occur.** @param    InstancePtr points to the version which is to be initialized.* @param    StringPtr points to a null terminated string which will be*           converted to a version.  The format of the string must match the*           version string format which is X.YYX where X = 0 - 9, YY = 00 - 99,*           Z = a - z.** @return** A status, XST_SUCCESS, indicating the conversion was accomplished* successfully, or XST_INVALID_VERSION indicating the version string format* was not valid.** @note** None.*******************************************************************************/XStatus XVersion_FromString(XVersion *InstancePtr, Xint8 *StringPtr){    /* assert to verify input arguments */    XASSERT_NONVOID(InstancePtr != XNULL);    XASSERT_NONVOID(StringPtr != XNULL);    /* if the version string specified is not valid, return an error */    if (!IsVersionStringValid(StringPtr))    {        return XST_INVALID_VERSION;    }    /* copy the specified string into the specified version and indicate the     * conversion was successful     */    XVersion_Copy((XVersion *)StringPtr, InstancePtr);    return XST_SUCCESS;}/*****************************************************************************//**** Copies the contents of a version to another version.** @param    InstancePtr points to the version which is the source of data for*           the copy operation.* @param    VersionPtr points to another version which is the destination of*           the copy operation.** @return** None.** @note** None.*******************************************************************************/void XVersion_Copy(XVersion *InstancePtr, XVersion *VersionPtr){    Xuint8 *Source = (Xuint8 *)InstancePtr;    Xuint8 *Destination = (Xuint8 *)VersionPtr;    Xuint32 Index;    /* assert to verify input arguments */    XASSERT_VOID(InstancePtr != XNULL);    XASSERT_VOID(VersionPtr != XNULL);    /* copy each byte of the source version to the destination version */    for (Index = 0; Index < sizeof(XVersion); Index++)    {        Destination[Index] = Source[Index];    }}/*****************************************************************************//**** Determines if the specified version is valid.** @param    StringPtr points to the string to be validated.** @return** XTRUE if the version string is a valid format, XFALSE otherwise.** @note** None.*******************************************************************************/static Xboolean IsVersionStringValid(Xint8* StringPtr){    /* if the input string is not a valid format, "X.YYZ" where X = 0 - 9,     * YY = 00 - 99, and Z = a - z, then indicate it's not valid     */    if ((StringPtr[XVE_MAJOR_CHAR] < '0') ||        (StringPtr[XVE_MAJOR_CHAR] > '9') ||        (StringPtr[XVE_MINOR_TENS_CHAR] < '0') ||        (StringPtr[XVE_MINOR_TENS_CHAR] > '9') ||        (StringPtr[XVE_MINOR_ONES_CHAR] < '0') ||        (StringPtr[XVE_MINOR_ONES_CHAR] > '9') ||        (StringPtr[XVE_COMP_CHAR] < 'a') ||        (StringPtr[XVE_COMP_CHAR] > 'z'))    {        return XFALSE;    }    return XTRUE;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品资源在线看| 狠狠色狠狠色综合系列| 欧美区一区二区三区| 精品制服美女丁香| 综合自拍亚洲综合图不卡区| 成人小视频在线| 天天综合天天做天天综合| 337p日本欧洲亚洲大胆精品| www.亚洲色图.com| 日韩国产欧美在线播放| 久久久精品一品道一区| 欧美亚洲综合网| 国产宾馆实践打屁股91| 亚洲.国产.中文慕字在线| 久久久不卡网国产精品二区| 日本伦理一区二区| 国产麻豆视频一区二区| 亚洲一级二级在线| 亚洲精品在线免费播放| 91精品福利在线| 懂色av中文字幕一区二区三区 | 欧美激情自拍偷拍| 成人免费视频一区二区| 久久精品国产成人一区二区三区 | 中文字幕日本乱码精品影院| 91福利在线导航| 国产精品一二三四区| 亚洲福利一区二区| 国产精品看片你懂得| 日韩欧美一区二区不卡| 成人午夜视频在线| 美女视频黄a大片欧美| 亚洲综合在线免费观看| 国产欧美精品区一区二区三区| 欧美疯狂性受xxxxx喷水图片| 成人午夜又粗又硬又大| 国内精品久久久久影院色| 亚瑟在线精品视频| 一区二区三区成人| 最新国产精品久久精品| 亚洲国产精品黑人久久久| ww亚洲ww在线观看国产| 日韩一区二区三区视频在线| 欧美精品三级日韩久久| 在线一区二区三区| 色中色一区二区| 丁香天五香天堂综合| 国产成+人+日韩+欧美+亚洲| 九九久久精品视频| 强制捆绑调教一区二区| 天天综合网天天综合色| 中文字幕欧美一| 亚洲欧洲精品成人久久奇米网| 久久精品一区二区三区四区| 久久久国际精品| 久久蜜桃香蕉精品一区二区三区| 26uuu国产电影一区二区| 精品对白一区国产伦| 精品盗摄一区二区三区| 精品女同一区二区| 久久新电视剧免费观看| 久久精品亚洲一区二区三区浴池| 久久一区二区三区国产精品| 久久久五月婷婷| 中文字幕av资源一区| 欧美精品一区二区三区在线播放| 精品1区2区在线观看| 国产偷v国产偷v亚洲高清| 国产亚洲精品免费| 91精品国产免费| 久久久五月婷婷| 亚洲天堂av一区| 亚洲综合另类小说| 丝袜亚洲另类欧美| 国内外成人在线视频| 精品在线免费观看| 国产夫妻精品视频| www.日韩在线| 在线观看精品一区| 日韩视频中午一区| 日韩西西人体444www| 久久久久9999亚洲精品| 中文字幕在线不卡一区| 一区二区三区不卡在线观看 | 欧美三级在线播放| 欧美一级精品在线| 久久免费午夜影院| 国产精品免费aⅴ片在线观看| 国产精品美女久久福利网站| 一区二区三区产品免费精品久久75| 午夜一区二区三区在线观看| 久久精品国产精品青草| 波多野结衣一区二区三区| 欧美性猛交xxxx乱大交退制版 | 国产一区二区三区在线看麻豆| 国产激情视频一区二区三区欧美| 欧美这里有精品| 国产精品嫩草久久久久| 麻豆精品视频在线观看免费| 91麻豆精东视频| 国产欧美一区二区精品性色| 视频在线在亚洲| 色综合久久天天| 欧美激情自拍偷拍| 国内精品写真在线观看| 欧美色爱综合网| 中文字幕在线观看不卡| 国产一区激情在线| 欧美日本一区二区在线观看| 亚洲品质自拍视频| 成人av电影在线网| 久久精品在这里| 另类欧美日韩国产在线| 欧美日韩一区二区三区高清| 亚洲欧洲三级电影| 不卡一区中文字幕| 国产视频一区不卡| 国产精品一区二区在线观看不卡 | 激情综合一区二区三区| 欧美精品自拍偷拍| 亚洲乱码日产精品bd| 成av人片一区二区| 国产精品国产三级国产| 风流少妇一区二区| 日本一区二区视频在线观看| 国产呦萝稀缺另类资源| 精品国产一区二区三区av性色 | 夜夜嗨av一区二区三区网页 | 欧美日韩高清一区二区三区| 亚洲精品日日夜夜| 91久久精品网| 午夜精品免费在线观看| 欧美日韩国产精品成人| 日韩高清在线观看| 欧美一级在线视频| 久久国产成人午夜av影院| 精品国产sm最大网站免费看| 狠狠色丁香久久婷婷综合_中| 欧美大黄免费观看| 国产在线看一区| 久久久久久久电影| 成人影视亚洲图片在线| 亚洲国产精品精华液2区45| 丁香婷婷综合色啪| 最新热久久免费视频| 91福利社在线观看| 亚洲成人综合视频| 欧美大片在线观看| 国产mv日韩mv欧美| 1024国产精品| 欧美在线三级电影| 日本va欧美va精品发布| 精品国产一二三区| 成人在线综合网| 亚洲激情一二三区| 欧美区视频在线观看| 黑人巨大精品欧美黑白配亚洲| 亚洲精品一线二线三线| 顶级嫩模精品视频在线看| 亚洲精品视频自拍| 日韩一区二区三区精品视频| 国产毛片精品国产一区二区三区| 中文字幕在线不卡视频| 欧美三级中文字幕在线观看| 蜜芽一区二区三区| 国产精品三级电影| 色婷婷av一区二区三区gif| 亚洲成人激情自拍| 久久综合九色综合97_久久久| 成人开心网精品视频| 亚洲国产精品影院| 久久久av毛片精品| 在线欧美一区二区| 国产在线精品国自产拍免费| 亚洲女人的天堂| 精品久久久久一区二区国产| 99久久精品免费精品国产| 日本不卡视频在线| 国产精品久久久久久久久久免费看| 欧美日韩美少妇| 国产成人免费av在线| 亚洲成人高清在线| 国产精品网站一区| 欧美高清dvd| 91丨porny丨首页| 久久99精品国产.久久久久久 | 日韩精品一级二级 | 久久一二三国产| 精品视频1区2区3区| 国产一区二区三区在线观看免费视频 | 看国产成人h片视频| 亚洲乱码国产乱码精品精可以看| 精品欧美乱码久久久久久1区2区| 色老综合老女人久久久| 国产精品1区2区3区在线观看| 亚洲第一在线综合网站| 国产精品免费视频一区| 精品国产伦一区二区三区观看方式 | 制服丝袜国产精品| 99精品国产99久久久久久白柏|