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

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

?? syswindml.c

?? Kontron的ETX-P3T的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;                }            }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区在线播放| 午夜国产精品一区| 欧美日韩免费观看一区二区三区 | 欧美日韩成人在线一区| 久久9热精品视频| 亚洲人成网站在线| 欧美哺乳videos| 欧美视频一区二区三区四区| 丰满白嫩尤物一区二区| 无码av中文一区二区三区桃花岛| 国产拍揄自揄精品视频麻豆| 日韩欧美一区二区三区在线| 在线一区二区观看| 丁香婷婷综合五月| 国内精品免费**视频| 日产国产欧美视频一区精品| 亚洲综合视频在线观看| 中文字幕在线一区二区三区| 久久久精品tv| 久久久久久久久岛国免费| 欧美一区永久视频免费观看| 欧美丝袜丝交足nylons图片| av在线播放成人| 国产成人av一区| 国产美女在线精品| 韩国视频一区二区| 久久精品国产77777蜜臀| 午夜精品视频在线观看| 亚洲在线中文字幕| 亚洲精品高清视频在线观看| 亚洲人亚洲人成电影网站色| 国产精品入口麻豆九色| 久久久久国产精品免费免费搜索| 精品国产乱码久久久久久牛牛| 欧美另类videos死尸| 欧美三级在线播放| 欧美日韩视频不卡| 欧美放荡的少妇| 欧美精品在线视频| 欧美日韩高清一区二区三区| 日本韩国精品在线| 在线观看一区不卡| 精品视频999| 欧美一区二区三区小说| 日韩免费电影一区| 欧美va日韩va| 国产日韩亚洲欧美综合| 国产精品久久毛片a| 中文字幕视频一区二区三区久| 亚洲四区在线观看| 亚洲第一激情av| 视频一区免费在线观看| 日本sm残虐另类| 韩国欧美国产一区| 高清不卡在线观看av| av午夜一区麻豆| 91成人国产精品| 在线91免费看| 久久精品欧美一区二区三区麻豆| 欧美激情一区二区三区蜜桃视频 | 亚洲美女免费视频| 亚洲女人的天堂| 午夜精品aaa| 精品制服美女久久| zzijzzij亚洲日本少妇熟睡| 色婷婷亚洲精品| 日韩一区二区在线观看| 久久精品一区二区三区av| 亚洲欧洲在线观看av| 亚洲国产精品久久不卡毛片 | 国产精品免费网站在线观看| 亚洲三级久久久| 视频一区中文字幕国产| 国产成人精品免费一区二区| 色综合网站在线| 日韩欧美国产午夜精品| 亚洲视频一区二区在线观看| 一区二区视频在线| 蜜桃久久久久久久| 成人av免费在线| 制服视频三区第一页精品| 国产亚洲精品aa午夜观看| 亚洲美女视频在线| 精品在线亚洲视频| 91国偷自产一区二区三区成为亚洲经典 | 日韩激情视频网站| 成人伦理片在线| 欧美一区二区三区不卡| 亚洲欧洲另类国产综合| 免费看精品久久片| 色综合视频在线观看| xf在线a精品一区二区视频网站| 亚洲欧美在线视频| 国产一区啦啦啦在线观看| 欧美在线视频日韩| 国产精品免费看片| 久久精工是国产品牌吗| 91黄视频在线观看| 中文字幕成人网| 狠狠色丁香九九婷婷综合五月| 色88888久久久久久影院野外| 精品美女在线播放| 日韩专区在线视频| 日本高清不卡视频| 国产精品视频第一区| 精品中文字幕一区二区| 欧美另类久久久品| 亚洲一区二区三区视频在线| 成人一区二区三区视频在线观看| 欧美成人一区二区三区片免费| 一区二区三区欧美日| www.久久久久久久久| 久久综合av免费| 毛片av一区二区| 欧美一区日本一区韩国一区| 一区二区三区四区高清精品免费观看| 国产成人一级电影| 久久综合丝袜日本网| 久久超碰97中文字幕| 欧美一区二区三区在线看| 亚洲国产日韩在线一区模特| 日本韩国精品一区二区在线观看| 国产精品久久久久永久免费观看| 国产69精品久久久久毛片| 久久久久久久网| 国产成人精品影院| 国产人伦精品一区二区| 久久国产精品色| 日韩精品一区二区三区在线播放 | 久久国产综合精品| 日韩天堂在线观看| 麻豆极品一区二区三区| 日韩欧美一区二区三区在线| 秋霞国产午夜精品免费视频| 日韩一区二区三区在线视频| 日本视频一区二区| 欧美大黄免费观看| 精品一区二区三区久久久| 欧美www视频| 国产毛片精品视频| 亚洲国产精品精华液2区45| 成人手机在线视频| 中文字幕一区二| 91精品福利视频| 婷婷久久综合九色国产成人| 日韩欧美在线1卡| 国产原创一区二区| 中文字幕免费观看一区| 色综合亚洲欧洲| 香蕉成人啪国产精品视频综合网 | 成人午夜电影小说| 自拍偷拍国产精品| 在线观看不卡一区| 日本不卡一二三| 精品国产精品网麻豆系列| 国产成人h网站| 亚洲青青青在线视频| 欧美人xxxx| 国产一区二区三区在线观看免费| 日本一区二区三区四区| www..com久久爱| 三级久久三级久久久| 欧美精品一区男女天堂| kk眼镜猥琐国模调教系列一区二区| 1区2区3区欧美| 欧美一区二区性放荡片| 成人晚上爱看视频| 亚洲成人av中文| 亚洲精品一区二区三区福利 | 欧美色综合影院| 久久er99精品| 依依成人精品视频| 日韩亚洲国产中文字幕欧美| 成人一区二区在线观看| 亚洲福利视频一区| 国产欧美一区视频| 欧美久久久久免费| 福利电影一区二区三区| 亚洲午夜在线视频| 国产午夜精品久久| 欧美精品欧美精品系列| 国产成人精品免费在线| 偷拍亚洲欧洲综合| 中文在线一区二区| 欧美美女一区二区在线观看| 国产成人午夜精品5599| 亚洲大片免费看| 国产日韩欧美在线一区| 欧美日韩精品电影| 成人福利电影精品一区二区在线观看 | 欧美三级在线播放| 丁香网亚洲国际| 麻豆成人久久精品二区三区红 | 成人性生交大片| 日韩电影一二三区| 亚洲人成精品久久久久| 久久久久九九视频| 51午夜精品国产| 91丨九色丨黑人外教| 国产精品一级片|