include/video/pm3fb.h

Source file repositories/reference/linux-study-clean/include/video/pm3fb.h

File Facts

System
Linux kernel
Corpus path
include/video/pm3fb.h
Extension
.h
Size
46399 bytes
Lines
1062
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef PM3FB_H
#define PM3FB_H

/**********************************************
*  GLINT Permedia3 Control Status registers   *
***********************************************/
/* Control Status Registers */
#define PM3ResetStatus						0x0000
#define PM3IntEnable						0x0008
#define PM3IntFlags						0x0010
#define PM3InFIFOSpace						0x0018
#define PM3OutFIFOWords						0x0020
#define PM3DMAAddress						0x0028
#define PM3DMACount						0x0030
#define PM3ErrorFlags						0x0038
#define PM3VClkCtl						0x0040
#define PM3TestRegister						0x0048
#define PM3Aperture0						0x0050
#define PM3Aperture1						0x0058
#define PM3DMAControl						0x0060
#define PM3FIFODis						0x0068
#define PM3ChipConfig						0x0070
#define PM3AGPControl						0x0078

#define PM3GPOutDMAAddress					0x0080
#define PM3PCIFeedbackCount					0x0088
#define PM3PCIAbortStatus					0x0090
#define PM3PCIAbortAddress					0x0098

#define PM3PCIPLLStatus						0x00f0

#define PM3HostTextureAddress					0x0100
#define PM3TextureDownloadControl				0x0108
#define PM3TextureOperation					0x0110
#define PM3LogicalTexturePage					0x0118
#define PM3TexDMAAddress					0x0120
#define PM3TexFIFOSpace						0x0128

/**********************************************
*  GLINT Permedia3 Region 0 Bypass Controls   *
***********************************************/
#define PM3ByAperture1Mode					0x0300
	#define PM3ByApertureMode_BYTESWAP_ABCD			(0 << 0)
	#define PM3ByApertureMode_BYTESWAP_BADC			(1 << 0)
	#define PM3ByApertureMode_BYTESWAP_CDAB			(2 << 0)
	#define PM3ByApertureMode_BYTESWAP_DCBA			(3 << 0)
	#define PM3ByApertureMode_PATCH_ENABLE			(1 << 2)
	#define PM3ByApertureMode_FORMAT_RAW			(0 << 3)
	#define PM3ByApertureMode_FORMAT_YUYV			(1 << 3)
	#define PM3ByApertureMode_FORMAT_UYVY			(2 << 3)
	#define PM3ByApertureMode_PIXELSIZE_8BIT		(0 << 5)
	#define PM3ByApertureMode_PIXELSIZE_16BIT		(1 << 5)
	#define PM3ByApertureMode_PIXELSIZE_32BIT		(2 << 5)
		#define PM3ByApertureMode_PIXELSIZE_MASK	(3 << 5)
	#define PM3ByApertureMode_EFFECTIVE_STRIDE_1024		(0 << 7)
	#define PM3ByApertureMode_EFFECTIVE_STRIDE_2048		(1 << 7)
	#define PM3ByApertureMode_EFFECTIVE_STRIDE_4096		(2 << 7)
	#define PM3ByApertureMode_EFFECTIVE_STRIDE_8192		(3 << 7)
	#define PM3ByApertureMode_PATCH_OFFSET_X(off)	(((off) & 0x7f) << 9)
	#define PM3ByApertureMode_PATCH_OFFSET_Y(off)	(((off) & 0x7f) << 16)
	#define PM3ByApertureMode_FRAMEBUFFER			(0 << 21)
	#define PM3ByApertureMode_LOCALBUFFER			(1 << 21)
	#define PM3ByApertureMode_DOUBLE_WRITE_OFF		(0 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_1MB		(1 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_2MB		(2 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_4MB		(3 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_8MB		(4 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_16MB		(5 << 22)
	#define PM3ByApertureMode_DOUBLE_WRITE_32MB		(6 << 22)

#define PM3ByAperture2Mode					0x0328

/**********************************************
*  GLINT Permedia3 Memory Control (0x1000)    *
***********************************************/
#define PM3MemCounter						0x1000
#define PM3MemBypassWriteMask					0x1008
#define PM3MemScratch						0x1010
#define PM3LocalMemCaps						0x1018
	#define PM3LocalMemCaps_NoWriteMask			(1 << 28)
#define PM3LocalMemTimings					0x1020
#define PM3LocalMemControl					0x1028
#define PM3LocalMemRefresh					0x1030
#define PM3LocalMemPowerDown					0x1038
#define PM3RemoteMemControl					0x1100

/**********************************************
*  GLINT Permedia3 Video Control (0x3000)     *
***********************************************/

Annotation

Implementation Notes