drivers/gpu/drm/bridge/ite-it6263.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/bridge/ite-it6263.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/bridge/ite-it6263.c- Extension
.c- Size
- 25305 bytes
- Lines
- 931
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitfield.hlinux/bits.hlinux/delay.hlinux/gpio/consumer.hlinux/hdmi.hlinux/i2c.hlinux/media-bus-format.hlinux/module.hlinux/of.hlinux/regmap.hlinux/regulator/consumer.hdrm/display/drm_hdmi_helper.hdrm/display/drm_hdmi_state_helper.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_atomic_state_helper.hdrm/drm_bridge.hdrm/drm_bridge_connector.hdrm/drm_connector.hdrm/drm_crtc.hdrm/drm_edid.hdrm/drm_of.hdrm/drm_probe_helper.h
Detected Declarations
struct it6263function it6263_hdmi_writeable_regfunction it6263_hdmi_readable_regfunction it6263_hdmi_volatile_regfunction it6263_lvds_writeable_regfunction it6263_lvds_readable_regfunction it6263_lvds_volatile_regfunction it6263_parse_dtfunction it6263_hw_resetfunction it6263_lvds_set_i2c_addrfunction it6263_lvds_resetfunction it6263_is_input_bus_fmt_validfunction it6263_lvds_set_interfacefunction it6263_lvds_set_afefunction it6263_lvds_sys_cfgfunction it6263_lvds_configfunction it6263_hdmi_configfunction it6263_detectfunction it6263_read_edidfunction it6263_bridge_atomic_disablefunction it6263_bridge_atomic_enablefunction it6263_bridge_mode_validfunction it6263_bridge_attachfunction it6263_bridge_detectfunction it6263_bridge_edid_readfunction it6263_bridge_atomic_get_input_bus_fmtsfunction it6263_hdmi_tmds_char_rate_validfunction it6263_hdmi_clear_avi_infoframefunction it6263_hdmi_clear_hdmi_infoframefunction it6263_hdmi_write_avi_infoframefunction it6263_hdmi_write_hdmi_infoframefunction it6263_probe
Annotated Snippet
struct it6263 {
struct device *dev;
struct i2c_client *hdmi_i2c;
struct i2c_client *lvds_i2c;
struct regmap *hdmi_regmap;
struct regmap *lvds_regmap;
struct drm_bridge bridge;
struct drm_bridge *next_bridge;
struct gpio_desc *reset_gpio;
int lvds_data_mapping;
bool lvds_dual_link;
bool lvds_link12_swap;
};
static inline struct it6263 *bridge_to_it6263(struct drm_bridge *bridge)
{
return container_of(bridge, struct it6263, bridge);
}
static bool it6263_hdmi_writeable_reg(struct device *dev, unsigned int reg)
{
switch (reg) {
case HDMI_REG_SW_RST:
case HDMI_REG_BANK_CTRL:
case HDMI_REG_DDC_MASTER_CTRL:
case HDMI_REG_DDC_HEADER:
case HDMI_REG_DDC_REQOFF:
case HDMI_REG_DDC_REQCOUNT:
case HDMI_REG_DDC_EDIDSEG:
case HDMI_REG_DDC_CMD:
case HDMI_REG_LVDS_PORT:
case HDMI_REG_LVDS_PORT_EN:
case HDMI_REG_AFE_DRV_CTRL:
case HDMI_REG_AFE_XP_CTRL:
case HDMI_REG_AFE_ISW_CTRL:
case HDMI_REG_AFE_IP_CTRL:
case HDMI_REG_INPUT_MODE:
case HDMI_REG_HDMI_MODE:
case HDMI_REG_GCP:
case HDMI_REG_PKT_GENERAL_CTRL:
case HDMI_REG_PKT_NULL_CTRL:
case HDMI_REG_AVI_INFOFRM_CTRL:
case HDMI_REG_PKT_HB(0) ... HDMI_REG_PKT_PB(HDMI_MAX_INFOFRAME_SIZE):
case HDMI_REG_AVI_DB1:
case HDMI_REG_AVI_DB2:
case HDMI_REG_AVI_DB3:
case HDMI_REG_AVI_DB4:
case HDMI_REG_AVI_DB5:
case HDMI_REG_AVI_CSUM:
case HDMI_REG_AVI_DB6:
case HDMI_REG_AVI_DB7:
case HDMI_REG_AVI_DB8:
case HDMI_REG_AVI_DB9:
case HDMI_REG_AVI_DB10:
case HDMI_REG_AVI_DB11:
case HDMI_REG_AVI_DB12:
case HDMI_REG_AVI_DB13:
return true;
default:
return false;
}
}
static bool it6263_hdmi_readable_reg(struct device *dev, unsigned int reg)
{
if (it6263_hdmi_writeable_reg(dev, reg))
return true;
switch (reg) {
case HDMI_REG_SYS_STATUS:
case HDMI_REG_DDC_STATUS:
case HDMI_REG_DDC_READFIFO:
return true;
default:
return false;
}
}
static bool it6263_hdmi_volatile_reg(struct device *dev, unsigned int reg)
{
switch (reg) {
case HDMI_REG_SW_RST:
case HDMI_REG_SYS_STATUS:
case HDMI_REG_DDC_STATUS:
case HDMI_REG_DDC_READFIFO:
return true;
default:
return false;
}
}
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/bits.h`, `linux/delay.h`, `linux/gpio/consumer.h`, `linux/hdmi.h`, `linux/i2c.h`, `linux/media-bus-format.h`, `linux/module.h`.
- Detected declarations: `struct it6263`, `function it6263_hdmi_writeable_reg`, `function it6263_hdmi_readable_reg`, `function it6263_hdmi_volatile_reg`, `function it6263_lvds_writeable_reg`, `function it6263_lvds_readable_reg`, `function it6263_lvds_volatile_reg`, `function it6263_parse_dt`, `function it6263_hw_reset`, `function it6263_lvds_set_i2c_addr`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.