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

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

?? syswindml.c

?? vxworks for Sam2410 bsp NoNet
?? C
字號:
/* 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);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人短视频下载| 26uuu国产一区二区三区| 欧美一区二区福利视频| 欧美国产一区在线| 视频一区中文字幕| 91在线看国产| 久久久久亚洲综合| 天堂在线亚洲视频| 91猫先生在线| 中文字幕一区二区日韩精品绯色| 五月婷婷久久综合| 在线视频欧美精品| 国产精品人人做人人爽人人添| 久久精品国产久精国产| 欧美在线影院一区二区| 国产精品久久久久四虎| 激情国产一区二区| 日韩欧美国产精品| 视频一区在线播放| 欧美色视频一区| 亚洲女同ⅹxx女同tv| 国产河南妇女毛片精品久久久| 91精品国产一区二区三区| 亚洲一区二区三区免费视频| 成人av片在线观看| 国产精品视频一二三区| 国产白丝网站精品污在线入口| 日韩欧美一二区| 久久av老司机精品网站导航| 欧美一区二区观看视频| 免费看欧美美女黄的网站| 欧美日本韩国一区| 日本一区中文字幕| 欧美一级片在线| 日本在线播放一区二区三区| 日韩美女在线视频| 韩国理伦片一区二区三区在线播放| 日韩精品一区在线| 久久97超碰色| 国产亚洲一区二区三区| 国产69精品久久99不卡| 国产精品欧美久久久久无广告| 大尺度一区二区| 亚洲人成在线播放网站岛国| 欧美无人高清视频在线观看| 亚洲国产精品久久久久婷婷884| 欧美日韩在线播放一区| 视频一区视频二区中文字幕| 精品日产卡一卡二卡麻豆| 国产一区二区主播在线| 中文字幕成人av| 91片黄在线观看| 午夜精品影院在线观看| 日韩情涩欧美日韩视频| 国产成人av电影在线观看| 国产精品伦理在线| 欧日韩精品视频| 免费欧美高清视频| 国产精品久久久久久久久搜平片 | 亚洲成a人v欧美综合天堂| 欧美日韩高清在线| 国产精品自产自拍| 一区二区理论电影在线观看| 欧美精品丝袜中出| 国产在线不卡一卡二卡三卡四卡| 国产精品人妖ts系列视频| 欧美日韩在线播放一区| 国产精品香蕉一区二区三区| 综合av第一页| 日韩精品一区二区三区视频播放 | 五月激情丁香一区二区三区| 26uuu久久综合| 色国产精品一区在线观看| 蜜臀av国产精品久久久久| 国产精品免费视频网站| 91精品国产综合久久香蕉的特点 | 制服.丝袜.亚洲.另类.中文| 国产一区二区成人久久免费影院 | 国产精品毛片久久久久久| 欧美日韩一区二区欧美激情| 福利视频网站一区二区三区| 香蕉加勒比综合久久| 国产精品理论在线观看| 欧美一二三区精品| 91免费在线看| 国产不卡高清在线观看视频| 秋霞av亚洲一区二区三| 一区二区三区加勒比av| 国产视频在线观看一区二区三区| 欧美日韩国产另类一区| 99久久免费视频.com| 国产毛片一区二区| 婷婷亚洲久悠悠色悠在线播放 | 91亚洲国产成人精品一区二区三| 久久国产欧美日韩精品| 亚洲午夜精品17c| 国产精品福利一区| 国产亚洲精品bt天堂精选| 日韩免费一区二区| 欧美日本一道本在线视频| 91福利精品视频| 成人激情图片网| 国产伦精品一区二区三区在线观看| 亚洲v精品v日韩v欧美v专区| 亚洲男帅同性gay1069| 亚洲视频你懂的| 国产精品久久777777| 国产日韩欧美在线一区| 久久综合九色综合97_久久久| 欧美一个色资源| 日韩码欧中文字| 国产精品网站导航| 国产欧美日韩一区二区三区在线观看| 这里只有精品免费| 欧美理论电影在线| 欧美精品自拍偷拍| 91精品国产色综合久久| 91麻豆精品国产自产在线观看一区| 欧美日韩免费一区二区三区视频| 欧美色图在线观看| 欧美自拍偷拍午夜视频| 欧美性感一区二区三区| 欧美浪妇xxxx高跟鞋交| 欧美一区二区二区| 精品久久人人做人人爽| 国产女人18毛片水真多成人如厕| 欧美激情一区二区三区在线| 国产精品久久久久久久浪潮网站 | 欧美网站一区二区| 欧美电影在线免费观看| 日韩精品一区在线| 国产欧美一区二区精品婷婷| 国产精品超碰97尤物18| 亚洲无线码一区二区三区| 麻豆一区二区99久久久久| 国产suv一区二区三区88区| 不卡高清视频专区| 欧美日本在线观看| 精品国精品自拍自在线| 国产精品美女视频| 亚洲一区视频在线观看视频| 青青草97国产精品免费观看 | 亚洲一区二区三区中文字幕| 日韩va亚洲va欧美va久久| 国产精品伊人色| 色婷婷综合久色| 精品国产制服丝袜高跟| 激情文学综合网| 91在线视频播放| 欧美变态tickle挠乳网站| 国产精品福利影院| 美女视频网站黄色亚洲| 99精品视频一区| 欧美va天堂va视频va在线| 一区在线观看免费| 久久99国产精品免费| 欧美在线色视频| 国产午夜精品美女毛片视频| 无吗不卡中文字幕| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日韩精品一区二区三区视频| 久久夜色精品国产欧美乱极品| 日韩你懂的电影在线观看| 中文字幕av在线一区二区三区| 亚洲超丰满肉感bbw| 国产一区二区精品久久91| 91麻豆6部合集magnet| 日韩一级黄色片| 亚洲一区二区五区| 免费人成网站在线观看欧美高清| 岛国一区二区三区| 在线视频你懂得一区二区三区| 日韩一级片网站| 一区二区视频在线| 日韩二区三区四区| 91极品视觉盛宴| 久久久夜色精品亚洲| 一个色妞综合视频在线观看| 久久99久久久久久久久久久| 日本久久电影网| 久久久91精品国产一区二区精品| 亚洲激情自拍偷拍| 成人性生交大片免费看中文网站| 欧美精品视频www在线观看 | 亚洲午夜免费电影| 国产黄色91视频| 日韩三级中文字幕| 亚洲国产精品一区二区久久恐怖片 | 一区二区三区丝袜| 国产精品一二三四| 日韩欧美亚洲一区二区| 一区二区免费在线| 成人av在线资源| 久久嫩草精品久久久精品| 青草国产精品久久久久久| 精品一区二区三区久久| 日韩一区国产二区欧美三区| 亚洲成人动漫在线观看| av色综合久久天堂av综合| 久久久天堂av|