drivers/gpu/drm/i915/display/intel_gvt_api.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_gvt_api.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_gvt_api.c- Extension
.c- Size
- 1309 bytes
- Lines
- 44
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hintel_display_core.hintel_display_regs.hintel_gvt_api.h
Detected Declarations
function intel_display_device_pipe_offsetfunction intel_display_device_trans_offsetfunction intel_display_device_cursor_offsetfunction intel_display_device_mmio_basefunction intel_display_device_pipe_valid
Annotated Snippet
// SPDX-License-Identifier: MIT
/*
* Copyright © 2025 Intel Corporation
*/
#include <linux/types.h>
#include "intel_display_core.h"
#include "intel_display_regs.h"
#include "intel_gvt_api.h"
u32 intel_display_device_pipe_offset(struct intel_display *display, enum pipe pipe)
{
return INTEL_DISPLAY_DEVICE_PIPE_OFFSET(display, pipe);
}
EXPORT_SYMBOL_NS_GPL(intel_display_device_pipe_offset, "I915_GVT");
u32 intel_display_device_trans_offset(struct intel_display *display, enum transcoder trans)
{
return INTEL_DISPLAY_DEVICE_TRANS_OFFSET(display, trans);
}
EXPORT_SYMBOL_NS_GPL(intel_display_device_trans_offset, "I915_GVT");
u32 intel_display_device_cursor_offset(struct intel_display *display, enum pipe pipe)
{
return INTEL_DISPLAY_DEVICE_CURSOR_OFFSET(display, pipe);
}
EXPORT_SYMBOL_NS_GPL(intel_display_device_cursor_offset, "I915_GVT");
u32 intel_display_device_mmio_base(struct intel_display *display)
{
return DISPLAY_MMIO_BASE(display);
}
EXPORT_SYMBOL_NS_GPL(intel_display_device_mmio_base, "I915_GVT");
bool intel_display_device_pipe_valid(struct intel_display *display, enum pipe pipe)
{
if (pipe < PIPE_A || pipe >= I915_MAX_PIPES)
return false;
return DISPLAY_RUNTIME_INFO(display)->pipe_mask & BIT(pipe);
}
EXPORT_SYMBOL_NS_GPL(intel_display_device_pipe_valid, "I915_GVT");
Annotation
- Immediate include surface: `linux/types.h`, `intel_display_core.h`, `intel_display_regs.h`, `intel_gvt_api.h`.
- Detected declarations: `function intel_display_device_pipe_offset`, `function intel_display_device_trans_offset`, `function intel_display_device_cursor_offset`, `function intel_display_device_mmio_base`, `function intel_display_device_pipe_valid`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: integration 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.