drivers/gpu/drm/i915/display/vlv_sideband.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/vlv_sideband.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/vlv_sideband.c- Extension
.c- Size
- 4488 bytes
- Lines
- 175
- 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_print.hintel_display_core.hintel_display_types.hintel_dpio_phy.hintel_parent.hvlv_sideband.h
Detected Declarations
function vlv_bunit_getfunction vlv_bunit_readfunction vlv_bunit_writefunction vlv_bunit_putfunction vlv_cck_getfunction vlv_cck_readfunction vlv_cck_writefunction vlv_cck_putfunction vlv_ccu_getfunction vlv_ccu_readfunction vlv_ccu_writefunction vlv_ccu_putfunction vlv_dpio_getfunction vlv_dpio_phy_to_unitfunction vlv_dpio_readfunction vlv_dpio_writefunction vlv_dpio_putfunction vlv_flisdsi_getfunction vlv_flisdsi_readfunction vlv_flisdsi_writefunction vlv_flisdsi_putfunction vlv_nc_getfunction vlv_nc_readfunction vlv_nc_putfunction vlv_punit_getfunction vlv_punit_readfunction vlv_punit_writefunction vlv_punit_put
Annotated Snippet
// SPDX-License-Identifier: MIT
/* Copyright © 2025 Intel Corporation */
#include <drm/drm_print.h>
#include "intel_display_core.h"
#include "intel_display_types.h"
#include "intel_dpio_phy.h"
#include "intel_parent.h"
#include "vlv_sideband.h"
void vlv_bunit_get(struct intel_display *display)
{
intel_parent_vlv_iosf_get(display, BIT(VLV_IOSF_SB_BUNIT));
}
u32 vlv_bunit_read(struct intel_display *display, u32 reg)
{
return intel_parent_vlv_iosf_read(display, VLV_IOSF_SB_BUNIT, reg);
}
void vlv_bunit_write(struct intel_display *display, u32 reg, u32 val)
{
intel_parent_vlv_iosf_write(display, VLV_IOSF_SB_BUNIT, reg, val);
}
void vlv_bunit_put(struct intel_display *display)
{
intel_parent_vlv_iosf_put(display, BIT(VLV_IOSF_SB_BUNIT));
}
void vlv_cck_get(struct intel_display *display)
{
intel_parent_vlv_iosf_get(display, BIT(VLV_IOSF_SB_CCK));
}
u32 vlv_cck_read(struct intel_display *display, u32 reg)
{
return intel_parent_vlv_iosf_read(display, VLV_IOSF_SB_CCK, reg);
}
void vlv_cck_write(struct intel_display *display, u32 reg, u32 val)
{
intel_parent_vlv_iosf_write(display, VLV_IOSF_SB_CCK, reg, val);
}
void vlv_cck_put(struct intel_display *display)
{
intel_parent_vlv_iosf_put(display, BIT(VLV_IOSF_SB_CCK));
}
void vlv_ccu_get(struct intel_display *display)
{
intel_parent_vlv_iosf_get(display, BIT(VLV_IOSF_SB_CCU));
}
u32 vlv_ccu_read(struct intel_display *display, u32 reg)
{
return intel_parent_vlv_iosf_read(display, VLV_IOSF_SB_CCU, reg);
}
void vlv_ccu_write(struct intel_display *display, u32 reg, u32 val)
{
intel_parent_vlv_iosf_write(display, VLV_IOSF_SB_CCU, reg, val);
}
void vlv_ccu_put(struct intel_display *display)
{
intel_parent_vlv_iosf_put(display, BIT(VLV_IOSF_SB_CCU));
}
void vlv_dpio_get(struct intel_display *display)
{
intel_parent_vlv_iosf_get(display, BIT(VLV_IOSF_SB_DPIO) | BIT(VLV_IOSF_SB_DPIO_2));
}
static enum vlv_iosf_sb_unit vlv_dpio_phy_to_unit(struct intel_display *display,
enum dpio_phy phy)
{
/*
* IOSF_PORT_DPIO: VLV x2 PHY (DP/HDMI B and C), CHV x1 PHY (DP/HDMI D)
* IOSF_PORT_DPIO_2: CHV x2 PHY (DP/HDMI B and C)
*/
if (display->platform.cherryview)
return phy == DPIO_PHY0 ? VLV_IOSF_SB_DPIO_2 : VLV_IOSF_SB_DPIO;
else
return VLV_IOSF_SB_DPIO;
}
u32 vlv_dpio_read(struct intel_display *display, enum dpio_phy phy, int reg)
Annotation
- Immediate include surface: `drm/drm_print.h`, `intel_display_core.h`, `intel_display_types.h`, `intel_dpio_phy.h`, `intel_parent.h`, `vlv_sideband.h`.
- Detected declarations: `function vlv_bunit_get`, `function vlv_bunit_read`, `function vlv_bunit_write`, `function vlv_bunit_put`, `function vlv_cck_get`, `function vlv_cck_read`, `function vlv_cck_write`, `function vlv_cck_put`, `function vlv_ccu_get`, `function vlv_ccu_read`.
- 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.