linux/drivers/video/fbdev/geode/display_gx1.h

/* 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
#define CONFIG_CCR3_MAPEN
#define CONFIG_GCR

/* Memory controller registers */

#define MC_BANK_CFG
#define MC_BCFG_DIMM0_SZ_MASK
#define MC_BCFG_DIMM0_PG_SZ_MASK
#define MC_BCFG_DIMM0_PG_SZ_NO_DIMM

#define MC_GBASE_ADD
#define MC_GADD_GBADD_MASK

/* Display controller registers */

#define DC_PAL_ADDRESS
#define DC_PAL_DATA

#define DC_UNLOCK
#define DC_UNLOCK_CODE

#define DC_GENERAL_CFG
#define DC_GCFG_DFLE
#define DC_GCFG_CURE
#define DC_GCFG_VCLK_DIV
#define DC_GCFG_PLNO
#define DC_GCFG_PPC
#define DC_GCFG_CMPE
#define DC_GCFG_DECE
#define DC_GCFG_DCLK_MASK
#define DC_GCFG_DCLK_DIV_1
#define DC_GCFG_DFHPSL_MASK
#define DC_GCFG_DFHPSL_POS
#define DC_GCFG_DFHPEL_MASK
#define DC_GCFG_DFHPEL_POS
#define DC_GCFG_CIM_MASK
#define DC_GCFG_CIM_POS
#define DC_GCFG_FDTY
#define DC_GCFG_RTPM
#define DC_GCFG_DAC_RS_MASK
#define DC_GCFG_DAC_RS_POS
#define DC_GCFG_CKWR
#define DC_GCFG_LDBL
#define DC_GCFG_DIAG
#define DC_GCFG_CH4S
#define DC_GCFG_SSLC
#define DC_GCFG_VIDE
#define DC_GCFG_VRDY
#define DC_GCFG_DPCK
#define DC_GCFG_DDCK

#define DC_TIMING_CFG
#define DC_TCFG_FPPE
#define DC_TCFG_HSYE
#define DC_TCFG_VSYE
#define DC_TCFG_BLKE
#define DC_TCFG_DDCK
#define DC_TCFG_TGEN
#define DC_TCFG_VIEN
#define DC_TCFG_BLNK
#define DC_TCFG_CHSP
#define DC_TCFG_CVSP
#define DC_TCFG_FHSP
#define DC_TCFG_FVSP
#define DC_TCFG_FCEN
#define DC_TCFG_CDCE
#define DC_TCFG_PLNR
#define DC_TCFG_INTL
#define DC_TCFG_PXDB
#define DC_TCFG_BKRT
#define DC_TCFG_PSD_MASK
#define DC_TCFG_PSD_POS
#define DC_TCFG_DDCI
#define DC_TCFG_SENS
#define DC_TCFG_DNA
#define DC_TCFG_VNA
#define DC_TCFG_VINT

#define DC_OUTPUT_CFG
#define DC_OCFG_8BPP
#define DC_OCFG_555
#define DC_OCFG_PCKE
#define DC_OCFG_FRME
#define DC_OCFG_DITE
#define DC_OCFG_2PXE
#define DC_OCFG_2XCK
#define DC_OCFG_2IND
#define DC_OCFG_34ADD
#define DC_OCFG_FRMS
#define DC_OCFG_CKSL
#define DC_OCFG_PRMP
#define DC_OCFG_PDEL
#define DC_OCFG_PDEH
#define DC_OCFG_CFRW
#define DC_OCFG_DIAG

#define DC_FB_ST_OFFSET
#define DC_CB_ST_OFFSET
#define DC_CURS_ST_OFFSET
#define DC_ICON_ST_OFFSET
#define DC_VID_ST_OFFSET
#define DC_LINE_DELTA
#define DC_BUF_SIZE

#define DC_H_TIMING_1
#define DC_H_TIMING_2
#define DC_H_TIMING_3
#define DC_FP_H_TIMING

#define DC_V_TIMING_1
#define DC_V_TIMING_2
#define DC_V_TIMING_3
#define DC_FP_V_TIMING

#define DC_CURSOR_X
#define DC_ICON_X
#define DC_V_LINE_CNT
#define DC_CURSOR_Y
#define DC_ICON_Y
#define DC_SS_LINE_CMP
#define DC_CURSOR_COLOR
#define DC_ICON_COLOR
#define DC_BORDER_COLOR
#define DC_PAL_ADDRESS
#define DC_PAL_DATA
#define DC_DFIFO_DIAG
#define DC_CFIFO_DIAG

#endif /* !__DISPLAY_GX1_H__ */