⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 const.h

📁 WinCE 3.0 BSP, 包含Inter SA1110, Intel_815E, Advantech_PCM9574 等
💻 H
字号:
//
// Permedia3 Sample Display Driver
// const.h
//
// Copyright (c) 2000 Microsoft Corporation. All rights reserved.
//
// This file contains all of the global constants used in the driver. Also see
// register.h for constants pertaining to the region 0, memory mapped
// registers, and the bitmasks associated with each.

#pragma once

// The initial size of our private system memory heap: 384 KBytes.

#define SYSTEM_MEM_HEAP_SIZE 393216

// Device name, given to GDI. Must be less than CCHDEVICENAME characters long.
// See wingdi.h for CCHDEVICENAME macro definition.

#define DEVICE_NAME L"3dLabs Permedia3"

// PCI Vendor and Device ID. Used to locate Permedia3 on PCI bus.

#define VENDOR_ID 0x3D3D
#define DEVICE_ID 0x000A

// The expansion ROM, where the initialization table is located, is 64 KBytes
// in size.

#define ROM_SIZE 65536

// The offset of the initialization table in ROM is stored at this offset from
// the begining of ROM. (Notice the double indirection.)

#define ROM_TABLE_OFFSET_OFFSET 0x1c

// The offset of the major revision number byte in ROM.

#define ROM_MAJOR_VER_OFFSET 0x7

// The offset of the minor revision number byte in ROM.

#define ROM_MINOR_VER_OFFSET 0x8

// Memory Region 0, where the control registers are mapped, is 128 KBytes in
// size.

#define REGION0_SIZE 131072

// Memory regions 1 and 2, the video memory apertures, are 64 MBytes each in
// size. See the comment on line 256 of memory.c before changing this, as
// other changes might be necessary.

#define APERTURE_SIZE 67108864

// The number of entrys in the has table where allocated video memory blocks
// are stored. Each entry is potentially a linked list of blocks that share
// that particular hash.

#define VID_HASH_ENTRIES 64

// The number of bins in the free bin array for video memory allocation. Can
// only be changed in conjunction with changing l_VidBinsSizes in memory.c.

#define VID_BIN_COUNT 8

// This is the default frequency of the oscillator on the Permedia3 board.
// (The so-called refrence clock that drives the PLLs and hence KCLk.) In
// units of 100 Hrtz.

#define DEFAULT_REFCLK_FREQUENCY 143182

// The default frequency for the setup clock is 70 MHrtz. Or 700,000
// 100 Hrtzs, the prefered unit for clock computations.

#define DEFAULT_SCLK_FREQUENCY 700000

// The default frequency for the memory clock is 80 MHrtz. Or 800,000
// 100 Hrtzs, the prefered unit for clock computations.

#define DEFAULT_MCLK_FREQUENCY 800000

// The default frequency for the core clock is 80 MHrtz. We actually use
// 160 MHrtz, double the desired clock, because the Permedia3 has a clock
// divider which will cut this in half (back to 80.) Also, it is expressed in
// 100 Hrtz units.

#define DEFAULT_KCLK_FREQUENCY 1600000

// The lookup table that is used for gamma correction has 256 entries in
// three arrays, red, green, and blue. (This lookup table is also used as the
// color palette for 8 bit color-indexed display modes.)

#define NUM_LUT_ENTRIES 256

// This is the thread priority that we set our IST to. This thread services
// Permedia3 interrupts.

#define IST_PRIORITY 20

// This is the size of the DMA command buffers, in bytes. The Permedia3 can 
// only handle DMA requests of 64 KBytes, maximum.

#define SIZEOF_DMA_BUFFER 65536

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -