drivers/gpu/drm/xe/display/xe_display_pcode.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/display/xe_display_pcode.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/display/xe_display_pcode.c- Extension
.c- Size
- 1183 bytes
- Lines
- 39
- 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/intel/display_parent_interface.hxe_device.hxe_pcode.h
Detected Declarations
function xe_display_pcode_readfunction xe_display_pcode_write_timeoutfunction xe_display_pcode_request
Annotated Snippet
// SPDX-License-Identifier: MIT
/* Copyright © 2026 Intel Corporation */
#include <drm/intel/display_parent_interface.h>
#include "xe_device.h"
#include "xe_pcode.h"
static int xe_display_pcode_read(struct drm_device *drm, u32 mbox, u32 *val, u32 *val1)
{
struct xe_device *xe = to_xe_device(drm);
struct xe_tile *tile = xe_device_get_root_tile(xe);
return xe_pcode_read(tile, mbox, val, val1);
}
static int xe_display_pcode_write_timeout(struct drm_device *drm, u32 mbox, u32 val, int timeout_ms)
{
struct xe_device *xe = to_xe_device(drm);
struct xe_tile *tile = xe_device_get_root_tile(xe);
return xe_pcode_write_timeout(tile, mbox, val, timeout_ms);
}
static int xe_display_pcode_request(struct drm_device *drm, u32 mbox, u32 request,
u32 reply_mask, u32 reply, int timeout_base_ms)
{
struct xe_device *xe = to_xe_device(drm);
struct xe_tile *tile = xe_device_get_root_tile(xe);
return xe_pcode_request(tile, mbox, request, reply_mask, reply, timeout_base_ms);
}
const struct intel_display_pcode_interface xe_display_pcode_interface = {
.read = xe_display_pcode_read,
.write = xe_display_pcode_write_timeout,
.request = xe_display_pcode_request,
};
Annotation
- Immediate include surface: `drm/intel/display_parent_interface.h`, `xe_device.h`, `xe_pcode.h`.
- Detected declarations: `function xe_display_pcode_read`, `function xe_display_pcode_write_timeout`, `function xe_display_pcode_request`.
- 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.