drivers/video/fbdev/i740_reg.h

Source file repositories/reference/linux-study-clean/drivers/video/fbdev/i740_reg.h

File Facts

System
Linux kernel
Corpus path
drivers/video/fbdev/i740_reg.h
Extension
.h
Size
9084 bytes
Lines
310
Domain
Driver Families
Bucket
drivers/video
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sub license, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice (including the
next paragraph) shall be included in all copies or substantial portions
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

**************************************************************************/

/*
 * Authors:
 *   Kevin E. Martin <kevin@precisioninsight.com>
 */

/* I/O register offsets */
#define SRX VGA_SEQ_I
#define GRX VGA_GFX_I
#define ARX VGA_ATT_IW
#define XRX 0x3D6
#define MRX 0x3D2

/* VGA Color Palette Registers */
#define DACMASK		0x3C6
#define DACSTATE	0x3C7
#define DACRX		0x3C7
#define DACWX		0x3C8
#define DACDATA		0x3C9

/* CRT Controller Registers (CRX) */
#define START_ADDR_HI		0x0C
#define START_ADDR_LO		0x0D
#define VERT_SYNC_END		0x11
#define EXT_VERT_TOTAL		0x30
#define EXT_VERT_DISPLAY	0x31
#define EXT_VERT_SYNC_START	0x32
#define EXT_VERT_BLANK_START	0x33
#define EXT_HORIZ_TOTAL		0x35
#define EXT_HORIZ_BLANK		0x39
#define EXT_START_ADDR		0x40
#define EXT_START_ADDR_ENABLE	0x80
#define EXT_OFFSET		0x41
#define EXT_START_ADDR_HI	0x42
#define INTERLACE_CNTL		0x70
#define INTERLACE_ENABLE	0x80
#define INTERLACE_DISABLE	0x00

/* Miscellaneous Output Register */
#define MSR_R		0x3CC
#define MSR_W		0x3C2
#define IO_ADDR_SELECT	0x01

#define MDA_BASE	0x3B0
#define CGA_BASE	0x3D0

/* System Configuration Extension Registers (XRX) */
#define IO_CTNL		0x09
#define EXTENDED_ATTR_CNTL	0x02
#define EXTENDED_CRTC_CNTL	0x01

#define ADDRESS_MAPPING	0x0A
#define PACKED_MODE_ENABLE	0x04
#define LINEAR_MODE_ENABLE	0x02
#define PAGE_MAPPING_ENABLE	0x01

#define BITBLT_CNTL	0x20
#define COLEXP_MODE		0x30
#define COLEXP_8BPP		0x00
#define COLEXP_16BPP		0x10
#define COLEXP_24BPP		0x20
#define COLEXP_RESERVED		0x30
#define CHIP_RESET		0x02
#define BITBLT_STATUS		0x01

#define DISPLAY_CNTL	0x40

Annotation

Implementation Notes