10 u8 index,
u8 red,
u8 green,
27 for (
int i = 0; i < 256; i++)
38 u32 refresh_rate_index = 0, mode_id, color_index, refresh_rate;
125 if (best || !check_sync)
169 adjusted_mode->
clock / 1000);
209 jreg = stdtable->
misc;
214 for (i = 0; i < 4; i++) {
215 jreg = stdtable->
seq[i];
223 for (i = 0; i < 25; i++)
228 for (i = 0; i < 20; i++) {
229 jreg = stdtable->
ar[i];
240 for (i = 0; i < 9; i++)
248 u8 jreg05 = 0, jreg07 = 0, jreg09 = 0, jregAC = 0, jregAD = 0, jregAE = 0;
249 u16 temp, precache = 0;
379 (clk_info->
param3 & 0xc0) |
380 ((clk_info->
param3 & 0x3) << 4));
388 u8 jregA0 = 0, jregA3 = 0, jregA8 = 0;
473 dev_err(dev->
pdev,
"AST 1180 modesetting not supported\n");
486 dev_err(dev->
pdev,
"Failed to find compatible vbios mode\n");
513 const unsigned int hdisplay,
const unsigned int vdisplay)
520 if ((hdisplay == 1680) && (vdisplay == 1050))
522 if ((hdisplay == 1280) && (vdisplay == 800))
524 if ((hdisplay == 1440) && (vdisplay == 900))
526 if ((hdisplay == 1360) && (vdisplay == 768))
528 if ((hdisplay == 1600) && (vdisplay == 900))
534 if ((hdisplay == 1920) && (vdisplay == 1080))
537 if ((hdisplay == 1920) && (vdisplay == 1200)) {
561 if (vdisplay == 1024)
565 if (vdisplay == 1200)
#define dev_err(dev, format, arg...)
void ast_set_dp501_video_output(struct drm_device *dev, u8 mode)
uint8_t ast_get_index_reg_mask(struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask)
#define AST_IO_AR_PORT_WRITE
#define AST_IO_DAC_INDEX_WRITE
int ast_crtc_do_set_base(struct drm_crtc *crtc)
#define DRM_MODE_FLAG_NVSYNC
void ast_set_index_reg_mask(struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask, uint8_t val)
#define AST_IO_INPUT_STATUS1_READ
#define AST_IO_MISC_PORT_WRITE
#define DRM_MODE_FLAG_NHSYNC
static void ast_set_index_reg(struct ast_private *ast, uint32_t base, uint8_t index, uint8_t val)
#define DRM_MODE_FLAG_PVSYNC
#define AST_IO_MISC_PORT_READ
static void ast_open_key(struct ast_private *ast)
#define DRM_MODE_FLAG_PHSYNC
static struct ast_private * ast
void ast_hide_cursor(struct drm_crtc *crtc)
void ast_set_offset_reg(struct drm_crtc *crtc)
static void ast_load_palette_index(struct ast_private *ast, u8 index, u8 red, u8 green, u8 blue)
static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode, struct ast_vbios_mode_info *vbios_mode)
static void ast_set_dclk_reg(struct drm_device *dev, struct drm_display_mode *mode, struct ast_vbios_mode_info *vbios_mode)
static void ast_crtc_load_lut(struct drm_crtc *crtc)
static void ast_set_ext_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, struct ast_vbios_mode_info *vbios_mode)
enum drm_mode_status ast_mode_valid(struct drm_connector *connector, const unsigned int hdisplay, const unsigned int vdisplay)
void ast_set_start_address_crt1(struct ast_private *ast, u32 offset)
static void ast_set_sync_reg(struct drm_device *dev, struct drm_display_mode *mode, struct ast_vbios_mode_info *vbios_mode)
static void ast_set_crtc_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, struct ast_vbios_mode_info *vbios_mode)
int ast_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
static void ast_set_std_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, struct ast_vbios_mode_info *vbios_mode)
static const struct ast_vbios_enhtable res_1440x900[]
static struct ast_vbios_stdtable vbios_stdtable[]
#define AST2500PreCatchCRT
static const struct ast_vbios_enhtable res_800x600[]
static const struct ast_vbios_enhtable res_1360x768[]
static const struct ast_vbios_enhtable res_1024x768[]
static const struct ast_vbios_enhtable res_1280x1024[]
static const struct ast_vbios_enhtable res_1600x1200[]
static const struct ast_vbios_enhtable res_1600x900[]
static const struct ast_vbios_dclk_info dclk_table_ast2500[]
static const struct ast_vbios_enhtable res_1280x800[]
static const struct ast_vbios_enhtable res_1920x1080[]
static struct ast_vbios_dclk_info dclk_table[]
static const struct ast_vbios_enhtable res_1920x1200[]
static const struct ast_vbios_enhtable res_640x480[]
static const struct ast_vbios_enhtable res_1680x1050[]
enum ast_tx_chip tx_chip_type
const struct ast_vbios_enhtable * enh_table
const struct ast_vbios_stdtable * std_table
struct drm_display_mode mode
struct drm_primary * primary
struct drm_format * format
struct drm_framebuffer * fb