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

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

?? syswindml.c

?? Vxworks下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一区二区三区免费野_久草精品视频
日韩欧美的一区二区| 青青青伊人色综合久久| 国产美女久久久久| 99v久久综合狠狠综合久久| 91精品国产综合久久久久久漫画| 国产亚洲午夜高清国产拍精品| 性感美女极品91精品| 成人黄色av电影| 日韩免费福利电影在线观看| 亚洲图片自拍偷拍| 99九九99九九九视频精品| 日韩欧美aaaaaa| 午夜a成v人精品| 色噜噜狠狠一区二区三区果冻| 久久先锋影音av| 美女在线一区二区| 欧美一区二区在线观看| 亚洲图片有声小说| 在线看国产一区二区| 中文字幕一区免费在线观看| 国产成人免费在线视频| 亚洲精品一区二区精华| 蜜臀av一区二区在线免费观看 | 宅男在线国产精品| 亚洲日本乱码在线观看| 99久久精品免费看| 中文字幕精品在线不卡| 国产高清一区日本| 久久久久久久久99精品| 国产传媒一区在线| 久久九九久久九九| 国产精品一区二区免费不卡| 欧美大尺度电影在线| 免费观看一级特黄欧美大片| 日韩一区二区免费在线电影| 日本少妇一区二区| 日韩欧美自拍偷拍| 精品一区二区三区影院在线午夜 | 91在线观看成人| 亚洲欧美激情在线| 色诱亚洲精品久久久久久| 亚洲激情av在线| 欧美三级视频在线播放| 琪琪久久久久日韩精品| 日韩三级视频中文字幕| 国产精品系列在线观看| 国产精品女同一区二区三区| av电影一区二区| 一区二区成人在线视频| 在线不卡免费欧美| 蜜桃视频一区二区三区| 久久久不卡网国产精品一区| 风间由美一区二区三区在线观看 | 欧美丝袜丝交足nylons| 日本伊人精品一区二区三区观看方式| 51精品久久久久久久蜜臀| 久久er99热精品一区二区| 国产网站一区二区三区| 日韩一区二区三| 国产一区二区不卡在线| 亚洲欧美日韩国产另类专区| 欧美日韩在线播放三区四区| 免费在线观看一区二区三区| 久久精品无码一区二区三区| 在线欧美日韩国产| 麻豆91精品视频| 久久精品一区二区三区不卡牛牛| 色婷婷av一区二区三区软件| 美女视频网站黄色亚洲| 综合激情成人伊人| 日韩免费一区二区| 色一情一乱一乱一91av| 毛片一区二区三区| 亚洲色图制服诱惑| 欧美tk—视频vk| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美性一二三区| 国产美女主播视频一区| 亚洲电影一区二区| 国产喂奶挤奶一区二区三区| 欧美日韩精品欧美日韩精品一综合| 国产一区二区三区四区五区美女| 一个色妞综合视频在线观看| 久久精品亚洲乱码伦伦中文| 欧美嫩在线观看| 91美女在线看| 国产xxx精品视频大全| 免费高清不卡av| 亚洲成人资源在线| 亚洲视频一区在线观看| 久久夜色精品一区| 91精品国产乱| 在线精品亚洲一区二区不卡| 成人黄色片在线观看| 美女视频一区二区三区| 成人一区二区三区在线观看| 秋霞午夜鲁丝一区二区老狼| 亚洲一区二区在线视频| 国产精品国产三级国产有无不卡| 久久亚洲精品小早川怜子| 51久久夜色精品国产麻豆| 欧美主播一区二区三区| 色综合网色综合| jlzzjlzz亚洲女人18| 国产福利电影一区二区三区| 精品一区二区三区免费毛片爱| 天天色图综合网| 亚洲风情在线资源站| 亚洲一区二区三区在线看| 亚洲免费观看高清| 亚洲免费在线观看| 亚洲免费观看在线视频| 亚洲欧美一区二区三区久本道91| 亚洲欧美综合另类在线卡通| 国产精品嫩草99a| 国产精品欧美久久久久一区二区| 国产欧美日韩视频一区二区| 国产婷婷一区二区| 中文字幕中文字幕一区二区| 国产精品久久综合| 亚洲男人的天堂av| 亚洲一区在线观看视频| 午夜精品aaa| 秋霞国产午夜精品免费视频| 麻豆国产精品一区二区三区| 国内精品伊人久久久久av一坑| 国产一区二区三区在线观看精品| 国产不卡高清在线观看视频| 91精品国产日韩91久久久久久| 69堂精品视频| 欧美r级在线观看| 久久久精品免费观看| 最新不卡av在线| 亚洲一区二区在线播放相泽| 日韩高清在线一区| 激情久久五月天| 国产成人免费高清| 91免费在线看| 在线播放视频一区| 久久久久久免费毛片精品| 国产精品福利影院| 亚洲大型综合色站| 精品中文字幕一区二区| 成人黄色小视频在线观看| 欧美性猛交xxxxxxxx| 久久夜色精品国产噜噜av| 亚洲欧美在线高清| 日韩国产精品久久久| 国产很黄免费观看久久| 欧美日韩在线播放三区四区| 2021中文字幕一区亚洲| 亚洲精品免费播放| 看电视剧不卡顿的网站| 99re成人精品视频| 欧美sm美女调教| 一区二区三区国产| 国产乱对白刺激视频不卡| 色综合久久中文字幕综合网| 日韩精品在线网站| 亚洲精品视频观看| 国产麻豆视频精品| 欧美精品乱码久久久久久| 国产欧美精品区一区二区三区| 亚洲成人av电影| 成人99免费视频| 欧美videossexotv100| 一区二区久久久| 国产成人亚洲综合a∨猫咪| 欧美男人的天堂一二区| 中文字幕一区二区三区在线播放| 免费高清在线视频一区·| 在线看不卡av| 国产精品网曝门| 紧缚奴在线一区二区三区| 欧美精品亚洲二区| 亚洲人精品午夜| 国产成人av电影在线播放| 欧美一二三四在线| 亚洲中国最大av网站| 99久久伊人久久99| 久久综合久久99| 男女男精品视频网| 69堂成人精品免费视频| 亚洲色图一区二区| 成人永久aaa| 久久久久久久电影| 国产在线播放一区三区四| 日韩一二三区不卡| 日韩**一区毛片| 欧美日韩mp4| 日韩av二区在线播放| 欧美高清视频一二三区 | 成人aa视频在线观看| 久久综合丝袜日本网| 蜜桃视频一区二区三区| 日韩视频一区二区在线观看| 日本亚洲三级在线| 日韩欧美电影一区| 国内成人精品2018免费看| 亚洲精品在线观看视频|