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

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

?? xversion.c

?? u-boot1.3.0的原碼,從配了網絡驅動和FLASH的驅動,并該用ESC竟如
?? C
字號:
/********************************************************************************     Author: Xilinx, Inc.***     This program is free software; you can redistribute it and/or modify it*     under the terms of the GNU General Public License as published by the*     Free Software Foundation; either version 2 of the License, or (at your*     option) any later version.***     XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A*     COURTESY TO YOU. 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 THIRD PARTY 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.***     Xilinx hardware products are not intended for use in life support*     appliances, devices, or systems. Use in such applications is*     expressly prohibited.***     (c) Copyright 2002-2004 Xilinx Inc.*     All rights reserved.***     You should have received a copy of the GNU General Public License along*     with this program; if not, write to the Free Software Foundation, Inc.,*     675 Mass Ave, Cambridge, MA 02139, USA.*******************************************************************************//******************************************************************************* 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</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 u32 IsVersionStringValid(s8 * 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.*******************************************************************************/voidXVersion_UnPack(XVersion * InstancePtr, u16 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.*******************************************************************************/XStatusXVersion_Pack(XVersion * InstancePtr, u16 * 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** TRUE if the versions are equal, FALSE otherwise.** @note** None.*******************************************************************************/u32XVersion_IsEqual(XVersion * InstancePtr, XVersion * VersionPtr){	u8 *Version1 = (u8 *) InstancePtr;	u8 *Version2 = (u8 *) VersionPtr;	int Index;	/* assert to verify input arguments */	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(VersionPtr != NULL);	/* 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 FALSE;		}	}	/* No byte was found to be different between the versions, so indicate	 * the versions are equal	 */	return TRUE;}/******************************************************************************* 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.*******************************************************************************/voidXVersion_ToString(XVersion * InstancePtr, s8 * StringPtr){	/* assert to verify input arguments */	XASSERT_VOID(InstancePtr != NULL);	XASSERT_VOID(StringPtr != NULL);	/* 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.*******************************************************************************/XStatusXVersion_FromString(XVersion * InstancePtr, s8 * StringPtr){	/* assert to verify input arguments */	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(StringPtr != NULL);	/* 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.*******************************************************************************/voidXVersion_Copy(XVersion * InstancePtr, XVersion * VersionPtr){	u8 *Source = (u8 *) InstancePtr;	u8 *Destination = (u8 *) VersionPtr;	int Index;	/* assert to verify input arguments */	XASSERT_VOID(InstancePtr != NULL);	XASSERT_VOID(VersionPtr != NULL);	/* 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** TRUE if the version string is a valid format, FALSE otherwise.** @note** None.*******************************************************************************/static u32IsVersionStringValid(s8 * 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 FALSE;	}	return TRUE;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清国产一区在线| 欧洲亚洲国产日韩| 激情综合网激情| 图片区小说区区亚洲影院| 亚洲综合在线视频| 一区二区久久久久| 亚洲国产精品久久人人爱蜜臀| 中文字幕中文字幕一区二区| 久久久久综合网| 日本一区二区视频在线| 日本一区二区三区视频视频| 亚洲午夜久久久| 一区二区三区波多野结衣在线观看| 亚洲人成网站在线| 亚洲精品一卡二卡| 亚洲香肠在线观看| 亚洲成人777| 日韩av一区二区三区| 蜜臀a∨国产成人精品| 国产一区二区三区国产| 国产91对白在线观看九色| 成人性生交大片免费看视频在线| 成人av第一页| 在线观看www91| 日韩欧美亚洲另类制服综合在线| 日韩欧美不卡在线观看视频| 国产性色一区二区| 亚洲视频一二三区| 五月婷婷激情综合| 久久精品国产99国产| 国产精品一区一区| 91丝袜呻吟高潮美腿白嫩在线观看| 91国产成人在线| 日韩欧美国产wwwww| 久久精品水蜜桃av综合天堂| 中文字幕制服丝袜成人av| 一区二区三区在线视频观看58| 五月天亚洲婷婷| 国产精品亚洲午夜一区二区三区| 91亚洲精品久久久蜜桃网站| 欧美日本精品一区二区三区| 精品国产自在久精品国产| 国产精品久久久久久一区二区三区| 亚洲欧美另类在线| 蜜臀av性久久久久蜜臀aⅴ| 成人毛片视频在线观看| 欧美日韩视频在线观看一区二区三区| 欧美一区2区视频在线观看| 国产偷国产偷亚洲高清人白洁| 依依成人综合视频| 久久精品国产在热久久| av中文字幕亚洲| 在线播放中文字幕一区| 中文字幕第一区| 天堂午夜影视日韩欧美一区二区| 国产精品99久久久久久久女警| 色综合久久综合网欧美综合网| 欧美一区二区三区成人| 亚洲人成网站在线| 国产一区二区三区在线观看精品 | 制服丝袜在线91| 国产精品视频你懂的| 日韩综合一区二区| av不卡免费在线观看| 精品国产百合女同互慰| 一区二区在线电影| 国产成人啪午夜精品网站男同| 欧美日韩国产一区二区三区地区| 久久久精品tv| 日韩在线卡一卡二| 91久久精品国产91性色tv| 久久久久久久久久久99999| 亚洲成人av电影在线| 99riav一区二区三区| 日韩女优制服丝袜电影| 午夜精品久久一牛影视| 99国产欧美另类久久久精品 | 亚洲欧美偷拍卡通变态| 韩国精品久久久| 欧美日本一区二区| 亚洲老妇xxxxxx| 成人深夜福利app| 久久色.com| a亚洲天堂av| 精品嫩草影院久久| 天天综合天天做天天综合| 在线亚洲一区二区| 亚洲人成影院在线观看| 福利一区在线观看| 久久久久久久久免费| 蜜桃久久久久久久| 日韩一区二区精品在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 国产suv一区二区三区88区| 日韩欧美一级片| 老司机一区二区| 欧美大黄免费观看| 久久er99热精品一区二区| 欧美丰满少妇xxxbbb| 日韩精品亚洲一区| 欧美丰满一区二区免费视频| 亚洲h精品动漫在线观看| 91精品1区2区| 亚洲激情图片qvod| 欧美伊人久久久久久久久影院| 综合激情成人伊人| 日本乱人伦一区| 亚洲激情综合网| 欧美性猛交xxxx乱大交退制版| 亚洲欧美电影一区二区| 色综合久久久久| 亚洲国产一区二区在线播放| 精品视频一区三区九区| 视频在线观看一区二区三区| 制服丝袜一区二区三区| 久久91精品久久久久久秒播| 精品少妇一区二区三区视频免付费| 免费观看一级特黄欧美大片| 欧美v国产在线一区二区三区| 狠狠色狠狠色综合| 中文字幕不卡一区| 91视频国产观看| 亚洲福利一二三区| 欧美一级免费观看| 国产一区二区不卡在线| 欧美极品少妇xxxxⅹ高跟鞋 | 色婷婷av一区二区三区大白胸| 亚洲一区二区三区精品在线| 91精品黄色片免费大全| 精品一区二区三区久久| 亚洲国产精品精华液ab| 色成年激情久久综合| 肉色丝袜一区二区| 精品国产一区二区三区久久影院| 国产成人av电影在线| 亚洲人成网站在线| 日韩一区二区三区电影| 高清成人在线观看| 亚洲一区二区美女| 精品日韩一区二区三区 | 欧美裸体一区二区三区| 另类欧美日韩国产在线| 国产精品美女视频| 欧美日韩在线亚洲一区蜜芽| 精品一区二区在线视频| 国产精品美日韩| 在线成人免费视频| 高清久久久久久| 午夜精品一区二区三区三上悠亚| 欧美成人高清电影在线| 99久久精品国产导航| 日本欧美韩国一区三区| 中文一区二区在线观看| 欧美日韩国产一二三| 国产精品综合一区二区| 亚洲一区二区综合| 久久久综合视频| 在线看一区二区| 国产激情一区二区三区四区| 亚洲国产视频直播| 国产日韩欧美精品一区| 久久久久国产成人精品亚洲午夜| 色综合久久久久久久久| 狠狠色伊人亚洲综合成人| 亚洲一区二区综合| 国产农村妇女毛片精品久久麻豆 | 欧美一区二区三区电影| 99久久99久久精品免费观看 | 欧美午夜电影网| 国产成人免费视| 蜜桃av一区二区三区| 亚洲乱码国产乱码精品精可以看| 精品福利av导航| 欧美日韩性生活| 99精品一区二区| 国产剧情一区二区三区| 日韩在线一区二区三区| 亚洲精品免费一二三区| 国产亚洲欧洲997久久综合 | 国产欧美日韩在线| 制服丝袜亚洲色图| 欧洲国产伦久久久久久久| 成人性生交大片免费看中文| 另类综合日韩欧美亚洲| 夜夜爽夜夜爽精品视频| 中文字幕五月欧美| 国产亚洲一区二区三区| 精品美女被调教视频大全网站| 欧美日韩高清一区二区不卡| 91在线小视频| 成av人片一区二区| 国产精品亚洲综合一区在线观看| 青娱乐精品在线视频| 日韩中文字幕av电影| 亚洲一卡二卡三卡四卡五卡| 国产精品欧美经典| 国产精品无人区| 国产日产欧美一区| 国产日韩精品久久久| 欧美激情一区二区三区四区|