drivers/video/fbdev/omap2/omapfb/dss/hdmi.h
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap2/omapfb/dss/hdmi.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap2/omapfb/dss/hdmi.h- Extension
.h- Size
- 9453 bytes
- Lines
- 361
- Domain
- Driver Families
- Bucket
- drivers/video
- 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/delay.hlinux/io.hlinux/platform_device.hlinux/hdmi.hvideo/omapfb_dss.hsound/omap-hdmi-audio.hdss.h
Detected Declarations
struct hdmi_video_formatstruct hdmi_configstruct hdmi_audio_formatstruct hdmi_audio_dmastruct hdmi_core_audio_i2s_configstruct hdmi_core_audio_configstruct hdmi_wp_datastruct hdmi_pll_datastruct hdmi_phy_datastruct hdmi_core_datastruct omap_hdmienum hdmi_pll_pwrenum hdmi_phy_pwrenum hdmi_core_hdmi_dvienum hdmi_packing_modeenum hdmi_stereo_channelsenum hdmi_audio_typeenum hdmi_audio_justifyenum hdmi_audio_sample_orderenum hdmi_audio_samples_perwordenum hdmi_audio_sample_size_omapenum hdmi_audio_transf_modeenum hdmi_audio_blk_strt_end_sigenum hdmi_core_audio_layoutenum hdmi_core_cts_modeenum hdmi_audio_mclk_modefunction hdmi_write_regfunction hdmi_read_regfunction hdmi_wait_for_bit_changefunction hdmi_mode_has_audio
Annotated Snippet
struct hdmi_video_format {
enum hdmi_packing_mode packing_mode;
u32 y_res; /* Line per panel */
u32 x_res; /* pixel per line */
};
struct hdmi_config {
struct omap_video_timings timings;
struct hdmi_avi_infoframe infoframe;
enum hdmi_core_hdmi_dvi hdmi_dvi_mode;
};
struct hdmi_audio_format {
enum hdmi_stereo_channels stereo_channels;
u8 active_chnnls_msk;
enum hdmi_audio_type type;
enum hdmi_audio_justify justification;
enum hdmi_audio_sample_order sample_order;
enum hdmi_audio_samples_perword samples_per_word;
enum hdmi_audio_sample_size_omap sample_size;
enum hdmi_audio_blk_strt_end_sig en_sig_blk_strt_end;
};
struct hdmi_audio_dma {
u8 transfer_size;
u8 block_size;
enum hdmi_audio_transf_mode mode;
u16 fifo_threshold;
};
struct hdmi_core_audio_i2s_config {
u8 in_length_bits;
u8 justification;
u8 sck_edge_mode;
u8 vbit;
u8 direction;
u8 shift;
u8 active_sds;
};
struct hdmi_core_audio_config {
struct hdmi_core_audio_i2s_config i2s_cfg;
struct snd_aes_iec958 *iec60958_cfg;
bool fs_override;
u32 n;
u32 cts;
u32 aud_par_busclk;
enum hdmi_core_audio_layout layout;
enum hdmi_core_cts_mode cts_mode;
bool use_mclk;
enum hdmi_audio_mclk_mode mclk_mode;
bool en_acr_pkt;
bool en_dsd_audio;
bool en_parallel_aud_input;
bool en_spdif;
};
struct hdmi_wp_data {
void __iomem *base;
phys_addr_t phys_base;
};
struct hdmi_pll_data {
struct dss_pll pll;
void __iomem *base;
struct hdmi_wp_data *wp;
};
struct hdmi_phy_data {
void __iomem *base;
u8 lane_function[4];
u8 lane_polarity[4];
};
struct hdmi_core_data {
void __iomem *base;
};
static inline void hdmi_write_reg(void __iomem *base_addr, const u32 idx,
u32 val)
{
__raw_writel(val, base_addr + idx);
}
static inline u32 hdmi_read_reg(void __iomem *base_addr, const u32 idx)
{
return __raw_readl(base_addr + idx);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/io.h`, `linux/platform_device.h`, `linux/hdmi.h`, `video/omapfb_dss.h`, `sound/omap-hdmi-audio.h`, `dss.h`.
- Detected declarations: `struct hdmi_video_format`, `struct hdmi_config`, `struct hdmi_audio_format`, `struct hdmi_audio_dma`, `struct hdmi_core_audio_i2s_config`, `struct hdmi_core_audio_config`, `struct hdmi_wp_data`, `struct hdmi_pll_data`, `struct hdmi_phy_data`, `struct hdmi_core_data`.
- Atlas domain: Driver Families / drivers/video.
- 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.