drivers/gpu/drm/ast/ast_drv.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/ast/ast_drv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/ast/ast_drv.h- Extension
.h- Size
- 14668 bytes
- Lines
- 567
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/io.hlinux/types.hdrm/drm_connector.hdrm/drm_crtc.hdrm/drm_encoder.hdrm/drm_mode.hdrm/drm_framebuffer.hast_reg.h
Detected Declarations
struct ast_vbios_enhtablestruct ast_planestruct ast_cursor_planestruct ast_connectorstruct ast_device_quirksstruct ast_devicestruct ast_vbios_stdtablestruct ast_vbios_dclk_infostruct ast_crtc_stateenum ast_chipenum ast_tx_chipenum ast_config_modeenum ast_dram_layoutfunction to_ast_connectorfunction __ast_genfunction __ast_gen_is_eqfunction __ast_read8function __ast_write8function __ast_read8_ifunction __ast_read8_i_maskedfunction __ast_write8_ifunction __ast_write8_i_maskedfunction ast_io_read8function ast_io_write8function ast_get_index_regfunction ast_get_index_reg_maskfunction ast_set_index_regfunction ast_set_index_reg_maskfunction __ast_read32function __ast_write32function ast_read32function ast_write32
Annotated Snippet
struct ast_plane {
struct drm_plane base;
u64 offset;
unsigned long size;
};
static inline struct ast_plane *to_ast_plane(struct drm_plane *plane)
{
return container_of(plane, struct ast_plane, base);
}
struct ast_cursor_plane {
struct ast_plane base;
u8 argb4444[AST_HWC_SIZE];
};
static inline struct ast_cursor_plane *to_ast_cursor_plane(struct drm_plane *plane)
{
return container_of(to_ast_plane(plane), struct ast_cursor_plane, base);
}
/*
* Connector
*/
struct ast_connector {
struct drm_connector base;
enum drm_connector_status physical_status;
};
static inline struct ast_connector *
to_ast_connector(struct drm_connector *connector)
{
return container_of(connector, struct ast_connector, base);
}
/*
* Device
*/
struct ast_device_quirks {
/*
* CRTC memory request threshold
*/
unsigned char crtc_mem_req_threshold_low;
unsigned char crtc_mem_req_threshold_high;
/*
* Adjust hsync values to load next scanline early. Signalled
* by AST2500PreCatchCRT in VBIOS mode flags.
*/
bool crtc_hsync_precatch_needed;
/*
* Workaround for modes with HSync Time that is not a multiple
* of 8 (e.g., 1920x1080@60Hz, HSync +44 pixels).
*/
bool crtc_hsync_add4_needed;
};
struct ast_device {
struct drm_device base;
const struct ast_device_quirks *quirks;
void __iomem *regs;
void __iomem *ioregs;
void __iomem *dp501_fw_buf;
enum ast_config_mode config_mode;
enum ast_chip chip;
const struct ast_vbios_dclk_info *dclk_table;
void __iomem *vram;
unsigned long vram_base;
unsigned long vram_size;
struct mutex modeset_lock; /* Protects access to modeset I/O registers in ioregs */
enum ast_tx_chip tx_chip;
struct ast_plane primary_plane;
struct ast_cursor_plane cursor_plane;
struct drm_crtc crtc;
union {
struct {
Annotation
- Immediate include surface: `linux/io.h`, `linux/types.h`, `drm/drm_connector.h`, `drm/drm_crtc.h`, `drm/drm_encoder.h`, `drm/drm_mode.h`, `drm/drm_framebuffer.h`, `ast_reg.h`.
- Detected declarations: `struct ast_vbios_enhtable`, `struct ast_plane`, `struct ast_cursor_plane`, `struct ast_connector`, `struct ast_device_quirks`, `struct ast_device`, `struct ast_vbios_stdtable`, `struct ast_vbios_dclk_info`, `struct ast_crtc_state`, `enum ast_chip`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.