include/drm/bridge/dw_mipi_dsi2.h
Source file repositories/reference/linux-study-clean/include/drm/bridge/dw_mipi_dsi2.h
File Facts
- System
- Linux kernel
- Corpus path
include/drm/bridge/dw_mipi_dsi2.h- Extension
.h- Size
- 2665 bytes
- Lines
- 96
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/regmap.hlinux/types.hdrm/drm_atomic.hdrm/drm_bridge.hdrm/drm_connector.hdrm/drm_crtc.hdrm/drm_modes.h
Detected Declarations
struct drm_display_modestruct drm_encoderstruct dw_mipi_dsi2struct mipi_dsi_devicestruct platform_devicestruct dw_mipi_dsi2_phy_ifacestruct dw_mipi_dsi2_phy_timingstruct dw_mipi_dsi2_phy_opsstruct dw_mipi_dsi2_host_opsstruct dw_mipi_dsi2_plat_dataenum dw_mipi_dsi2_phy_type
Annotated Snippet
struct dw_mipi_dsi2_phy_iface {
int ppi_width;
enum dw_mipi_dsi2_phy_type phy_type;
};
struct dw_mipi_dsi2_phy_timing {
u32 data_hs2lp;
u32 data_lp2hs;
};
struct dw_mipi_dsi2_phy_ops {
int (*init)(void *priv_data);
void (*power_on)(void *priv_data);
void (*power_off)(void *priv_data);
void (*get_interface)(void *priv_data, struct dw_mipi_dsi2_phy_iface *iface);
int (*get_lane_mbps)(void *priv_data,
const struct drm_display_mode *mode,
unsigned long mode_flags, u32 lanes, u32 format,
unsigned int *lane_mbps);
int (*get_timing)(void *priv_data, unsigned int lane_mbps,
struct dw_mipi_dsi2_phy_timing *timing);
int (*get_esc_clk_rate)(void *priv_data, unsigned int *esc_clk_rate);
};
struct dw_mipi_dsi2_host_ops {
int (*attach)(void *priv_data,
struct mipi_dsi_device *dsi);
int (*detach)(void *priv_data,
struct mipi_dsi_device *dsi);
};
struct dw_mipi_dsi2_plat_data {
struct regmap *regmap;
unsigned int max_data_lanes;
enum drm_mode_status (*mode_valid)(void *priv_data,
const struct drm_display_mode *mode,
unsigned long mode_flags,
u32 lanes, u32 format);
bool (*mode_fixup)(void *priv_data, const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode);
u32 *(*get_input_bus_fmts)(void *priv_data,
struct drm_bridge *bridge,
struct drm_bridge_state *bridge_state,
struct drm_crtc_state *crtc_state,
struct drm_connector_state *conn_state,
u32 output_fmt,
unsigned int *num_input_fmts);
const struct dw_mipi_dsi2_phy_ops *phy_ops;
const struct dw_mipi_dsi2_host_ops *host_ops;
void *priv_data;
};
struct dw_mipi_dsi2 *dw_mipi_dsi2_probe(struct platform_device *pdev,
const struct dw_mipi_dsi2_plat_data *plat_data);
void dw_mipi_dsi2_remove(struct dw_mipi_dsi2 *dsi2);
int dw_mipi_dsi2_bind(struct dw_mipi_dsi2 *dsi2, struct drm_encoder *encoder);
void dw_mipi_dsi2_unbind(struct dw_mipi_dsi2 *dsi2);
#endif /* __DW_MIPI_DSI2__ */
Annotation
- Immediate include surface: `linux/regmap.h`, `linux/types.h`, `drm/drm_atomic.h`, `drm/drm_bridge.h`, `drm/drm_connector.h`, `drm/drm_crtc.h`, `drm/drm_modes.h`.
- Detected declarations: `struct drm_display_mode`, `struct drm_encoder`, `struct dw_mipi_dsi2`, `struct mipi_dsi_device`, `struct platform_device`, `struct dw_mipi_dsi2_phy_iface`, `struct dw_mipi_dsi2_phy_timing`, `struct dw_mipi_dsi2_phy_ops`, `struct dw_mipi_dsi2_host_ops`, `struct dw_mipi_dsi2_plat_data`.
- Atlas domain: Repository Root And Misc / include.
- 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.