drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h- Extension
.h- Size
- 1800 bytes
- Lines
- 83
- 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
drm/drm_bridge.hdrm/drm_mipi_dsi.hlinux/bits.hlinux/completion.hlinux/phy/phy.h
Detected Declarations
struct clkstruct reset_controlstruct cdns_dsi_outputstruct cdns_dsi_cfgstruct cdns_dsi_inputstruct cdns_dsistruct cdns_dsi_platform_opsstruct cdns_dsienum cdns_dsi_input_id
Annotated Snippet
struct cdns_dsi_output {
struct mipi_dsi_device *dev;
struct drm_bridge *bridge;
union phy_configure_opts phy_opts;
};
enum cdns_dsi_input_id {
CDNS_SDI_INPUT,
CDNS_DPI_INPUT,
CDNS_DSC_INPUT,
};
struct cdns_dsi_cfg {
unsigned int hfp;
unsigned int hsa;
unsigned int hbp;
unsigned int hact;
unsigned int htotal;
};
struct cdns_dsi_input {
enum cdns_dsi_input_id id;
struct drm_bridge bridge;
};
struct cdns_dsi;
/**
* struct cdns_dsi_platform_ops - CDNS DSI Platform operations
* @init: Called in the CDNS DSI probe
* @deinit: Called in the CDNS DSI remove
* @enable: Called at the beginning of CDNS DSI bridge enable
* @disable: Called at the end of CDNS DSI bridge disable
*/
struct cdns_dsi_platform_ops {
int (*init)(struct cdns_dsi *dsi);
void (*deinit)(struct cdns_dsi *dsi);
void (*enable)(struct cdns_dsi *dsi);
void (*disable)(struct cdns_dsi *dsi);
};
struct cdns_dsi {
struct mipi_dsi_host base;
void __iomem *regs;
#ifdef CONFIG_DRM_CDNS_DSI_J721E
void __iomem *j721e_regs;
#endif
const struct cdns_dsi_platform_ops *platform_ops;
struct cdns_dsi_input input;
struct cdns_dsi_output output;
unsigned int direct_cmd_fifo_depth;
unsigned int rx_fifo_depth;
struct completion direct_cmd_comp;
struct clk *dsi_p_clk;
struct reset_control *dsi_p_rst;
struct clk *dsi_sys_clk;
bool link_initialized;
bool phy_initialized;
struct phy *dphy;
};
#endif /* !__CDNS_DSI_H__ */
Annotation
- Immediate include surface: `drm/drm_bridge.h`, `drm/drm_mipi_dsi.h`, `linux/bits.h`, `linux/completion.h`, `linux/phy/phy.h`.
- Detected declarations: `struct clk`, `struct reset_control`, `struct cdns_dsi_output`, `struct cdns_dsi_cfg`, `struct cdns_dsi_input`, `struct cdns_dsi`, `struct cdns_dsi_platform_ops`, `struct cdns_dsi`, `enum cdns_dsi_input_id`.
- 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.