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

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

?? syswindml.c

?? vxwork arm920 bsp開(kāi)發(fā)包
?? C
字號(hào):
/* sysWindML.c - WindML BSP specific routines  *//* Copyright 2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01a,07aug01,m_h  created*/#include <vxWorks.h>#include <ugl/sysWindML.h>#include <config.h>#include <pciClass.h>#include "integrator.h"/*DESCRIPTIONThis library provides board-specific routines to support WindML.  This file is included at the end of sysLib.c when WindML functionality is to be included.This API is designed in a general fashion, such that it is applicable to allprocessor types and is bus independent.  It provides the support equally forgraphics devices that are integral to a processor (such as with the PPC821) and graphics devices that are present on a PCI bus.The API provides support for configurations where a system has multiple graphicsdevices and input devices.A data structure allocated within the BSP provides information describing the graphics, input (keyboard and pointer), and audio devices.  A serial pointerthat connects to a standard serial port (such as, /tyCo/0) is not covered bythis API.  Those devices use the standard serial drivers.The data structure to define the graphics device is as follows: typedef struct windml_device   {    UINT32  vendorID,                   /@ vendor ID @/    UINT32  deviceID,                   /@ device ID @/    UINT32  instance,                   /@ instance of device @/    UINT32  devType,                    /@ type of input device @/    UINT32  regDelta;                   /@ distance between adjacent registers @/    UINT32  intLevel;                   /@ interrupt level to be used @/    VOIDFUNCPTR * intVector;            /@ interrupt vector to be used @/    void    * pPhysBaseAdrs0;           /@ first base address @/    void    * pPhysBaseAdrs1;           /@ second base address @/    void    * pPhysBaseAdrs2;           /@ third base address @/    void    * pPhysBaseAdrs3;           /@ fourth base address @/    void    *pRegBase;                  /@ base address of register space @/   } WINDML_DEVICE; The above structure provides space for up to two memory segments that are used to access the device (for example, one segment for the frame buffer and another for the memory mapped registers).  Typically, a device  will only have a single memory segment.  The size field identifies the number of bytes present within the memory segment. The <pRegBase> field identifies the base address to use to access the I/O ports. This is typically the base of the ISA space.  For X86 type processors, this field would be set to 0.  For powerPC processors, this field would be set  according to the memory model used (PRep or CHRP).INCLUDE FILES: ugl/sysWindML.h*//******************************************************************************** sysWindMLDevGet - configures the device** This routine will determine the presence of the device and perform any device * configuration required.  The behaviour of this function varies depending on the * type of device configuration (such as a PCI device, integral, device * controller, etc.).  A device configuration data structure is created for the * specified device.  This configuration data defines the access mechanism for * the device.    ** The <vendorID> and <deviceID> identify the vendor and device identifiers in* the PCI environment.  If these values are set to zero, then the <instance> * occurrence of a device will be returned.  For example, if the <instance> and * <vendorID> were set to zero, then the routine will return the first occurrence * of a device.* * The returned data structure provides miscellaneous data items that describe * the manner in which to access the device.  ** RETURNS: When device has been successfully configured, the address of the*          device data structure; otherwise NULL**/WINDML_DEVICE * sysWindMLDevGet     (    UINT32 devType,     /* Device Type */    UINT32 instance,	/* The instance of the device */    UINT32 vendorID,	/* The identifier for the device manufacturer */    UINT32 deviceID	/* The identifier for the device */    )    {    WINDML_DEVICE * pDev = NULL;    int busno, slotno, funcno;    UINT16 data;    UINT32 memRgn = 0; /* set only to silence compiler warning */    switch (devType) {	case WINDML_GRAPHICS_DEVICE :	    {	    if (vendorID == 0 || deviceID == 0)		{		int pciClass = PCI_CLASS_DISPLAY_CTLR << 16;		if (pciFindClass (pciClass, instance, &busno, &slotno, &funcno) != OK)		    {		    return (pDev);		    }		if (pciConfigInWord (busno, slotno, funcno, PCI_CFG_VENDOR_ID,                                     (short *)&data)		    != OK)		    {		    return (pDev);		    }		vendorID = data;		if (pciConfigInWord (busno, slotno, funcno, PCI_CFG_DEVICE_ID,                                     (short *) &data)		    != OK)		    {		    return (pDev);		    }		deviceID = data;		}	    else		{		if (pciFindDevice (vendorID, deviceID, instance, 				   &busno, &slotno, &funcno) != OK) 		    {		    return (pDev);		    }		}	    pDev = (WINDML_DEVICE *)calloc(1, sizeof(WINDML_DEVICE));	    if (pDev == NULL)		{		return (pDev);		}            /* Assign resources (interrupt, I/O) */                        pciAssignResources (busno, slotno, funcno);	    /* extract base address from config space */	    if (pciConfigInLong (busno, slotno, funcno,                                  PCI_CFG_BASE_ADDRESS_0, (int *)&memRgn) != OK)                {                return NULL;                }            memRgn  &= PCI_MEMBASE_MASK;	    pDev->vendorID = vendorID;	    pDev->deviceID = deviceID;	    pDev->instance = instance;	    pDev->devType = devType;	    pDev->pPhysBaseAdrs0 = (void *) memRgn;	    pDev->pPhysBaseAdrs1 = 0;	    pDev->pPhysBaseAdrs2 = 0;	    pDev->pPhysBaseAdrs3 = 0;	    pDev->regDelta = 0;	    pDev->intLevel = 0;	    pDev->intVector = NULL;	    pDev->pRegBase = 0;	    break;	    }	case WINDML_KEYBOARD_DEVICE :	    {	    pDev = (WINDML_DEVICE *)calloc(1, sizeof(WINDML_DEVICE));	    if (pDev == NULL)		{		return (pDev);		}	    pDev->devType = devType;	    pDev->instance = 0;	    pDev->regDelta = 4;	    pDev->intLevel = INT_LVL_KEYBOARD;	    pDev->intVector = (VOIDFUNCPTR *)INT_VEC_KEYBOARD;	    pDev->pRegBase = (void *)KBD_BASE_ADR;	    break;	    }	case WINDML_POINTER_DEVICE :	    {	    pDev = (WINDML_DEVICE *)calloc(1, sizeof(WINDML_DEVICE));	    if (pDev == NULL)		{		return (pDev);		}	    pDev->devType = devType;	    pDev->instance = 0;	    pDev->regDelta = 4;	    pDev->intLevel = INT_LVL_MOUSE;	    pDev->intVector = (VOIDFUNCPTR *)INT_VEC_MOUSE;	    pDev->pRegBase = (void *)MOUSE_BASE_ADR;	    break;	    }	case WINDML_AUDIO_DEVICE :            {            /* not implemented yet */	    break;	    }	default:	    {	    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>.*\ie** RETURNS: OK when control operation was success; otherwise 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)	{	case WINDML_ACCESS_MODE_SET:	    {	    int busno, slotno, funcno;	    if (pciFindDevice (pDev->vendorID, 			       pDev->deviceID, 			       pDev->instance, 			       &busno, &slotno, &funcno) != OK) 		{		return (ERROR);		}	    status = pciConfigOutWord(busno, slotno, funcno, 				      PCI_CFG_COMMAND, *pArg);	    break;	    }	default:	    {	    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 is it were dynamically allocated.  If the data structure was not * dynamically allocated, this function will usually be simply a stub.** RETURNS: OK when  operation was success; otherwise ERROR**/STATUS sysWindMLDevRelease     (    WINDML_DEVICE *pDev	/* Device to release */    )    {    if(pDev != NULL)	free(pDev);    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->devType == WINDML_AUDIO_DEVICE)	    {	    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 */    )    {    STATUS status = ERROR;    if (pDev != NULL && pDev->intLevel != 0)	{	if (pDev->devType != WINDML_AUDIO_DEVICE)	    {	    status = intEnable (pDev->intLevel);	    }	else	    {	    status = OK;	    }	}    return (status);    }/******************************************************************************** sysWindMLIntDisable - Disable interrupts.** This routine disables the interrupt.** RETURNS: OK or ERROR*/STATUS sysWindMLIntDisable    (    WINDML_DEVICE *pDev	/* Device to control */    )    {    STATUS status = ERROR;    if(pDev != NULL && pDev->intLevel != 0)	{	if (pDev->devType != WINDML_AUDIO_DEVICE)	    {	    status = intDisable (pDev->intLevel);	    }	else	    {	    status = OK;	    }	}    return (status);    }/********************************************************************************* sysWindMLHwInit - Perform any necessary hardware initialization in sysHwInit()** RETURNS: OK or ERROR*/STATUS sysWindMLHwInit    (    void    )    {    printf ("sysWindMLHwInit\n");    return(OK);    }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品成人一区二区艾草 | 亚洲精品一区二区三区福利| 韩国精品免费视频| 国产女人aaa级久久久级| 欧洲另类一二三四区| 国产在线精品一区二区三区不卡 | 蜜臀av一区二区在线免费观看| 精品成人免费观看| 欧美在线综合视频| 国产成人午夜视频| 日本亚洲天堂网| 亚洲一卡二卡三卡四卡无卡久久| 久久综合国产精品| 欧美成人欧美edvon| 91老师片黄在线观看| 国产91高潮流白浆在线麻豆| 香蕉影视欧美成人| 夜夜嗨av一区二区三区四季av | 欧美日韩国产天堂| 精彩视频一区二区三区| 亚洲精品在线一区二区| 精东粉嫩av免费一区二区三区| 亚洲蜜桃精久久久久久久| 国产精品高潮久久久久无| 久久久久久**毛片大全| 精品成人一区二区三区| 久久美女高清视频| 欧美激情一区二区三区不卡| 久久夜色精品国产噜噜av| 制服丝袜av成人在线看| 69p69国产精品| 欧美成人r级一区二区三区| 51午夜精品国产| 日韩精品一区二区三区swag| 欧美日韩免费一区二区三区 | 日韩免费高清av| 精品久久国产字幕高潮| 日本一区二区三区在线不卡| 国产欧美一区二区三区在线看蜜臀| 国产色产综合色产在线视频| 亚洲国产精品传媒在线观看| 亚洲男同性视频| 午夜精品成人在线视频| 国产一区二区中文字幕| 99在线精品免费| 欧美色网一区二区| www国产亚洲精品久久麻豆| 国产偷国产偷精品高清尤物 | 天天综合色天天综合色h| 另类小说综合欧美亚洲| av在线这里只有精品| 欧美挠脚心视频网站| 国产精品天干天干在观线| 亚洲一区二区在线视频| 九九热在线视频观看这里只有精品| 北条麻妃一区二区三区| 欧美一级二级三级蜜桃| 国产精品女同一区二区三区| 日韩国产高清在线| 91麻豆高清视频| 久久久久久久久97黄色工厂| 亚洲一二三区在线观看| 国产高清精品久久久久| 欧美精品123区| 亚洲高清中文字幕| 色一情一乱一乱一91av| 久久久美女毛片| 久久国产视频网| 3atv在线一区二区三区| 亚洲影院理伦片| 欧美无乱码久久久免费午夜一区| 中文在线免费一区三区高中清不卡| 日韩国产精品久久久| 欧美日韩三级视频| 天天色综合成人网| 成人免费视频一区二区| 日韩免费福利电影在线观看| 一二三区精品福利视频| 色婷婷av一区| 一区二区三区丝袜| 欧美综合视频在线观看| 亚洲日本一区二区| 欧美伊人久久久久久久久影院 | 暴力调教一区二区三区| 日韩欧美一二区| 国产一区二三区好的| 久久伊99综合婷婷久久伊| 国产专区综合网| 国产精品短视频| 欧美日韩中字一区| 毛片av一区二区三区| 久久人人超碰精品| 成人av网站免费| 亚洲成人av福利| 久久欧美一区二区| 一本大道久久a久久综合| 午夜精品久久久久久久蜜桃app| 欧美日韩一区三区| 久久精品国产成人一区二区三区 | 日韩一区二区在线看| 国产精品一区二区你懂的| 亚洲婷婷国产精品电影人久久| 91黄色小视频| 精品系列免费在线观看| 日韩欧美色电影| 偷拍与自拍一区| 日韩欧美黄色影院| 本田岬高潮一区二区三区| 免费久久99精品国产| 专区另类欧美日韩| 久久这里只精品最新地址| 欧美日韩中文国产| 成人综合婷婷国产精品久久免费| 亚洲综合小说图片| 亚洲日本一区二区三区| 国产日韩一级二级三级| 日韩精品一区二区三区视频播放| 欧美在线观看视频在线| 国产福利一区二区| 精品一区二区日韩| 精品一区二区在线播放| 香蕉乱码成人久久天堂爱免费| 亚洲精品国产第一综合99久久| 国产欧美综合色| 亚洲国产成人私人影院tom | 久久综合九色综合欧美98| 色88888久久久久久影院野外| 成人免费va视频| 国产成人免费在线视频| 国产精一区二区三区| 成人午夜视频网站| av一二三不卡影片| 色婷婷av一区二区三区软件| 色婷婷av久久久久久久| 欧美视频在线观看一区| 欧美日韩免费观看一区三区| 欧美日本在线看| 欧美白人最猛性xxxxx69交| 精品人在线二区三区| 国产午夜精品在线观看| 亚洲人成人一区二区在线观看| 亚洲一区二区黄色| 日本va欧美va精品| 懂色av一区二区三区免费看| 91啦中文在线观看| 欧美精选一区二区| 国产三级一区二区| 亚洲超碰97人人做人人爱| 蜜桃av一区二区| 国产一区二区电影| 欧美日本视频在线| 久久久久久久久久久99999| 亚洲自拍欧美精品| 国产精品一区二区无线| 色婷婷精品久久二区二区蜜臀av| 91精品国产综合久久久久久久| 久久久久国产免费免费| 亚洲香肠在线观看| 国产a区久久久| 2023国产一二三区日本精品2022| 亚洲精品大片www| 国产高清成人在线| 精品黑人一区二区三区久久| 一区二区在线观看免费| 成人免费观看视频| 精品久久久久久久人人人人传媒 | 国产日韩欧美高清| 麻豆精品久久久| 欧美日韩免费高清一区色橹橹| 久久亚洲捆绑美女| 精品一区二区综合| 欧美xxxxxxxx| 日韩电影一区二区三区| 欧洲日韩一区二区三区| 亚洲黄色片在线观看| 99精品视频在线观看| 国产亚洲精品免费| 成人毛片老司机大片| 国产人伦精品一区二区| 国产精品系列在线观看| 久久夜色精品国产欧美乱极品| 精品一区二区三区不卡| 日韩美女在线视频| 国内久久精品视频| 久久久www免费人成精品| 国产精品亚洲а∨天堂免在线| 日韩精品一区在线| 国产成人在线视频网址| 国产精品国产三级国产普通话99| 97se亚洲国产综合自在线不卡| 国产精品毛片大码女人| 色噜噜偷拍精品综合在线| 亚洲韩国一区二区三区| 日韩亚洲欧美成人一区| 国内久久精品视频| 国产精品国产自产拍高清av王其| 色偷偷一区二区三区| 亚洲成av人片| 久久精品欧美一区二区三区麻豆| 丁香激情综合五月|