📄 ugldepend.h
字号:
/* uglDepend.h - UGL graphics driver configuration file *//* Copyright 2000 - 2003 Wind River Systems, Inc. All Rights Reserved *//*modification history--------------------01n,23jun03,jlb Correct header file inclusion spelling01m,18jun03,jlb Added USB keyboard and mouse01l,14nov01,jlb Add Epson 13506 and 1380601k,05nov01,jlb Add Intel 815 support01j,24apr01,jlb Added inclusion of costom device header files01i,26feb01,gav Fix for SPR 64439. Flat screen definition for EmBox.01h,20nov00,jlb Do not include driver header files when include by driver01g,10nov00,jlb Removed event queue size (SPR 35346)01f,15sep00,rfm Make sure UGL_MEM_POOL_SIZE is defined in all cases01e,14sep00,jlb Add frame buffer depth of 101d,08sep00,msr Do not include input header file when driver is built01c,31aug00,gav Added PPC M821 driver.01b,17aug00,jlb Added SH-4 Q2SD01a,28jan00,jlb written*//*DESCRIPTIONThis header file resolves dependencies among the various componentsselected when building an UGL system. It also provides default valuesfor configuration items when none have previously been defined from theheader file that includes this file (uglInit.h).This file should not be modified to configure an existing UGL driver.All configuration should be accomplished using the uglInit.h file orby using the project facility. When adding a new UGL driver, this file should be modified to add anentry for the new driver. When adding a new device to this file, addthe device following the current list of devices of the particulartype (i.e., graphics, input, etc.). */#ifndef __INCuglDependh#define __INCuglDependh#if __cplusplusextern "C" {#endif#include "ugl/config/uglConfig.h"#ifdef CONFIG_TOOL#if (UGL_FB_DEPTH==1)#define INCLUDE_UGL_MONO#endif /* UGL_FB_DEPTH==1 */#if (UGL_FB_DEPTH==4)#define INCLUDE_UGL_INDEXED4#endif /* UGL_FB_DEPTH==4 */#if (UGL_FB_DEPTH==8)#define INCLUDE_UGL_INDEXED8#endif /* UGL_FB_DEPTH==8 */#if (UGL_FB_DEPTH==16)#if defined(INCLUDE_UGL_ALPHA)#define INCLUDE_UGL_ARGB4444#else#define INCLUDE_UGL_RGB565#endif /* INCLUDE_UGL_ALPHA */#endif /* UGL_FB_DEPTH==16 */#endif /* CONFIG_DRIVER *//* Resolve dependencies between various extensions and * scalable features. *//* If we are doing video, we need overlay and YUV422 support */#if defined(INCLUDE_UGL_VIDEO)#define INCLUDE_UGL_EXT#ifndef INCLUDE_UGL_OVERLAY#define INCLUDE_UGL_OVERLAY#endif /* INCLUDE_UGL_OVERLAY */#ifndef INCLUDE_UGL_YUV422_OVERLAY#define INCLUDE_UGL_YUV422_OVERLAY#endif /* INCLUDE_UGL_YUV422_OVERLAY */#endif /* INCLUDE_UGL_VIDEO *//* If we are doing alpha, we need overlay support */#if defined(INCLUDE_UGL_ALPHA)#ifndef INCLUDE_UGL_OVERLAY#define INCLUDE_UGL_OVERLAY#endif /* INCLUDE_UGL_OVERLAY */#endif /* INCLUDE_UGL_ALPHA */#if defined(INCLUDE_UGL_JPEG)#ifndef INCLUDE_UGL_EXT#define INCLUDE_UGL_EXT#endif /* INCLUDE_UGL_EXT */#endif /* INCLUDE_UGL_JPEG *//* Define the type of output device */#if !defined (UGL_MONITOR_TYPE)#if defined (INCLUDE_UGL_KYOCERA_KCS057QV1AA) || \ defined (INCLUDE_UGL_SHARP_LM9V385) || \ defined (INCLUDE_UGL_EMVUE) || \ defined (INCLUDE_UGL_SHARP_LQ039Q2DS01) || \ defined (INCLUDE_UGL_HITACHI_STN)#define UGL_MONITOR_TYPE UGL_MODE_FLAT_PANEL#else#define UGL_MONITOR_TYPE UGL_MODE_CRT#endif /* output device type */#endif /* !defined (UGL_MONITOR_TYPE) *//* * Include graphics driver specific header file */#ifndef BUILD_DRIVER/* Chips & Technology 655xx, 690xx */#ifdef INCLUDE_CHIPS_GRAPHICS#include <ugl/driver/graphics/chips/udchips.h>#endif /* INCLUDE_CHIPS_GRAPHICS *//* Epson 13506 */#ifdef INCLUDE_EPSON_13506#include <ugl/driver/graphics/epson/s13506cfg.h>#endif /* INCLUDE_EPSON_13506 *//* Epson 13806 */#ifdef INCLUDE_EPSON_13806#include <ugl/driver/graphics/epson/s13806cfg.h>#endif /* INCLUDE_EPSON_13806 *//* IGST 5050 */#ifdef INCLUDE_IGS_GRAPHICS#include <ugl/driver/graphics/igs/udigs.h>#endif /* INCLUDE_IGS_GRAPHICS *//* Intel 81x */#ifdef INCLUDE_INTEL_81x#include <ugl/driver/graphics/intel/i81xcfg.h>#endif /* INCLUDE_INTEL_81x *//* MediaGX */#ifdef INCLUDE_MEDIAGX_GRAPHICS#include <ugl/driver/graphics/mediagx/udmgxdrv.h>#endif /* INCLUDE_MEDIAGX_GRAPHICS *//* SH Q2SD */#ifdef INCLUDE_Q2SD_GRAPHICS#include <ugl/driver/graphics/q2sd/udq2sd.h>#endif /* INCLUDE_Q2SD_GRAPHICS *//* SH 7727 LCD */#ifdef INCLUDE_SH7727_GRAPHICS#include <ugl/driver/graphics/sh7727/udsh7727.h>#endif /* INCLUDE_SH7727_GRAPHICS *//* Standard VGA */#ifdef INCLUDE_VGA_GRAPHICS#include <ugl/driver/graphics/vga/udvga.h>#endif /* INCLUDE_VGA_GRAPHICS *//* Motorola MBX 860/821 */#ifdef INCLUDE_M821_GRAPHICS#include <ugl/driver/graphics/motorola/udm821.h>#endif /* INCLUDE_M821_GRAPHICS *//* Strong Arm-SA1100/SA1110 */#ifdef INCLUDE_SA11XX_GRAPHICS#include <ugl/driver/graphics/arm/udsa.h>#endif /* INCLUDE_SA11XX_GRAPHICS *//* UGL Simulator */#ifdef INCLUDE_SIMULATOR_GRAPHICS#if (CPU == SIMNT)/* NT Simulator */#include <ugl/driver/graphics/simnt/udsimnt.h>#else/* Solaris Simulator */#include <ugl/driver/graphics/simsolaris/udx11.h>#endif /* CPU == SIMNT */#endif /* INCLUDE_SIMULATOR_GRAPHICS *//* PC-BIOS */#ifdef INCLUDE_BIOS_GRAPHICS#include <ugl/driver/graphics/pcbios/udpcbios.h>#endif /* INCLUDE_BIOS_GRAPHICS *//* General purpose include for graphics */#ifdef WINDML_GRAPHICS_HEADER#include WINDML_GRAPHICS_HEADER#endif /* WINDML_GRAPHICS_HEADER */ /* * Include input driver specific header file *//* Standard PC style keyboard */#ifdef INCLUDE_PC_AT_KEYBOARD#include <ugl/driver/keyboard/uglpckbd.h>#endif /* INCLUDE_PC_AT_KEYBOARD *//* USB keyboard */#ifdef INCLUDE_USB_KEYBOARD#include <ugl/driver/keyboard/uglusbkeybd.h>#endif /* INCLUDE_USB_KEYBOARD *//* General purpose include for keyboard */#ifdef WINDML_KEYBOARD_HEADER#include WINDML_KEYBOARD_HEADER#endif /* WINDML_KEYBOARD_HEADER */ /** Pointer definitions **//* PS2 style pointer */#ifdef INCLUDE_PS2_POINTER#include <ugl/driver/pointer/uglps2.h>#endif /* INCLUDE_PS2_POINTER */ /* Microsoft serial style pointer */#ifdef INCLUDE_MS_POINTER#include <ugl/driver/pointer/uglms.h>#endif /* INCLUDE_MS_POINTER *//* USB Pointer */#ifdef INCLUDE_USB_POINTER#include <ugl/driver/pointer/uglusbptr.h>#endif /* INCLUDE_USB_POINTER *//* Assabet touch screen */#ifdef INCLUDE_ASSABET_POINTER#include <ugl/driver/pointer/uglasbt.h>#endif /* INCLUDE_ASSABET_POINTER *//* General purpose include for pointer */#ifdef WINDML_POINTER_HEADER#include WINDML_POINTER_HEADER#endif /* WINDML_POINTER_HEADER */ /* * Include font driver specific header file *//* UGL Bitmapped Fonts (BMF) */#ifdef INCLUDE_BMF_FONTS#include <ugl/driver/font/udbmffnt.h>#endif /* INCLUDE_BMF_FONTS *//* AGFA */#ifdef INCLUDE_AGFA_FONTS#include <ugl/driver/font/udAgfa.h>#endif /* INCLUDE_AGFA_FONTS *//****** Add new font engine here ********//* * Include audio driver specific header file *//* IGS5050 audio */#ifdef INCLUDE_IGS_AUDIO#include <ugl/driver/audio/igsAudio.h>#endif /* INCLUDE_IGS_AUDIO *//****** Add new audio devices here ***********//* If input device present, then indicate that input is present */#if (defined(INCLUDE_POINTER_NONE) && defined(INCLUDE_KEYBOARD_NONE))#undef INCLUDE_UGL_INPUT#else#define INCLUDE_UGL_INPUT#endif /* INCLUDE_UGL_INPUT */#endif /* BUILD_DRIVER *//* If using a custom driver, then include the custom definitions */#if defined(INCLUDE_CUSTOM_GRAPHICS) || \ defined(INCLUDE_CUSTOM_KEYBOARD) || \ defined(INCLUDE_CUSTOM_POINTER) || \ defined(INCLUDE_CUSTOM_AUDIO) #ifndef CONFIG_TOOL/* When not using configuration tool, get custom configuration from * usrCustom.h. */#include UGL_CUSTOM_DRIVER_DEFS#endif /* CONFIG_TOOL */#endif /* INCLUDE_CUSTOM_ Drivers *//* * * Set some default values for the system * *//* Define default values for graphics device creation parameters */#ifndef UGL_GRAPHICS_INSTANCE#define UGL_GRAPHICS_INSTANCE 0#endif /* UGL_GRAPHICS_INSTANCE */#ifndef UGL_GRAPHICS_IRQ#define UGL_GRAPHICS_IRQ 0#endif /* UGL_GRAPHICS_IRQ */#ifndef UGL_GRAPHICS_VECTOR#define UGL_GRAPHICS_VECTOR 0#endif /* UGL_GRAPHICS_VECTOR *//* Default values for the BMF font engine */#ifndef BMF_FONT_GLYPH_CACHE_MEM_POOL#define BMF_FONT_GLYPH_CACHE_MEM_POOL UGL_DEFAULT_MEM_POOL_ID#endif /* BMF_FONT_GLYPH_CACHE_MEM_POOL */#ifndef BMF_FONT_GLYPH_CACHE_SIZE#define BMF_FONT_GLYPH_CACHE_SIZE UGL_BMF_GLYPH_CACHE_SIZE_MAX #endif /* BMF_FONT_GLYPH_CACHE_SIZE *//* Define default values for audio */#ifndef SOUND_DEV_NAME#define SOUND_DEV_NAME "/sound"#endif/* Define the device's channel to use */#ifndef SOUND_CHANNEL#define SOUND_CHANNEL 0#endif /* Define the instance of the board in system */#ifndef SND_DEVICE_INSTANCE#define SND_DEVICE_INSTANCE 0#endif/* Define h/w access parameters */#ifndef SND_DEVICE_INT_LEVEL#define SND_DEVICE_INT_LEVEL 0 #endif /* SND_DEVICE_INT_LEVEL */#ifndef SND_DEVICE_INT_VECTOR#define SND_DEVICE_INT_VECTOR 0#endif /* SND_DEVICE_INT_VECTOR */#ifndef SND_DEVICE_DMA8#define SND_DEVICE_DMA8 0#endif /* SND_DEVICE_DMA8 */#ifndef SND_DEVICE_DMA16#define SND_DEVICE_DMA16 0#endif /* SND_DEVICE_DMA16 *//* set defaults for the memory manager functions */#ifndef UGL_MEM_POOL_CREATE_RTN#define UGL_MEM_POOL_CREATE_RTN uglOSMemPoolCreate#endif /* UGL_MEM_POOL_CREATE_RTN */#ifndef UGL_MEM_POOL_DESTROY_RTN#define UGL_MEM_POOL_DESTROY_RTN uglOSMemPoolDestroy#endif /* UGL_MEM_POOL_DESTROY_RTN */#ifndef UGL_MEM_ALLOC_RTN#define UGL_MEM_ALLOC_RTN uglOSMemAlloc#endif /* UGL_MEM_ALLOC_RTN */#ifndef UGL_MEM_CALLOC_RTN#define UGL_MEM_CALLOC_RTN uglOSMemCalloc#endif /* UGL_MEM_CALLOC_RTN */#ifndef UGL_MEM_REALLOC_RTN#define UGL_MEM_REALLOC_RTN uglOSMemRealloc#endif /* UGL_MEM_REALLOC_RTN */#ifndef UGL_MEM_FREE_RTN#define UGL_MEM_FREE_RTN uglOSMemFree#endif /* UGL_MEM_FREE_RTN */#ifndef UGL_MEM_POOL_SIZE#define UGL_MEM_POOL_SIZE 0x100000#endif /* UGL_MEM_POOL_SIZE */#if __cplusplus} /* extern "C" */#endif#endif /* __INCuglDependh */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -