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

Go to the source code of this file.

Functions

void ast_set_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask, uint8_t val)
 
uint8_t ast_get_index_reg (struct ast_private *ast, uint32_t base, uint8_t index)
 
uint8_t ast_get_index_reg_mask (struct ast_private *ast, uint32_t base, uint8_t index, uint8_t mask)
 
static void ast_detect_config_mode (struct drm_device *dev, u32 *scu_rev)
 
static int ast_detect_chip (struct drm_device *dev, bool *need_post)
 
static int ast_get_dram_info (struct drm_device *dev)
 
static u32 ast_get_vram_info (struct drm_device *dev)
 
int ast_driver_load (struct drm_device *dev, unsigned long flags)
 

Function Documentation

◆ ast_detect_chip()

◆ ast_detect_config_mode()

static void ast_detect_config_mode ( struct drm_device dev,
u32 scu_rev 
)
static

Definition at line 39 of file ast_main.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_private::ast_use_defaults, ast_private::ast_use_p2a, ast_private::config_mode, ast_private::dev, drm_device::dev_private, DRM_INFO, PCI_CHIP_AST2000, and drm_device::pdev.

Referenced by ast_detect_chip().

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

◆ ast_driver_load()

◆ ast_get_dram_info()

◆ ast_get_index_reg()

uint8_t ast_get_index_reg ( struct ast_private ast,
uint32_t  base,
uint8_t  index 
)

Definition at line 21 of file ast_main.c.

References ast, and base.

◆ ast_get_index_reg_mask()

uint8_t ast_get_index_reg_mask ( struct ast_private ast,
uint32_t  base,
uint8_t  index,
uint8_t  mask 
)

◆ ast_get_vram_info()

static u32 ast_get_vram_info ( struct drm_device dev)
static

Definition at line 348 of file ast_main.c.

References ast, ast_get_index_reg_mask(), AST_IO_CRTC_PORT, ast_open_key(), AST_VIDMEM_DEFAULT_SIZE, AST_VIDMEM_SIZE_16M, AST_VIDMEM_SIZE_32M, AST_VIDMEM_SIZE_64M, AST_VIDMEM_SIZE_8M, ast_private::dev, drm_device::dev_private, and ast_private::vram_size.

Referenced by ast_driver_load().

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

◆ ast_set_index_reg_mask()

void ast_set_index_reg_mask ( struct ast_private ast,
uint32_t  base,
uint8_t  index,
uint8_t  mask,
uint8_t  val 
)