coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ast_dp501.c File Reference
#include <delay.h>
#include "ast_drv.h"
Include dependency graph for ast_dp501.c:

Go to the source code of this file.

Functions

static void send_ack (struct ast_private *ast)
 
static void send_nack (struct ast_private *ast)
 
static bool wait_ack (struct ast_private *ast)
 
static bool wait_nack (struct ast_private *ast)
 
static void set_cmd_trigger (struct ast_private *ast)
 
static void clear_cmd_trigger (struct ast_private *ast)
 
static bool ast_write_cmd (struct drm_device *dev, u8 data)
 
static bool ast_write_data (struct drm_device *dev, u8 data)
 
void ast_set_dp501_video_output (struct drm_device *dev, u8 mode)
 
static u32 get_fw_base (struct ast_private *ast)
 
bool ast_backup_fw (struct drm_device *dev, u8 *addr, u32 size)
 
static bool ast_launch_m68k (struct drm_device *dev)
 
u8 ast_get_dp501_max_clk (struct drm_device *dev)
 
bool ast_dp501_read_edid (struct drm_device *dev, u8 *ediddata)
 
static bool ast_init_dvo (struct drm_device *dev)
 
static void ast_init_analog (struct drm_device *dev)
 
void ast_init_3rdtx (struct drm_device *dev)
 

Function Documentation

◆ ast_backup_fw()

bool ast_backup_fw ( struct drm_device dev,
u8 addr,
u32  size 
)

Definition at line 123 of file ast_dp501.c.

References addr, ast, ast_mindwm(), ast_private::dev, drm_device::dev_private, and get_fw_base().

Referenced by ast_detect_chip().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_dp501_read_edid()

bool ast_dp501_read_edid ( struct drm_device dev,
u8 ediddata 
)

Definition at line 233 of file ast_dp501.c.

References ast, ast_mindwm(), ast_private::dev, drm_device::dev_private, get_fw_base(), and offset.

Referenced by ast_select_mode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_get_dp501_max_clk()

u8 ast_get_dp501_max_clk ( struct drm_device dev)

Definition at line 205 of file ast_dp501.c.

References ast, ast_mindwm(), ast_private::dev, drm_device::dev_private, get_fw_base(), and offset.

Referenced by ast_select_mode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_init_3rdtx()

void ast_init_3rdtx ( struct drm_device dev)

Definition at line 361 of file ast_dp501.c.

References ast, AST2300, AST2400, ast_get_index_reg_mask(), ast_init_analog(), ast_init_dvo(), AST_IO_CRTC_PORT, ast_launch_m68k(), AST_TX_SIL164, ast_private::chip, ast_private::dev, drm_device::dev_private, and ast_private::tx_chip_type.

Referenced by ast_post_gpu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_init_analog()

static void ast_init_analog ( struct drm_device dev)
static

Definition at line 334 of file ast_dp501.c.

References ast, AST_IO_CRTC_PORT, ast_set_index_reg_mask(), ast_private::dev, and drm_device::dev_private.

Referenced by ast_init_3rdtx().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_init_dvo()

static bool ast_init_dvo ( struct drm_device dev)
static

Definition at line 262 of file ast_dp501.c.

References ast, AST2300, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_set_index_reg_mask(), ast_private::chip, ast_private::dev, and drm_device::dev_private.

Referenced by ast_init_3rdtx().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_launch_m68k()

static bool ast_launch_m68k ( struct drm_device dev)
static

Definition at line 139 of file ast_dp501.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_mindwm(), ast_moutdwm(), ast_set_index_reg(), firmware::data, ast_private::dev, drm_device::dev_private, ast_private::dp501_fw, ast_private::dp501_fw_addr, NULL, and firmware::size.

Referenced by ast_init_3rdtx().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_set_dp501_video_output()

void ast_set_dp501_video_output ( struct drm_device dev,
u8  mode 
)

Definition at line 110 of file ast_dp501.c.

References ast_write_cmd(), ast_write_data(), ast_private::dev, and msleep().

Referenced by ast_crtc_mode_set().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_write_cmd()

static bool ast_write_cmd ( struct drm_device dev,
u8  data 
)
static

Definition at line 71 of file ast_dp501.c.

References ast, AST_IO_CRTC_PORT, ast_set_index_reg_mask(), clear_cmd_trigger(), ast_private::dev, drm_device::dev_private, retry, send_ack(), send_nack(), set_cmd_trigger(), wait_ack(), and wait_nack().

Referenced by ast_set_dp501_video_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ast_write_data()

static bool ast_write_data ( struct drm_device dev,
u8  data 
)
static

Definition at line 93 of file ast_dp501.c.

References ast, AST_IO_CRTC_PORT, ast_set_index_reg_mask(), ast_private::dev, drm_device::dev_private, send_ack(), send_nack(), wait_ack(), and wait_nack().

Referenced by ast_set_dp501_video_output().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear_cmd_trigger()

static void clear_cmd_trigger ( struct ast_private ast)
static

Definition at line 66 of file ast_dp501.c.

References ast, AST_IO_CRTC_PORT, and ast_set_index_reg_mask().

Referenced by ast_write_cmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_fw_base()

static u32 get_fw_base ( struct ast_private ast)
static

Definition at line 118 of file ast_dp501.c.

References ast, and ast_mindwm().

Referenced by ast_backup_fw(), ast_dp501_read_edid(), and ast_get_dp501_max_clk().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_ack()

static void send_ack ( struct ast_private ast)
static

Definition at line 13 of file ast_dp501.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, and ast_set_index_reg_mask().

Referenced by ast_write_cmd(), and ast_write_data().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_nack()

static void send_nack ( struct ast_private ast)
static

Definition at line 21 of file ast_dp501.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, and ast_set_index_reg_mask().

Referenced by ast_write_cmd(), and ast_write_data().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_cmd_trigger()

static void set_cmd_trigger ( struct ast_private ast)
static

Definition at line 61 of file ast_dp501.c.

References ast, AST_IO_CRTC_PORT, and ast_set_index_reg_mask().

Referenced by ast_write_cmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wait_ack()

static bool wait_ack ( struct ast_private ast)
static

Definition at line 29 of file ast_dp501.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, retry, and udelay().

Referenced by ast_write_cmd(), and ast_write_data().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wait_nack()

static bool wait_nack ( struct ast_private ast)
static

Definition at line 45 of file ast_dp501.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, retry, and udelay().

Referenced by ast_write_cmd(), and ast_write_data().

Here is the call graph for this function:
Here is the caller graph for this function: