drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.h- Extension
.h- Size
- 12482 bytes
- Lines
- 423
- 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/bits.hlinux/mutex.hlinux/spinlock.hdrm/display/drm_dp_helper.hdrm/drm_bridge.hdrm/drm_connector.h
Detected Declarations
struct clkstruct devicestruct phystruct cdns_mhdp_linkstruct cdns_mhdp_hoststruct cdns_mhdp_sinkstruct cdns_mhdp_display_fmtstruct cdns_mhdp_devicestruct mhdp_platform_opsstruct cdns_mhdp_bridge_statestruct cdns_mhdp_platform_infostruct cdns_mhdp_hdcpstruct cdns_mhdp_deviceenum mhdp_hw_state
Annotated Snippet
struct cdns_mhdp_link {
unsigned char revision;
unsigned int rate;
unsigned int num_lanes;
unsigned long capabilities;
};
struct cdns_mhdp_host {
unsigned int link_rate;
u8 lanes_cnt;
u8 volt_swing;
u8 pre_emphasis;
u8 pattern_supp;
u8 lane_mapping;
bool fast_link;
bool enhanced;
bool scrambler;
bool ssc;
};
struct cdns_mhdp_sink {
unsigned int link_rate;
u8 lanes_cnt;
u8 pattern_supp;
bool fast_link;
bool enhanced;
bool ssc;
};
struct cdns_mhdp_display_fmt {
enum drm_output_color_format color_format;
u32 bpc;
bool y_only;
};
/*
* These enums present MHDP hw initialization state
* Legal state transitions are:
* MHDP_HW_READY <-> MHDP_HW_STOPPED
*/
enum mhdp_hw_state {
MHDP_HW_READY = 1, /* HW ready, FW active */
MHDP_HW_STOPPED /* Driver removal FW to be stopped */
};
struct cdns_mhdp_device;
struct mhdp_platform_ops {
int (*init)(struct cdns_mhdp_device *mhdp);
void (*exit)(struct cdns_mhdp_device *mhdp);
void (*enable)(struct cdns_mhdp_device *mhdp);
void (*disable)(struct cdns_mhdp_device *mhdp);
};
struct cdns_mhdp_bridge_state {
struct drm_bridge_state base;
struct drm_display_mode *current_mode;
};
struct cdns_mhdp_platform_info {
const u32 *input_bus_flags;
const struct mhdp_platform_ops *ops;
};
#define to_cdns_mhdp_bridge_state(s) \
container_of(s, struct cdns_mhdp_bridge_state, base)
struct cdns_mhdp_hdcp {
struct delayed_work check_work;
struct work_struct prop_work;
struct mutex mutex; /* mutex to protect hdcp.value */
u32 value;
u8 hdcp_content_type;
};
struct cdns_mhdp_device {
void __iomem *regs;
void __iomem *sapb_regs;
void __iomem *j721e_regs;
struct device *dev;
struct clk *clk;
struct phy *phy;
const struct cdns_mhdp_platform_info *info;
/* This is to protect mailbox communications with the firmware */
struct mutex mbox_mutex;
/*
Annotation
- Immediate include surface: `linux/bits.h`, `linux/mutex.h`, `linux/spinlock.h`, `drm/display/drm_dp_helper.h`, `drm/drm_bridge.h`, `drm/drm_connector.h`.
- Detected declarations: `struct clk`, `struct device`, `struct phy`, `struct cdns_mhdp_link`, `struct cdns_mhdp_host`, `struct cdns_mhdp_sink`, `struct cdns_mhdp_display_fmt`, `struct cdns_mhdp_device`, `struct mhdp_platform_ops`, `struct cdns_mhdp_bridge_state`.
- 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.