linux/drivers/video/fbdev/via/share.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.

 */

#ifndef __SHARE_H__
#define __SHARE_H__

#include "via_modesetting.h"

/* Define Bit Field */
#define BIT0
#define BIT1
#define BIT2
#define BIT3
#define BIT4
#define BIT5
#define BIT6
#define BIT7

/* Video Memory Size */
#define VIDEO_MEMORY_SIZE_16M

/*
 * Lengths of the VPIT structure arrays.
 */
#define StdCR
#define StdSR
#define StdGR
#define StdAR

#define PatchCR

/* Display path */
#define IGA1
#define IGA2

/* Define Color Depth  */
#define MODE_8BPP
#define MODE_16BPP
#define MODE_32BPP

#define GR20
#define GR21
#define GR22

/* Sequencer Registers */
#define SR01
#define SR10
#define SR12
#define SR15
#define SR16
#define SR17
#define SR18
#define SR1B
#define SR1A
#define SR1C
#define SR1D
#define SR1E
#define SR1F
#define SR20
#define SR21
#define SR22
#define SR2A
#define SR2D
#define SR2E

#define SR30
#define SR39
#define SR3D
#define SR3E
#define SR3F
#define SR40
#define SR43
#define SR44
#define SR45
#define SR46
#define SR47
#define SR48
#define SR49
#define SR4A
#define SR4B
#define SR4C
#define SR52
#define SR57
#define SR58
#define SR59
#define SR5D
#define SR5E
#define SR65

/* CRT Controller Registers */
#define CR00
#define CR01
#define CR02
#define CR03
#define CR04
#define CR05
#define CR06
#define CR07
#define CR08
#define CR09
#define CR0A
#define CR0B
#define CR0C
#define CR0D
#define CR0E
#define CR0F
#define CR10
#define CR11
#define CR12
#define CR13
#define CR14
#define CR15
#define CR16
#define CR17
#define CR18

/* Extend CRT Controller Registers */
#define CR30
#define CR31
#define CR32
#define CR33
#define CR34
#define CR35
#define CR36
#define CR37
#define CR38
#define CR39
#define CR3A
#define CR3B
#define CR3C
#define CR3D
#define CR3E
#define CR3F
#define CR40
#define CR41
#define CR42
#define CR43
#define CR44
#define CR45
#define CR46
#define CR47
#define CR48
#define CR49
#define CR4A
#define CR4B
#define CR4C
#define CR4D
#define CR4E
#define CR4F
#define CR50
#define CR51
#define CR52
#define CR53
#define CR54
#define CR55
#define CR56
#define CR57
#define CR58
#define CR59
#define CR5A
#define CR5B
#define CR5C
#define CR5D
#define CR5E
#define CR5F
#define CR60
#define CR61
#define CR62
#define CR63
#define CR64
#define CR65
#define CR66
#define CR67
#define CR68
#define CR69
#define CR6A
#define CR6B
#define CR6C
#define CR6D
#define CR6E
#define CR6F
#define CR70
#define CR71
#define CR72
#define CR73
#define CR74
#define CR75
#define CR76
#define CR77
#define CR78
#define CR79
#define CR7A
#define CR7B
#define CR7C
#define CR7D
#define CR7E
#define CR7F
#define CR80
#define CR81
#define CR82
#define CR83
#define CR84
#define CR85
#define CR86
#define CR87
#define CR88
#define CR89
#define CR8A
#define CR8B
#define CR8C
#define CR8D
#define CR8E
#define CR8F
#define CR90
#define CR91
#define CR92
#define CR93
#define CR94
#define CR95
#define CR96
#define CR97
#define CR98
#define CR99
#define CR9A
#define CR9B
#define CR9C
#define CR9D
#define CR9E
#define CR9F
#define CRA0
#define CRA1
#define CRA2
#define CRA3
#define CRD2
#define CRD3
#define CRD4

/* LUT Table*/
#define LUT_DATA
#define LUT_INDEX_READ
#define LUT_INDEX_WRITE
#define DACMASK

/* Definition Device */
#define DEVICE_CRT
#define DEVICE_DVI
#define DEVICE_LCD

/* Device output interface */
#define INTERFACE_NONE
#define INTERFACE_ANALOG_RGB
#define INTERFACE_DVP0
#define INTERFACE_DVP1
#define INTERFACE_DFP_HIGH
#define INTERFACE_DFP_LOW
#define INTERFACE_DFP
#define INTERFACE_LVDS0
#define INTERFACE_LVDS1
#define INTERFACE_LVDS0LVDS1
#define INTERFACE_TMDS

#define HW_LAYOUT_LCD_ONLY
#define HW_LAYOUT_DVI_ONLY
#define HW_LAYOUT_LCD_DVI
#define HW_LAYOUT_LCD1_LCD2
#define HW_LAYOUT_LCD_EXTERNAL_LCD2

/* Definition CRTC Timing Index */
#define H_TOTAL_INDEX
#define H_ADDR_INDEX
#define H_BLANK_START_INDEX
#define H_BLANK_END_INDEX
#define H_SYNC_START_INDEX
#define H_SYNC_END_INDEX
#define V_TOTAL_INDEX
#define V_ADDR_INDEX
#define V_BLANK_START_INDEX
#define V_BLANK_END_INDEX
#define V_SYNC_START_INDEX
#define V_SYNC_END_INDEX
#define H_TOTAL_SHADOW_INDEX
#define H_BLANK_END_SHADOW_INDEX
#define V_TOTAL_SHADOW_INDEX
#define V_ADDR_SHADOW_INDEX
#define V_BLANK_SATRT_SHADOW_INDEX
#define V_BLANK_END_SHADOW_INDEX
#define V_SYNC_SATRT_SHADOW_INDEX
#define V_SYNC_END_SHADOW_INDEX

/* LCD display method
*/
#define LCD_EXPANDSION
#define LCD_CENTERING

/* LCD mode
*/
#define LCD_OPENLDI
#define LCD_SPWG

struct crt_mode_table {};

struct io_reg {};

#endif /* __SHARE_H__ */