drivers/gpu/drm/omapdrm/dss/hdmi4_core.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/omapdrm/dss/hdmi4_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c- Extension
.c- Size
- 26363 bytes
- Lines
- 889
- 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/kernel.hlinux/module.hlinux/err.hlinux/io.hlinux/interrupt.hlinux/mutex.hlinux/delay.hlinux/platform_device.hlinux/string.hlinux/seq_file.hlinux/sys_soc.hsound/asound.hsound/asoundef.hhdmi4_core.h
Detected Declarations
struct hdmi4_featuresfunction Copyrightfunction hdmi4_core_ddc_initfunction hdmi4_core_ddc_readfunction hdmi_core_initfunction hdmi4_core_powerdown_disablefunction hdmi_core_swreset_releasefunction hdmi_core_swreset_assertfunction hdmi_core_video_configfunction hdmi_core_write_avi_infoframefunction hdmi_core_av_packet_configfunction hdmi4_configurefunction hdmi4_core_dumpfunction hdmi_core_audio_configfunction hdmi_core_audio_infoframe_cfgfunction hdmi4_audio_configfunction bitsfunction hdmi4_audio_startfunction hdmi4_audio_stopfunction hdmi4_core_init
Annotated Snippet
struct hdmi4_features {
bool cts_swmode;
bool audio_use_mclk;
};
static const struct hdmi4_features hdmi4430_es1_features = {
.cts_swmode = false,
.audio_use_mclk = false,
};
static const struct hdmi4_features hdmi4430_es2_features = {
.cts_swmode = true,
.audio_use_mclk = false,
};
static const struct hdmi4_features hdmi4_features = {
.cts_swmode = true,
.audio_use_mclk = true,
};
static const struct soc_device_attribute hdmi4_soc_devices[] = {
{
.machine = "OMAP4430",
.revision = "ES1.?",
.data = &hdmi4430_es1_features,
},
{
.machine = "OMAP4430",
.revision = "ES2.?",
.data = &hdmi4430_es2_features,
},
{
.family = "OMAP4",
.data = &hdmi4_features,
},
{ /* sentinel */ }
};
int hdmi4_core_init(struct platform_device *pdev, struct hdmi_core_data *core)
{
const struct hdmi4_features *features;
const struct soc_device_attribute *soc;
soc = soc_device_match(hdmi4_soc_devices);
if (!soc)
return -ENODEV;
features = soc->data;
core->cts_swmode = features->cts_swmode;
core->audio_use_mclk = features->audio_use_mclk;
core->base = devm_platform_ioremap_resource_byname(pdev, "core");
if (IS_ERR(core->base))
return PTR_ERR(core->base);
return 0;
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/err.h`, `linux/io.h`, `linux/interrupt.h`, `linux/mutex.h`, `linux/delay.h`, `linux/platform_device.h`.
- Detected declarations: `struct hdmi4_features`, `function Copyright`, `function hdmi4_core_ddc_init`, `function hdmi4_core_ddc_read`, `function hdmi_core_init`, `function hdmi4_core_powerdown_disable`, `function hdmi_core_swreset_release`, `function hdmi_core_swreset_assert`, `function hdmi_core_video_config`, `function hdmi_core_write_avi_infoframe`.
- 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.