drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h- Extension
.h- Size
- 18246 bytes
- Lines
- 569
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hdrm/drm_atomic.hdrm/drm_atomic_helper.hmalidp_utils.hkomeda_color_mgmt.h
Detected Declarations
struct komeda_componentstruct komeda_component_statestruct komeda_component_funcsstruct komeda_componentstruct komeda_component_outputstruct komeda_component_statestruct komeda_layerstruct komeda_layer_statestruct komeda_scalerstruct komeda_scaler_statestruct komeda_compizstruct komeda_compiz_input_cfgstruct komeda_compiz_statestruct komeda_mergerstruct komeda_merger_statestruct komeda_splitterstruct komeda_splitter_statestruct komeda_improcstruct komeda_improc_statestruct komeda_timing_ctrlrstruct komeda_timing_ctrlr_statestruct komeda_data_flow_cfgstruct komeda_pipeline_funcsstruct komeda_pipelinestruct komeda_pipeline_statestruct komeda_plane_statestruct komeda_crtc_statestruct komeda_crtcfunction component_disabling_inputsfunction component_changed_inputsfunction komeda_component_pickup_output
Annotated Snippet
struct komeda_component_funcs {
/** @validate: optional,
* component may has special requirements or limitations, this function
* supply HW the ability to do the further HW specific check.
*/
int (*validate)(struct komeda_component *c,
struct komeda_component_state *state);
/** @update: update is a active update */
void (*update)(struct komeda_component *c,
struct komeda_component_state *state);
/** @disable: disable component */
void (*disable)(struct komeda_component *c);
/** @dump_register: Optional, dump registers to seq_file */
void (*dump_register)(struct komeda_component *c, struct seq_file *seq);
};
/**
* struct komeda_component
*
* struct komeda_component describe the data flow capabilities for how to link a
* component into the display pipeline.
* all specified components are subclass of this structure.
*/
struct komeda_component {
/** @obj: treat component as private obj */
struct drm_private_obj obj;
/** @pipeline: the komeda pipeline this component belongs to */
struct komeda_pipeline *pipeline;
/** @name: component name */
char name[32];
/**
* @reg:
* component register base,
* which is initialized by chip and used by chip only
*/
u32 __iomem *reg;
/** @id: component id */
u32 id;
/**
* @hw_id: component hw id,
* which is initialized by chip and used by chip only
*/
u32 hw_id;
/**
* @max_active_inputs:
* @max_active_outputs:
*
* maximum number of inputs/outputs that can be active at the same time
* Note:
* the number isn't the bit number of @supported_inputs or
* @supported_outputs, but may be less than it, since component may not
* support enabling all @supported_inputs/outputs at the same time.
*/
u8 max_active_inputs;
/** @max_active_outputs: maximum number of outputs */
u8 max_active_outputs;
/**
* @supported_inputs:
* @supported_outputs:
*
* bitmask of BIT(component->id) for the supported inputs/outputs,
* describes the possibilities of how a component is linked into a
* pipeline.
*/
u32 supported_inputs;
/** @supported_outputs: bitmask of supported output componenet ids */
u32 supported_outputs;
/**
* @funcs: chip functions to access HW
*/
const struct komeda_component_funcs *funcs;
};
#define to_component(o) container_of(o, struct komeda_component, obj)
/**
* struct komeda_component_output
*
* a component has multiple outputs, if want to know where the data
* comes from, only know the component is not enough, we still need to know
* its output port
*/
struct komeda_component_output {
/** @component: indicate which component the data comes from */
struct komeda_component *component;
/**
* @output_port:
* the output port of the &komeda_component_output.component
Annotation
- Immediate include surface: `linux/types.h`, `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `malidp_utils.h`, `komeda_color_mgmt.h`.
- Detected declarations: `struct komeda_component`, `struct komeda_component_state`, `struct komeda_component_funcs`, `struct komeda_component`, `struct komeda_component_output`, `struct komeda_component_state`, `struct komeda_layer`, `struct komeda_layer_state`, `struct komeda_scaler`, `struct komeda_scaler_state`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.