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

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

?? sysmotvpdutil.c

?? This file contains board-specific information for the Motorola cpv3060 target board. Specifically,
?? C
字號:
/* sysMotVpdUtil.c - Vital Product Data Routines. *//* Copyright 1984-2000 Wind River Systems, Inc. *//* Copyright 1998-2000 Motorola, Inc., All Rights Reserved *//*modification history--------------------01c,18oct01,mil  Fixed sysVpdPktParse() for vpdShow() error (SPR 35714)                 and cleaned up compiler warnings.01b,05dec00,rhk  WRS code standards cleanup.01a,10aug99,rhk  ported to the cpv3060 BSP (from mv2100 BSP).*//*DESCRIPTIONThis file contains the Vital Product Data utility routines. These routines areused to read the contents of the VPD serial EEPROM and provide access to thevarious VPD data packets. These routines operate using caller-supplied buffers.This permits their use in environments where multiple VPD EEPROMS are supported(as in the Sitka).CAVEATSThis code executes very early in the startup sequence (called from romInit.s),before the image has been copied to RAM (assuming a non-ROM image). As such,this file must be added to the BOOT_EXTRA list in the Makefile to prevent itfrom being compressed during keernel generation. Additionally, extreme cautionmust be exercised when modifying these routines to prevent the use of absolutememory addresses which reference locations in the RAM-relocated image. Theselocations are invalid and references to them will cause unpredictable behavior.Absolute memory addresses are generated by the compiler when referencing tables,static data structures and global variables. All of these must be avoided. Insome places in the code, nested if-else constructs are used to avoid the jumptable created when a simple switch contruct is used. The jump table address wasloaded using an absolute address and the code broke because the execution imagehad not been copied to the RAM address produced by the compiler.*/#include "vxWorks.h"#include "config.h"#include "sysMotVpdCpv3060.h"/* defines */#define ENET_INSTANCE_SIZE  7   /* size of an extended ethernet packet *//******************************************************************************** sysVpdHdrVld - validate a vital product data header** This routine validates the header of a vital product data structure. The* validation is performed by checking the contents of the "eyecatcher" and size* fields.** RETURNS: OK, or ERROR if vpd header contents are invalid.*/STATUS sysVpdHdrVld     (    VPD * pVpd   /* pointer to vpd structure */    )    {    UINT32 * pEyecatcher;    /*     * verify that the contents of the eyecatcher are correct. this must be     * done numerically because the string addresses generated by the     * compiler reference the program data area which is not valid until after     * the code has been copied to ram.     */    pEyecatcher = (UINT32 *)&pVpd->header.eyeCatcher[0];    if ((*pEyecatcher != 0x4d4f544f) ||     /* MOTO */        (*(pEyecatcher+1) != 0x524f4c41))   /* ROLA */        {            return (ERROR);        }    /*     * make sure the eeprom contents will fit into our vpd structure     * and that the eeprom size is at least large enough to hold the header and     * a termination packet.     */    if ( (pVpd->header.size > sizeof(VPD)) ||         (pVpd->header.size < (sizeof(VPD_HEADER) + 1)) )        return (ERROR);    return (OK);    }/******************************************************************************** sysVpdPktParse - parse the vital product data packets** This routine parses a raw VPD data array into an array of VPD packet pointers.* The parser walks through the data area of the vital product data structure and* saves the starting address of each packet it finds into an array of packet* pointers. When a desired packet is needed at a later time, the packet pointer* array can be scanned without having to re-parse the packets for each search.** RETURNS: OK, or ERROR and NULLs the first pointer in the array if an error*          is encountered while parsing or the size of the pointer array is*          exceeded. ** SEE ALSO: sysVpdPktGet()*/STATUS sysVpdPktParse    (    VPD *         pVpd,        /* pointer to vpd structure */    VPD_PACKET ** pVpdPtr,     /* packet ptr array */    UINT32        vpdPktLimit  /* number of pointers in the array */    )    {    VPD_PACKET ** p;           /* address of first array element */    UCHAR type;                /* type of current packet */    UINT32 limit;              /* end of valid packet data */    UINT32 index = 0;          /* current position in packet data */    UINT32 pkt = 0;            /* number of packets found */    /* verify that the header is correct */    if (sysVpdHdrVld (pVpd) != OK)        {        *pVpdPtr = NULL;        return (ERROR);        }    /* save the address of the first element in the pointer array */    p = pVpdPtr;    /* calculate the size of the data array */    limit = (UINT32)pVpd->header.size - sizeof(VPD_HEADER);    /* walk through the vpd data area parsing each packet */    do        {        /* save the packet type */        type =  pVpd->packets[index];        /*         * save the address of the current packet in the packet pointer array         * and advance the packet pointer to the next array entry.         */        *pVpdPtr++ = (VPD_PACKET *)&pVpd->packets[index++];        /* increment the packet count and advance to the next packet */        ++pkt;        index += pVpd->packets[index];        index++;        /*         * check the packet type and bail out of the loop if: 1) the termination         * packet has been found, 2) the packet type is illegal, or 3) if we've         * reached or exceeded the end of the data array or the packet pointer         * array.         */        if ( (type == VPD_PID_TERM) ||             (type == VPD_PID_GI)   ||             (index >= limit)       ||             (pkt >= vpdPktLimit) )            break;        /* continue until termination packet is found */        } while (type != VPD_PID_TERM);     /*     * if we didn't stop due to finding a termination packet, invalidate the     * first entry in the pointer array and return an error indication.     */    if (type != VPD_PID_TERM)        {        *p = NULL;        return (ERROR);        }    else        return (OK);    }/******************************************************************************** sysVpdPktGet - search the vital product data for a specific packet** This routine searches the a caller-supplied array of vpd packet pointers* looking for the specified instance of a specific packet type. Instances are* numbered starting at 0.** NOTE: There are two types of ethernet address packets defined: The base type* has 6 data bytes and no trailing instance number. The alternate type contains* 6 bytes of ethernet address plus a trailing instance byte. Instances are* numbered starting at zero. This routine will handle both packet types. It will* also handle multiple instances of the other packet types (except only one* termination packet is allowed).** RETURNS: A pointer to the desired packet and OK if the packet was found,*          otherwise it returns ERROR.** SEE ALSO: sysVpdPktParse()*/STATUS sysVpdPktGet    (    UCHAR         vpdType,     /* target packet type */    UINT32        vpdInstance, /* instance number of desired packet (0-based) */    VPD_PACKET ** pVpdPtr,     /* address of the array of packet pointers */    VPD_PACKET ** pVpdPacket   /* address of the return variable */    )    {    UCHAR        type;         /* current packet type */    VPD_PACKET * p;            /* pointer to current packet */    /* if the first pointer in the array is NULL, return an error indication. */    if (*pVpdPtr == NULL)        return (ERROR);    do        {        /* get the current packet pointer */        p = *pVpdPtr;        /* if the packet type matches the caller's requested type */        if ( (type = p->type) == vpdType )            {            /*             * see if the type is an ethernet address and has a trailing             * instance value. if it does, see of the instance number matches             * the caller's requested instance.             */            if ( (vpdType == VPD_PID_EA) &&                 (p->size == ENET_INSTANCE_SIZE) &&                 (vpdInstance == p->data[ENET_INSTANCE_SIZE-1]) )                {                *pVpdPacket = p;                return (OK);                }            else                {                /*                 * see if this is the instance the caller requested, if not                 * decrement the instance count and go around again.                 */                if (vpdInstance-- == 0)                    {                    *pVpdPacket = p;                    return (OK);                    }                }            }        /* advance to the next packet. */        pVpdPtr++;        /* terminate on reaching the term packet. */        } while ( type != VPD_PID_TERM);    return (ERROR);    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人一二三区| 在线不卡一区二区| 国产黄色精品视频| 亚洲综合色丁香婷婷六月图片| 欧美一区二区女人| 成人丝袜18视频在线观看| 亚洲电影一区二区三区| 久久影院视频免费| 国产成人亚洲精品狼色在线| 欧美卡1卡2卡| 99久久国产免费看| 韩国三级中文字幕hd久久精品| 伊人色综合久久天天| 久久久久久久综合| 日韩欧美国产一区二区在线播放| 91国偷自产一区二区开放时间| 国产精品一区二区在线看| 日本伊人色综合网| 亚洲黄色免费电影| 中文字幕亚洲精品在线观看 | 国产乱码精品一区二区三| 一区二区三区在线免费播放| 日本一区二区三区在线不卡 | 欧美一级一区二区| 色狠狠色狠狠综合| caoporm超碰国产精品| 国产伦理精品不卡| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲成人av一区二区三区| 亚洲美女视频在线观看| 国产精品电影一区二区三区| 久久一区二区三区国产精品| 日韩欧美的一区| 91精品欧美综合在线观看最新| 色999日韩国产欧美一区二区| 99视频精品免费视频| 国产成a人亚洲| 国产麻豆精品一区二区| 精品综合久久久久久8888| 日韩成人午夜电影| 亚洲成人三级小说| 亚洲动漫第一页| 五月天精品一区二区三区| 一区二区三区电影在线播| 樱桃视频在线观看一区| 亚洲欧美另类小说| 亚洲男人的天堂av| 一区二区三区免费| 亚洲一区二区美女| 香蕉影视欧美成人| 日本成人超碰在线观看| 日韩电影免费在线观看网站| 麻豆国产欧美一区二区三区| 毛片av中文字幕一区二区| 男人的j进女人的j一区| 美美哒免费高清在线观看视频一区二区| 热久久免费视频| 精品一区免费av| 国产精品中文字幕欧美| 成人激情av网| 国产日韩精品一区| 中文字幕免费一区| 最新国产精品久久精品| 亚洲综合一区二区三区| 亚洲成精国产精品女| 麻豆91免费看| 国产精品18久久久久久vr| eeuss国产一区二区三区| 欧美性大战久久| 欧美一区二区视频在线观看2022| 日韩欧美在线1卡| 国产欧美一区二区三区沐欲| 亚洲男同性恋视频| 美女一区二区久久| 风间由美一区二区av101| 在线国产电影不卡| 日韩欧美国产一区在线观看| 中国av一区二区三区| 亚洲国产一区二区在线播放| 国内偷窥港台综合视频在线播放| 菠萝蜜视频在线观看一区| 欧美性xxxxx极品少妇| 欧美电影精品一区二区| 亚洲欧洲成人av每日更新| 五月天久久比比资源色| 国产a视频精品免费观看| 91国产丝袜在线播放| 精品国精品国产| 亚洲精品免费视频| 国内精品免费**视频| 在线看国产日韩| 国产欧美一区二区三区沐欲| 亚洲高清在线精品| 成人免费视频一区| 欧美二区三区91| 国产精品久久99| 久久99国产精品麻豆| 91国产免费观看| 中文字幕欧美区| 久久国产剧场电影| 欧美性做爰猛烈叫床潮| 国产日韩欧美精品电影三级在线| 天天av天天翘天天综合网| 国产成人在线视频播放| 欧美一区二区三区四区五区| 亚洲婷婷综合久久一本伊一区| 久久精品久久久精品美女| 国产欧美在线观看一区| 国产精品一区二区男女羞羞无遮挡 | 精品理论电影在线| 亚洲成人资源网| 97精品国产97久久久久久久久久久久 | 亚洲va韩国va欧美va精品| 精品久久久久一区二区国产| 亚洲国产精品久久不卡毛片| 不卡av电影在线播放| 久久综合丝袜日本网| 午夜激情久久久| 日本电影欧美片| 国产精品久久久久aaaa| 国产福利一区二区| 精品女同一区二区| 免费美女久久99| 91精品啪在线观看国产60岁| 亚洲成在线观看| 色婷婷国产精品| 亚洲欧洲精品一区二区三区| 国产精品911| 国产亚洲精品超碰| 国精产品一区一区三区mba桃花| 5858s免费视频成人| 亚洲影视资源网| 色噜噜夜夜夜综合网| 亚洲免费观看高清在线观看| kk眼镜猥琐国模调教系列一区二区| 久久久亚洲国产美女国产盗摄| 国精品**一区二区三区在线蜜桃| 日韩欧美在线网站| 韩国精品一区二区| 久久在线观看免费| 国产精品一区2区| 久久天天做天天爱综合色| 国产综合久久久久久鬼色| 久久婷婷国产综合精品青草| 国产精品一二二区| 日本一区二区免费在线 | 97久久超碰国产精品| 亚洲四区在线观看| 91捆绑美女网站| 亚洲高清视频中文字幕| 欧美人狂配大交3d怪物一区| 午夜国产精品影院在线观看| 51精品秘密在线观看| 麻豆精品一区二区综合av| 日韩女优av电影在线观看| 国产美女娇喘av呻吟久久| 国产精品蜜臀在线观看| 91精彩视频在线观看| 午夜精品免费在线观看| 日韩免费看的电影| 国产99久久久国产精品潘金| 日韩一区在线免费观看| 欧美中文字幕一二三区视频| 热久久免费视频| 国产日韩欧美精品一区| 色94色欧美sute亚洲线路二 | 日韩美女视频在线| 国产精品1区2区3区| 日韩伦理免费电影| 欧美欧美欧美欧美首页| 久久av资源网| 国产精品久久夜| 欧美色爱综合网| 国产一区啦啦啦在线观看| 日韩一区在线免费观看| 正在播放一区二区| 大白屁股一区二区视频| 一区二区三区日韩欧美| 欧美成人女星排名| a美女胸又www黄视频久久| 亚洲成人动漫在线免费观看| 精品国产sm最大网站免费看| 99在线精品免费| 老司机免费视频一区二区三区| 国产精品女人毛片| 欧美一区二区三区免费观看视频| 粉嫩久久99精品久久久久久夜| 亚洲第一久久影院| 国产清纯白嫩初高生在线观看91| 精品视频在线看| 国产不卡视频在线播放| 色呦呦日韩精品| 久久国产综合精品| 成人欧美一区二区三区白人| 91精品国产色综合久久| 99re热视频这里只精品| 国产精品久久久久久久蜜臀 | 在线一区二区三区四区五区| 欧美一级国产精品| 亚洲3atv精品一区二区三区|