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

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

?? syswindml.c

?? vxworks嵌入式開發vmware bsp包 其中已包括網卡的驅動 本人試過 非常好用
?? C
?? 第 1 頁 / 共 3 頁
字號:
        case WINDML_AUDIO_DEVICE:            {            if ((vendorID == 0) && (deviceID == 0))                {                /* If there are no PCI audio class devices ... */                if (pciMmAudioDevNo == 0)                    {                    return (pDev);                    }                else if ((instance >= 0) && (instance < pciMmAudioDevNo))                    {                    return (pciMmAudioDevs[instance]);                    }                }            else if (deviceID == 0)                {                /* Find the specified <instance> of the specified PCI                 * <vendorID> value.                 */                int i;                for (i = 0; i < pciMmAudioDevNo; ++i)                    {                    if (((pciMmAudioDevs[i])->vendorID == vendorID) &&                        (instance-- == 0))                        {                        return (pciMmAudioDevs[i]);                        }                    }                }            else                {                /* Find the specified <instance> of the specified PCI                 * <vendorID> and <deviceID> values.                 */                int i;                for (i = 0; i < pciMmAudioDevNo; ++i)                    {                    if (((pciMmAudioDevs[i])->vendorID == vendorID) &&                        ((pciMmAudioDevs[i])->deviceID == deviceID) &&                        (instance-- == 0))                        {                        return (pciMmAudioDevs[i]);                        }                    }                }            break;            }        }    return (pDev);    }/********************************************************************************* sysWindMLDevCtrl - special control of the device mode** This routine provides special control features for the device.  This* function is essentially a catch all to provide control of the device* where the functionality is provided within a PCI configuration header or* by board specific registers which may be shared by other functions* implemented on the target board.** The <function> argument defines the type of function that is to be* performed and the <pArg> parameter provides the details relating to the* function. ** The values for <function> and the interpretation of the <pArg> parameters* are:**\is*\i WINDML_ACCESS_MODE_SET*       Sets the device's access mode as to whether it is to respond to I/O*       cycles of memory mapped cycles or both.  The accessibility is*       provided by the <pArg> parameter which is bit mapped containing the*       flags WINDML_MEM_ENABLE (enable memory mapped access) and*       WINDML_IO_ENABLE (enable I/O access).*\i WINDML_LCD_MODE_SET*       Sets the control mode for an LCD that is controllable by an on board*       register rather than a graphics device register. The mode information*       is passed through <pArg>. The flags available are WINDML_LCD_ON*       WINDML_LCD_OFF, WINDML_BACKLIGHT_ON, WINDML_BACKLIGHT_OFF.*\i WINDML_BUSWIDTH_SET*       Some boards allow the LCD bus width to be changed dynamically via*       an FPGA or other configurable logic. This can be done in a board*       specific manner. The actual bus width will be passed through <pArg>.*\i WINDML_PCI_MEMBASE_GET*       Obtain the base address of CPU memory as seen by PCI devices.  *\ie** RETURNS: OK for successful control operations, else ERROR.*/STATUS sysWindMLDevCtrl     (    WINDML_DEVICE * pDev,        /* Device to control */    int             function,    /* Type of operation to perform */    int *           pArg         /* Control mode */    )    {    STATUS status = ERROR;    if (pDev == NULL)        {        return (status);        }    switch (function)        {        /* Conrol the PCI access mode, the command byte */        case WINDML_ACCESS_MODE_SET:            {            int busno, devno, funcno;            if (pciFindDevice (pDev->vendorID,                               pDev->deviceID,                               pDev->instance,                                &busno, &devno, &funcno) != OK)                {                return (ERROR);                }            status = pciConfigOutWord (busno, devno, funcno,                                       PCI_CFG_COMMAND, *pArg);            break;            }        /* Obtain the CPU memory base address as seen by PCI device */        case WINDML_PCI_MEMBASE_GET:            /* PCI memory base is same as CPU, so set to 0 */            *pArg = 0;            break;        }    return (status);    }/********************************************************************************* sysWindMLDevRelease - release a device configuration** This routine will release any resources that were allocated when a  * device was configured using the sysWindMLDevGet() function.  This * function will free the memory that was allocated for the WINDML_DEVICE * data structure if it was dynamically allocated.  If the data structure* was not dynamically allocated, this function will usually be simply a* stub.** INTERNAL* When a static memory pool configuration is used, <pDev> descriptors* for PCI devices are not released back to the static pool once they* are successfully allocated and initialized at the conclusion of the* sysWindMLHwInit() routine.** RETURNS: OK for a successful release operation, else ERROR.*/STATUS sysWindMLDevRelease     (    WINDML_DEVICE * pDev         /* Device to release */    )    {#ifdef    SYS_WINDML_STATIC_MEM_POOL    if ((pDev != NULL) && (pDev->busType != BUS_TYPE_PCI))        {        sysWindMlDescFree (pDev);        }#else    if (pDev != NULL)        {        sysWindMlDescFree (pDev);        }#endif /* SYS_WINDML_STATIC_MEM_POOL */    return (OK);    }/********************************************************************************* sysWindMLIntConnect - Connect the device interrupt** This routine connects a routine to the interrupt.** RETURNS: OK or ERROR.*/STATUS sysWindMLIntConnect    (    WINDML_DEVICE * pDev,        /* Graphics device to control */    VOIDFUNCPTR     routine,     /* routine to be called */    int             parameter    /* parameter to be passed */    )    {    STATUS status = ERROR;    if ((pDev != NULL) && (pDev->intVector != NULL) && (routine != NULL))        {        if (pDev->busType == BUS_TYPE_PCI)            status = pciIntConnect (pDev->intVector, routine, parameter);        else            status = intConnect (pDev->intVector, routine, parameter);        }    return (status);    }/********************************************************************************* sysWindMLIntEnable - Enable interrupts** This routine enables the interrupt.** RETURNS: OK or ERROR.*/STATUS sysWindMLIntEnable    (    WINDML_DEVICE * pDev         /* Device to control */    )    {    return ((pDev != NULL) ? (sysIntEnablePIC (pDev->intLevel)) : (ERROR));    }/********************************************************************************* sysWindMLIntDisable - Disable interrupts** This routine disables the interrupt.** RETURNS: OK or ERROR.*/STATUS sysWindMLIntDisable    (    WINDML_DEVICE * pDev         /* Device to control */    )    {    return ((pDev != NULL) ? (sysIntDisablePIC (pDev->intLevel)) : (ERROR));    }/********************************************************************************* sysWindMlPciDevMap - map a WindML device into the host address space** This routine initializes the <pPhysBaseAdrs(n)> fields of the specified* WINDML_DEVICE descriptor with the PCI base address register (BAR) values* from a PCI device specified by <bus>, <dev>, and <func>.  The WindML* device's PCI memory decoders, if any, are mapped into the host processor's* address space.** CAVEATS* As of PCI 2.2, decoders may be implemented in any of the base address* register (BAR) positions.  If more than one decoder is implemented,* there may be holes.  Therefore, inspect all six of the possible BAR* positions in the device header to determine which registers are actually* implemented.** This routine will not correctly detect and handle 64-bit base address* registers.** The BSP-specific sysMmuMapAdd() routine is used to create <sysPhysMemDesc>* table entries for memory BARs.  As a result, this routine should be used* _before_ the <sysPhysMemDesc> table is referenced for the purpose of* initializing the MMU or processor address space (us. in usrMmuInit()).** All memory BARs will be mapped as uncacheable, regardless of whether the* Prefetchable Attribute Bit is set in the BAR.  This has been done for* the following reasons:**     (1) The WindML graphics drivers do not manually flush and / or*         invalidate R/W transactions to things like frame buffers.**     (2) Some supported devices are known to set the Prefetchable bit*         in memory BARs for memory regions in which the device implements*         memory-mapped I/O registers.  This is not "the right thing" for*         the device to do, but it is a reality that we have to deal with.** RETURNS:* OK, else ERROR if memory decoders could not be mapped into the processor's* address space.  In the case of an ERROR return, the <pPhysBaseAdrs> fields* of the specified WINDML_DEVICE are undefined.** NOMANUAL*/LOCAL STATUS sysWindMlPciDevMap    (    WINDML_DEVICE * pDev,       /* WindML device descriptor */    UINT32          bus,        /* device's PCI bus number */    UINT32          dev,        /* device's PCI device number */    UINT32          func        /* device's PCI function number */    )    {    UINT16          cmdSave;    /* saves 16-bit PCI command word register */    UINT32          barSave;    /* saves 32-bit PCI base address register */    UINT32          barRead;    /* memory decoder (if any) read from BAR  */    STATUS          retVal = OK;    /* save PCI device command word register & disable memory decode */    pciConfigInWord  (bus, dev, func, PCI_CFG_COMMAND, &cmdSave);    pciConfigOutWord (bus, dev, func, PCI_CFG_COMMAND,                      cmdSave & ((~PCI_CMD_MEM_ENABLE) | (~PCI_CMD_IO_ENABLE)));    /* save the BARs and determine whether memory decoders are implemented */    pciConfigInLong  (bus, dev, func, PCI_CFG_BASE_ADDRESS_0, &barSave);    pDev->pPhysBaseAdrs0 = (void *) barSave;    pciConfigOutLong (bus, dev, func, PCI_CFG_BASE_ADDRESS_0, 0xffffffff);    pciConfigInLong  (bus, dev, func, PCI_CFG_BASE_ADDRESS_0, &barRead);    if (barRead != 0)        {        pciConfigOutLong (bus, dev, func, PCI_CFG_BASE_ADDRESS_0, barSave);        if ((barRead & PCI_BASE_IO) != PCI_BAR_SPACE_IO)            {            barSave  &= PCI_MEMBASE_MASK;            barRead  &= PCI_MEMBASE_MASK;            if (sysMmuMapAdd ((void *) barSave, (1 << (ffsLsb (barRead) - 1)),                VM_STATE_MASK_FOR_ALL, VM_STATE_FOR_IO) == ERROR)                {                retVal = ERROR;                goto WINDML_MAP_DEV_RETURN;                }            }        }    pciConfigInLong  (bus, dev, func, PCI_CFG_BASE_ADDRESS_1, &barSave);    pDev->pPhysBaseAdrs1 = (void *) barSave;    pciConfigOutLong (bus, dev, func, PCI_CFG_BASE_ADDRESS_1, 0xffffffff);    pciConfigInLong  (bus, dev, func, PCI_CFG_BASE_ADDRESS_1, &barRead);    if (barRead != 0)        {        pciConfigOutLong (bus, dev, func, PCI_CFG_BASE_ADDRESS_1, barSave);        if ((barRead & PCI_BASE_IO) != PCI_BAR_SPACE_IO)            {            barSave  &= PCI_MEMBASE_MASK;            barRead  &= PCI_MEMBASE_MASK;            if (sysMmuMapAdd ((void *) barSave, (1 << (ffsLsb (barRead) - 1)),                VM_STATE_MASK_FOR_ALL, VM_STATE_FOR_IO) == ERROR)                {                retVal = ERROR;                goto WINDML_MAP_DEV_RETURN;                }            }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲va在线va天堂| 国产精品人妖ts系列视频| 亚洲国产一区视频| 欧洲日韩一区二区三区| 亚洲自拍偷拍av| 欧美裸体一区二区三区| 麻豆91免费观看| 久久一区二区三区四区| 国产精品1024| 亚洲视频小说图片| 欧美日韩成人高清| 久久精品国产精品亚洲综合| 久久精品视频在线免费观看| 色婷婷亚洲精品| 日韩成人免费在线| 久久久久久久久久久久久久久99 | 国产婷婷一区二区| 成人国产一区二区三区精品| 一区二区高清免费观看影视大全| 欧美日韩在线观看一区二区| 激情小说欧美图片| 国产精品传媒入口麻豆| 在线播放中文字幕一区| 国产乱码精品一区二区三区av| 国产精品人妖ts系列视频| 欧美美女一区二区在线观看| 国产宾馆实践打屁股91| 一区二区三区四区激情| 久久综合久久鬼色| 在线一区二区三区四区五区| 麻豆成人综合网| 亚洲精品成人a在线观看| 日韩欧美在线123| av成人动漫在线观看| 亚洲一区二区在线播放相泽| 亚洲最快最全在线视频| 99久精品国产| 亚洲尤物视频在线| 国产女同性恋一区二区| 欧美日韩日日摸| 不卡视频在线看| 久久99国产精品尤物| 亚洲国产欧美在线人成| 久久精品在这里| 欧美一区二区三区爱爱| 国产凹凸在线观看一区二区| 看片的网站亚洲| 亚洲国产视频a| 国产精品久久久久9999吃药| 久久综合久久综合亚洲| 欧美老年两性高潮| 99久久精品免费| 国产激情视频一区二区在线观看 | 日韩欧美的一区| 欧美在线一二三四区| 懂色中文一区二区在线播放| 精品无人码麻豆乱码1区2区 | 免费人成网站在线观看欧美高清| 伊人开心综合网| 亚洲免费伊人电影| 亚洲欧洲国产专区| 中文字幕高清不卡| 久久精品免费在线观看| 亚洲精品一线二线三线无人区| 欧美日韩国产小视频| 欧美在线看片a免费观看| 一本到不卡免费一区二区| 成人激情小说乱人伦| 国产精品18久久久久久久网站| 老司机精品视频导航| 美国三级日本三级久久99| 日韩av一二三| 免费成人在线网站| 美女视频一区在线观看| 麻豆精品视频在线观看| 久久电影网站中文字幕| 麻豆久久一区二区| 国产自产2019最新不卡| 国产在线一区二区| 国产精品一区二区在线观看不卡| 国产一区二区三区综合| 国产精品亚洲人在线观看| 丰满少妇在线播放bd日韩电影| 成人性生交大片免费看中文| 成人永久免费视频| 成人天堂资源www在线| 99视频国产精品| 色综合视频在线观看| 欧美亚洲高清一区| 884aa四虎影成人精品一区| 欧美一区二区日韩一区二区| 日韩欧美一级精品久久| 久久久精品tv| 亚洲色图制服丝袜| 亚洲bt欧美bt精品777| 美女mm1313爽爽久久久蜜臀| 国产一区二区三区久久久| 国产成人精品在线看| 91女神在线视频| 国产精品你懂的在线欣赏| 中文字幕欧美一| 亚洲韩国一区二区三区| 黄色资源网久久资源365| 国产99久久久精品| 91在线云播放| 日韩免费在线观看| 欧美国产综合色视频| 亚洲自拍偷拍综合| 亚洲欧美色一区| 国产精品影视在线观看| 亚洲免费观看高清完整版在线观看 | 亚洲成av人片| 精品亚洲国内自在自线福利| 成人白浆超碰人人人人| 欧美美女bb生活片| 中国av一区二区三区| 亚洲大片免费看| 国产成人精品免费在线| 精品视频免费看| 欧美激情在线观看视频免费| 亚洲激情图片qvod| 国产乱码字幕精品高清av| 欧洲一区在线观看| 久久精品无码一区二区三区| 亚洲一区二区三区四区五区黄 | 91日韩在线专区| 日韩一区二区三区视频| 亚洲欧美日韩一区| 九九久久精品视频| 欧美性受极品xxxx喷水| 国产欧美日韩卡一| 免费视频一区二区| 91黄色免费看| 国产精品网友自拍| 精品一区二区免费视频| 欧美日高清视频| 亚洲人成小说网站色在线| 精品中文字幕一区二区| 欧美性猛片aaaaaaa做受| 中文字幕久久午夜不卡| 久久精品免费观看| 在线免费不卡视频| 亚洲欧美在线另类| 国产高清不卡二三区| 日韩欧美精品在线| 天天色综合成人网| 欧美在线999| 亚洲免费毛片网站| 99久久精品一区| 日本一区二区三区免费乱视频| 紧缚捆绑精品一区二区| 欧美一区午夜视频在线观看| 亚洲综合色婷婷| 欧美最猛黑人xxxxx猛交| 亚洲免费观看高清完整版在线| 波多野结衣91| 国产精品美女久久久久高潮| 国产精品综合av一区二区国产馆| 日韩精品一区二区三区中文精品| 日韩黄色免费电影| 欧美一区二区大片| 日本中文在线一区| 欧美一区二区久久久| 日本不卡在线视频| 日韩一区二区三区电影在线观看| 日韩精品成人一区二区在线| 欧美日韩在线播放三区| 亚洲午夜激情网站| 欧美性感一类影片在线播放| 亚洲一区二区在线免费观看视频| 久久久国产午夜精品| 国产一区欧美二区| 欧美国产精品久久| eeuss鲁片一区二区三区 | 午夜私人影院久久久久| 欧美视频精品在线观看| 亚洲成人av中文| 欧美一区二区三区免费观看视频 | 首页亚洲欧美制服丝腿| 在线播放亚洲一区| 九色综合狠狠综合久久| 久久久久亚洲综合| jizzjizzjizz欧美| 亚洲自拍偷拍av| 日韩一区二区免费电影| 国产一二精品视频| 亚洲人成网站色在线观看| 在线中文字幕一区| 日韩在线a电影| 国产区在线观看成人精品| 99精品桃花视频在线观看| 亚洲精品国产无套在线观| 欧美精品三级日韩久久| 韩日精品视频一区| 亚洲女人的天堂| 日韩欧美电影一区| 97精品国产露脸对白| 日韩精品亚洲专区| 国产欧美精品区一区二区三区| 欧美偷拍一区二区|