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

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

?? syswindml.c

?? at91rm9200 bsp at91rm9200 bsp
?? 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>/* defines */#ifdef INCLUDE_WINDML_PS2_POINTER#ifndef INCLUDE_WINDML_PS2_KEYBOARD /* If pointer, tehn we must have keyboard */#define INCLUDE_WINDML_PS2_KEYBOARD#endif /* INCLUDE_WINDML_PS2_KEYBOARD */#ifndef WINDML_POINTER_DEV_NAME#define WINDML_POINTER_DEV_NAME		"/pointer/0"#endif /* WINDML_POINTER_DEV_NAME */#endif /* INCLUDE_WINDML_PS2_POINTER */#ifdef INCLUDE_WINDML_PS2_KEYBOARD#ifndef WINDML_KEYBOARD_DEV_NAME#define WINDML_KEYBOARD_DEV_NAME	"/keyboard/0"#endif /* WINDML_KEYBOARD_DEV_NAME */#endif /* INCLUDE_WINDML_PS2_KEYBOARD *//*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  busType;                    /@ bus type @/    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    * pPhysBaseAdrs4;           /@ fifth base address @/    void    * pPhysBaseAdrs5;           /@ sixth base address @/    void    *pRegBase;                  /@ base address of register space @/   } WINDML_DEVICE; The <vendorID> and the <deviceID> are based upon the PCI bus identifiers.  In this case, these identifiers are extended to include the mapping for non-PCI devices.  The file sysWindML.h provides the identifier for supported vendor and device identifiers.  The above structure supports devices with up to six base addresses used to access the device (for example, one base address for the frame buffer and another for the memory mapped registers).  Typically, a device  will only have a base address.  The <pPhysBaseAdrsX> may need to be interpreted based upon the busType (for example, the <pPhysBaseAdrsX> value is directly obtained from the PCI header which includes flag bits unrelated to the address value). 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;    UINT16 data;    switch (devType) {	case WINDML_GRAPHICS_DEVICE :	    {	    pDev = (WINDML_DEVICE *)calloc(1, sizeof(WINDML_DEVICE));	    if (pDev == NULL)		{		return (pDev);		}    /* extract base address from config space */	    pDev->vendorID = vendorID;	    pDev->deviceID = deviceID;	    pDev->instance = instance;	    pDev->devType = devType;            pDev->busType = BUS_TYPE_PCI;	    pDev->pPhysBaseAdrs0 = (void *) 0;	    pDev->pPhysBaseAdrs1 = 0;	    pDev->pPhysBaseAdrs2 = 0;	    pDev->pPhysBaseAdrs3 = 0;	    pDev->pPhysBaseAdrs4 = 0;	    pDev->pPhysBaseAdrs5 = 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->intLevel = 0;	    pDev->intVector = 0;	    	    	    pDev->pRegBase =0;	    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->intLevel = 0;	    pDev->intVector = 0;	    pDev->pRegBase = 0;	    break;	    }	case WINDML_AUDIO_DEVICE :            {            /* not implemented yet */	    break;	    }	default:	    {	    break;	    }	}    return (pDev);    }/********************************************************************************* sysWindMLDevCreate - Performs initialization of the mouse and keyboard at * VxWorks startup.** This routine is a hook used to call the mouse and keyboard device create * functions.  If INCLUDE_WINDML_PS2_KEYBOARD is defined the keyboard is * initialized.  If INCLUDE_WINDML_PS2_POINTER is defined the mouse is * initialized.  WINDML_KEYBOARD_DEV_NAME and WINDML_POINTER_DEV_NAME must be * defined.  They are defined as /keyboard/0 and /pointer/0 by default.** For this function to be called INCLUDE_WINDML_BSP_INPUT_DEVICES must be * defined in config.h.** RETURNS: OK or ERROR*/STATUS sysWindMLDevCreate(){#ifdef INCLUDE_WINDML_PS2_KEYBOARD    /* Initialize the keyboard. */    at91cKbdDevCreate (WINDML_KEYBOARD_DEV_NAME);#ifdef  INCLUDE_WINDML_PS2_POINTER    /* Initialize the mouse. */ printf("syswindmldevcreate\n");    at91cPs2DevCreate (WINDML_POINTER_DEV_NAME);#endif /* INCLUDE_WINDML_PS2_POINTER */#endif /* INCLUDE_WINDML_PS2_KEYBOARD */        return (OK);}/******************************************************************************** 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 */    )    {return OK;	/*    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)	{	    {	    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    )    {    return(OK);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线播放一区| 精品一区二区在线播放| 精品国产99国产精品| 99久久综合色| 国内精品自线一区二区三区视频| 亚洲另类一区二区| 久久久久久99久久久精品网站| 欧洲另类一二三四区| 国产成人无遮挡在线视频| 午夜精品视频在线观看| 亚洲欧美一区二区在线观看| 久久久一区二区| 91精品国产综合久久国产大片| 99精品偷自拍| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 91蜜桃在线观看| 久久精品国产秦先生| 亚洲午夜久久久| 国产精品久久久久一区二区三区 | 91福利国产成人精品照片| 成人影视亚洲图片在线| 久久成人免费网站| 亚欧色一区w666天堂| 亚洲精品你懂的| 国产精品二区一区二区aⅴ污介绍| 欧美一区二区精品久久911| 欧美三级日本三级少妇99| 91尤物视频在线观看| 成人av资源站| 99久精品国产| 99久久国产综合精品色伊| 波多野结衣亚洲| 成人高清av在线| 成人av午夜电影| 成人性生交大片免费看视频在线 | 91偷拍与自偷拍精品| 成人av免费在线| 成人精品一区二区三区四区 | 亚洲欧美综合色| 日韩毛片高清在线播放| 国产精品成人一区二区艾草 | 欧美日韩一二三区| 欧美日韩视频不卡| 欧美日韩精品一区二区| 欧美性高清videossexo| 欧美网站一区二区| 7777精品伊人久久久大香线蕉经典版下载| 色激情天天射综合网| 欧美色偷偷大香| 欧美日韩国产高清一区二区三区| 欧美精品三级日韩久久| 欧美一区国产二区| 精品成人在线观看| 国产日韩精品一区二区三区在线| 欧美国产日产图区| 中文字幕一区二| 亚洲一区在线看| 日本中文字幕一区二区视频 | 日韩中文字幕一区二区三区| 日韩和欧美的一区| 国产伦精品一区二区三区免费迷| 国产精品一二三在| 99re在线精品| 6080午夜不卡| 国产日韩欧美精品综合| 一区二区三区美女视频| 亚洲超丰满肉感bbw| 蜜臀国产一区二区三区在线播放| 国产电影一区二区三区| 一本久久a久久免费精品不卡| 欧美日韩高清一区二区不卡| 日韩欧美国产wwwww| 国产精品天干天干在观线| 亚洲色欲色欲www在线观看| 一区二区三区高清在线| 午夜婷婷国产麻豆精品| 日本不卡一区二区三区| 天堂成人免费av电影一区| 日本欧美韩国一区三区| 久久精品二区亚洲w码| 国产美女主播视频一区| 成人动漫一区二区| 色婷婷国产精品综合在线观看| 欧美私模裸体表演在线观看| 这里只有精品视频在线观看| 日韩三级.com| 中文字幕av一区二区三区高| 亚洲精品国产a| 同产精品九九九| 国产一区二区三区观看| 99re这里都是精品| 日韩一区二区中文字幕| 国产欧美精品在线观看| 国产精品亲子伦对白| 毛片一区二区三区| 成人三级伦理片| 欧美日韩中文字幕一区| 精品国产污污免费网站入口| 中文字幕一区二区不卡| 日本aⅴ免费视频一区二区三区| 激情亚洲综合在线| 欧美日韩国产综合视频在线观看| 日韩视频免费观看高清在线视频| 国产婷婷色一区二区三区在线| hitomi一区二区三区精品| 懂色一区二区三区免费观看| 国产在线播放一区三区四| 99久久精品国产导航| 91精品国产综合久久久久| 国产精品无圣光一区二区| 亚洲国产乱码最新视频 | 91精品国产综合久久福利| 自拍偷拍国产亚洲| 日日摸夜夜添夜夜添亚洲女人| 国产成人精品一区二| 69精品人人人人| 亚洲精品网站在线观看| 国产精品小仙女| 欧美日韩国产一区| 欧美高清在线视频| 国产jizzjizz一区二区| 56国语精品自产拍在线观看| 亚洲欧美怡红院| 国产成人av一区二区三区在线 | 2017欧美狠狠色| 亚洲成人在线网站| 日本精品视频一区二区三区| 久久精品在这里| 另类人妖一区二区av| 欧美日韩中文另类| 国产精品伦一区二区三级视频| 免费成人在线视频观看| 欧美日韩一区二区三区在线看| 国产精品美女久久久久久久久| 久久激五月天综合精品| 欧美精品一卡两卡| 一区二区三区在线免费观看| 成人免费视频播放| 久久久亚洲精品一区二区三区 | 久久爱另类一区二区小说| 欧美三级在线视频| 1区2区3区欧美| 成人黄色软件下载| 欧美激情一区二区三区全黄 | 欧美变态凌虐bdsm| 蜜臀av国产精品久久久久| 欧美裸体bbwbbwbbw| 亚洲影视在线观看| 91同城在线观看| 中文字幕亚洲视频| caoporn国产一区二区| 欧美成人精品福利| 国产一区二区网址| 久久夜色精品国产噜噜av| 久久精品噜噜噜成人av农村| 717成人午夜免费福利电影| 亚洲综合激情另类小说区| 91麻豆文化传媒在线观看| 亚洲欧美激情小说另类| 91同城在线观看| 亚洲一区二区精品3399| 欧亚洲嫩模精品一区三区| 亚洲精品乱码久久久久久久久| 日韩精品专区在线| 精品一区二区三区免费视频| 久久免费国产精品| 国产成人在线观看| 26uuu国产在线精品一区二区| 激情成人综合网| 中日韩免费视频中文字幕| 国产一二精品视频| 久久久久免费观看| 成人av在线播放网址| 国产欧美日本一区视频| 欧美日韩在线精品一区二区三区激情| 亚洲一区在线观看网站| 欧美一区二区三区四区高清| 蓝色福利精品导航| 久久精品亚洲一区二区三区浴池| 色综合久久久久综合体| 亚洲午夜在线电影| 日韩一级免费一区| 国产宾馆实践打屁股91| 18成人在线观看| 色婷婷亚洲婷婷| 国产精品综合二区| 亚洲女人****多毛耸耸8| 欧美日韩mp4| 国产成人午夜片在线观看高清观看| 精品国产乱码久久| 在线一区二区观看| 奇米影视7777精品一区二区| 国产日产欧产精品推荐色| 91久久精品一区二区三| 日本大胆欧美人术艺术动态| 国产精品免费视频网站| 欧美亚洲国产一区在线观看网站| 日本午夜精品一区二区三区电影| 26uuu精品一区二区| 在线视频国产一区|