drivers/gpu/drm/amd/display/dc/dce/dmub_outbox.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dce/dmub_outbox.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dce/dmub_outbox.c- Extension
.c- Size
- 1894 bytes
- Lines
- 53
- 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
dc.hdc_dmub_srv.hdmub_outbox.hdmub/inc/dmub_cmd.h
Detected Declarations
function files
Annotated Snippet
#include "dc.h"
#include "dc_dmub_srv.h"
#include "dmub_outbox.h"
#include "dmub/inc/dmub_cmd.h"
/*
* Function: dmub_enable_outbox_notification
*
* @brief
* Sends inbox cmd to dmub for enabling outbox notifications to x86.
*
* @param
* [in] dmub_srv: dmub_srv structure
*/
void dmub_enable_outbox_notification(struct dc_dmub_srv *dmub_srv)
{
union dmub_rb_cmd cmd;
memset(&cmd, 0x0, sizeof(cmd));
cmd.outbox1_enable.header.type = DMUB_CMD__OUTBOX1_ENABLE;
cmd.outbox1_enable.header.sub_type = 0;
cmd.outbox1_enable.header.payload_bytes =
sizeof(cmd.outbox1_enable) -
sizeof(cmd.outbox1_enable.header);
cmd.outbox1_enable.enable = true;
dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT);
}
Annotation
- Immediate include surface: `dc.h`, `dc_dmub_srv.h`, `dmub_outbox.h`, `dmub/inc/dmub_cmd.h`.
- Detected declarations: `function files`.
- 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.