/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* drivers/video/geode/display_gx1.h
* -- Geode GX1 display controller
*
* Copyright (C) 2005 Arcom Control Systems Ltd.
*
* Based on AMD's original 2.4 driver:
* Copyright (C) 2004 Advanced Micro Devices, Inc.
*/
#ifndef __DISPLAY_GX1_H__
#define __DISPLAY_GX1_H__
unsigned gx1_gx_base(void );
int gx1_frame_buffer_size(void );
extern const struct geode_dc_ops gx1_dc_ops;
/* GX1 configuration I/O registers */
#define CONFIG_CCR3 0 xc3
# define CONFIG_CCR3_MAPEN 0 x10
#define CONFIG_GCR 0 xb8
/* Memory controller registers */
#define MC_BANK_CFG 0 x08
# define MC_BCFG_DIMM0_SZ_MASK 0 x00000700
# define MC_BCFG_DIMM0_PG_SZ_MASK 0 x00000070
# define MC_BCFG_DIMM0_PG_SZ_NO_DIMM 0 x00000070
#define MC_GBASE_ADD 0 x14
# define MC_GADD_GBADD_MASK 0 x000003ff
/* Display controller registers */
#define DC_PAL_ADDRESS 0 x70
#define DC_PAL_DATA 0 x74
#define DC_UNLOCK 0 x00
# define DC_UNLOCK_CODE 0 x00004758
#define DC_GENERAL_CFG 0 x04
# define DC_GCFG_DFLE 0 x00000001
# define DC_GCFG_CURE 0 x00000002
# define DC_GCFG_VCLK_DIV 0 x00000004
# define DC_GCFG_PLNO 0 x00000004
# define DC_GCFG_PPC 0 x00000008
# define DC_GCFG_CMPE 0 x00000010
# define DC_GCFG_DECE 0 x00000020
# define DC_GCFG_DCLK_MASK 0 x000000C0
# define DC_GCFG_DCLK_DIV_1 0 x00000080
# define DC_GCFG_DFHPSL_MASK 0 x00000F00
# define DC_GCFG_DFHPSL_POS 8
# define DC_GCFG_DFHPEL_MASK 0 x0000F000
# define DC_GCFG_DFHPEL_POS 12
# define DC_GCFG_CIM_MASK 0 x00030000
# define DC_GCFG_CIM_POS 16
# define DC_GCFG_FDTY 0 x00040000
# define DC_GCFG_RTPM 0 x00080000
# define DC_GCFG_DAC_RS_MASK 0 x00700000
# define DC_GCFG_DAC_RS_POS 20
# define DC_GCFG_CKWR 0 x00800000
# define DC_GCFG_LDBL 0 x01000000
# define DC_GCFG_DIAG 0 x02000000
# define DC_GCFG_CH4S 0 x04000000
# define DC_GCFG_SSLC 0 x08000000
# define DC_GCFG_VIDE 0 x10000000
# define DC_GCFG_VRDY 0 x20000000
# define DC_GCFG_DPCK 0 x40000000
# define DC_GCFG_DDCK 0 x80000000
#define DC_TIMING_CFG 0 x08
# define DC_TCFG_FPPE 0 x00000001
# define DC_TCFG_HSYE 0 x00000002
# define DC_TCFG_VSYE 0 x00000004
# define DC_TCFG_BLKE 0 x00000008
# define DC_TCFG_DDCK 0 x00000010
# define DC_TCFG_TGEN 0 x00000020
# define DC_TCFG_VIEN 0 x00000040
# define DC_TCFG_BLNK 0 x00000080
# define DC_TCFG_CHSP 0 x00000100
# define DC_TCFG_CVSP 0 x00000200
# define DC_TCFG_FHSP 0 x00000400
# define DC_TCFG_FVSP 0 x00000800
# define DC_TCFG_FCEN 0 x00001000
# define DC_TCFG_CDCE 0 x00002000
# define DC_TCFG_PLNR 0 x00002000
# define DC_TCFG_INTL 0 x00004000
# define DC_TCFG_PXDB 0 x00008000
# define DC_TCFG_BKRT 0 x00010000
# define DC_TCFG_PSD_MASK 0 x000E0000
# define DC_TCFG_PSD_POS 17
# define DC_TCFG_DDCI 0 x08000000
# define DC_TCFG_SENS 0 x10000000
# define DC_TCFG_DNA 0 x20000000
# define DC_TCFG_VNA 0 x40000000
# define DC_TCFG_VINT 0 x80000000
#define DC_OUTPUT_CFG 0 x0C
# define DC_OCFG_8BPP 0 x00000001
# define DC_OCFG_555 0 x00000002
# define DC_OCFG_PCKE 0 x00000004
# define DC_OCFG_FRME 0 x00000008
# define DC_OCFG_DITE 0 x00000010
# define DC_OCFG_2PXE 0 x00000020
# define DC_OCFG_2XCK 0 x00000040
# define DC_OCFG_2IND 0 x00000080
# define DC_OCFG_34ADD 0 x00000100
# define DC_OCFG_FRMS 0 x00000200
# define DC_OCFG_CKSL 0 x00000400
# define DC_OCFG_PRMP 0 x00000800
# define DC_OCFG_PDEL 0 x00001000
# define DC_OCFG_PDEH 0 x00002000
# define DC_OCFG_CFRW 0 x00004000
# define DC_OCFG_DIAG 0 x00008000
#define DC_FB_ST_OFFSET 0 x10
#define DC_CB_ST_OFFSET 0 x14
#define DC_CURS_ST_OFFSET 0 x18
#define DC_ICON_ST_OFFSET 0 x1C
#define DC_VID_ST_OFFSET 0 x20
#define DC_LINE_DELTA 0 x24
#define DC_BUF_SIZE 0 x28
#define DC_H_TIMING_1 0 x30
#define DC_H_TIMING_2 0 x34
#define DC_H_TIMING_3 0 x38
#define DC_FP_H_TIMING 0 x3C
#define DC_V_TIMING_1 0 x40
#define DC_V_TIMING_2 0 x44
#define DC_V_TIMING_3 0 x48
#define DC_FP_V_TIMING 0 x4C
#define DC_CURSOR_X 0 x50
#define DC_ICON_X 0 x54
#define DC_V_LINE_CNT 0 x54
#define DC_CURSOR_Y 0 x58
#define DC_ICON_Y 0 x5C
#define DC_SS_LINE_CMP 0 x5C
#define DC_CURSOR_COLOR 0 x60
#define DC_ICON_COLOR 0 x64
#define DC_BORDER_COLOR 0 x68
#define DC_PAL_ADDRESS 0 x70
#define DC_PAL_DATA 0 x74
#define DC_DFIFO_DIAG 0 x78
#define DC_CFIFO_DIAG 0 x7C
#endif /* !__DISPLAY_GX1_H__ */
Messung V0.5 in Prozent C=96 H=95 G=95
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland