include/drm/display/drm_hdmi_cec_helper.h
Source file repositories/reference/linux-study-clean/include/drm/display/drm_hdmi_cec_helper.h
File Facts
- System
- Linux kernel
- Corpus path
include/drm/display/drm_hdmi_cec_helper.h- Extension
.h- Size
- 1986 bytes
- Lines
- 73
- 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/types.h
Detected Declarations
struct drm_connectorstruct cec_msgstruct devicestruct drm_connector_hdmi_cec_funcsfunction drmm_connector_hdmi_cec_notifier_register
Annotated Snippet
struct drm_connector_hdmi_cec_funcs {
/**
* @init: perform hardware-specific initialization before registering the CEC adapter
*/
int (*init)(struct drm_connector *connector);
/**
* @uninit: perform hardware-specific teardown for the CEC adapter
*/
void (*uninit)(struct drm_connector *connector);
/**
* @enable: enable or disable CEC adapter
*/
int (*enable)(struct drm_connector *connector, bool enable);
/**
* @log_addr: set adapter's logical address, can be called multiple
* times if adapter supports several LAs
*/
int (*log_addr)(struct drm_connector *connector, u8 logical_addr);
/**
* @transmit: start transmission of the specified CEC message
*/
int (*transmit)(struct drm_connector *connector, u8 attempts,
u32 signal_free_time, struct cec_msg *msg);
};
int drmm_connector_hdmi_cec_register(struct drm_connector *connector,
const struct drm_connector_hdmi_cec_funcs *funcs,
const char *name,
u8 available_las,
struct device *dev);
void drm_connector_hdmi_cec_received_msg(struct drm_connector *connector,
struct cec_msg *msg);
void drm_connector_hdmi_cec_transmit_done(struct drm_connector *connector,
u8 status,
u8 arb_lost_cnt, u8 nack_cnt,
u8 low_drive_cnt, u8 error_cnt);
void drm_connector_hdmi_cec_transmit_attempt_done(struct drm_connector *connector,
u8 status);
#if IS_ENABLED(CONFIG_DRM_DISPLAY_HDMI_CEC_NOTIFIER_HELPER)
int drmm_connector_hdmi_cec_notifier_register(struct drm_connector *connector,
const char *port_name,
struct device *dev);
#else
static inline int drmm_connector_hdmi_cec_notifier_register(struct drm_connector *connector,
const char *port_name,
struct device *dev)
{
return 0;
}
#endif
#endif
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct drm_connector`, `struct cec_msg`, `struct device`, `struct drm_connector_hdmi_cec_funcs`, `function drmm_connector_hdmi_cec_notifier_register`.
- 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.