drivers/gpu/drm/i915/display/intel_opregion.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_opregion.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_opregion.c- Extension
.c- Size
- 37201 bytes
- Lines
- 1307
- 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.
- 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/acpi.hlinux/debugfs.hlinux/dmi.hlinux/iopoll.hacpi/video.hdrm/drm_edid.hdrm/drm_file.hdrm/drm_print.hdrm/intel/pci_config.hintel_acpi.hintel_backlight.hintel_display_core.hintel_display_types.hintel_opregion.h
Detected Declarations
struct opregion_headerstruct opregion_acpistruct opregion_swscistruct opregion_aslestruct opregion_asle_extstruct intel_opregionfunction check_swsci_functionfunction swscifunction intel_opregion_notify_encoderfunction intel_opregion_notify_adapterfunction asle_set_backlightfunction asle_set_als_illumfunction asle_set_pwm_freqfunction asle_set_pfitfunction asle_set_supported_rotation_anglesfunction asle_set_button_arrayfunction asle_set_convertiblefunction asle_set_dockingfunction asle_isct_statefunction asle_workfunction intel_opregion_asle_presentfunction intel_opregion_asle_intrfunction intel_opregion_video_eventfunction set_didfunction intel_didl_outputsfunction intel_setup_cadlsfunction swsci_setupfunction intel_no_opregion_vbt_callbackfunction intel_opregion_setupfunction intel_use_opregion_panel_type_callbackfunction intel_opregion_get_panel_typefunction intel_opregion_vbt_presentfunction intel_opregion_headless_skufunction intel_opregion_registerfunction intel_opregion_resume_displayfunction intel_opregion_resumefunction intel_opregion_suspend_displayfunction intel_opregion_suspendfunction intel_opregion_unregisterfunction intel_opregion_cleanupfunction intel_opregion_showfunction intel_opregion_debugfs_register
Annotated Snippet
struct opregion_header {
u8 signature[16];
u32 size;
struct {
u8 rsvd;
u8 revision;
u8 minor;
u8 major;
} __packed over;
u8 bios_ver[32];
u8 vbios_ver[16];
u8 driver_ver[16];
u32 mboxes;
u32 driver_model;
u32 pcon;
u8 dver[32];
u8 rsvd[124];
} __packed;
/* OpRegion mailbox #1: public ACPI methods */
struct opregion_acpi {
u32 drdy; /* driver readiness */
u32 csts; /* notification status */
u32 cevt; /* current event */
u8 rsvd1[20];
u32 didl[8]; /* supported display devices ID list */
u32 cpdl[8]; /* currently presented display list */
u32 cadl[8]; /* currently active display list */
u32 nadl[8]; /* next active devices list */
u32 aslp; /* ASL sleep time-out */
u32 tidx; /* toggle table index */
u32 chpd; /* current hotplug enable indicator */
u32 clid; /* current lid state*/
u32 cdck; /* current docking state */
u32 sxsw; /* Sx state resume */
u32 evts; /* ASL supported events */
u32 cnot; /* current OS notification */
u32 nrdy; /* driver status */
u32 did2[7]; /* extended supported display devices ID list */
u32 cpd2[7]; /* extended attached display devices list */
u8 rsvd2[4];
} __packed;
/* OpRegion mailbox #2: SWSCI */
struct opregion_swsci {
u32 scic; /* SWSCI command|status|data */
u32 parm; /* command parameters */
u32 dslp; /* driver sleep time-out */
u8 rsvd[244];
} __packed;
/* OpRegion mailbox #3: ASLE */
struct opregion_asle {
u32 ardy; /* driver readiness */
u32 aslc; /* ASLE interrupt command */
u32 tche; /* technology enabled indicator */
u32 alsi; /* current ALS illuminance reading */
u32 bclp; /* backlight brightness to set */
u32 pfit; /* panel fitting state */
u32 cblv; /* current brightness level */
u16 bclm[20]; /* backlight level duty cycle mapping table */
u32 cpfm; /* current panel fitting mode */
u32 epfm; /* enabled panel fitting modes */
u8 plut[74]; /* panel LUT and identifier */
u32 pfmb; /* PWM freq and min brightness */
u32 cddv; /* color correction default values */
u32 pcft; /* power conservation features */
u32 srot; /* supported rotation angles */
u32 iuer; /* IUER events */
u64 fdss;
u32 fdsp;
u32 stat;
u64 rvda; /* Physical (2.0) or relative from opregion (2.1+)
* address of raw VBT data. */
u32 rvds; /* Size of raw vbt data */
u8 rsvd[58];
} __packed;
/* OpRegion mailbox #5: ASLE ext */
struct opregion_asle_ext {
u32 phed; /* Panel Header */
u8 bddc[256]; /* Panel EDID */
u8 rsvd[764];
} __packed;
/* Driver readiness indicator */
#define ASLE_ARDY_READY (1 << 0)
#define ASLE_ARDY_NOT_READY (0 << 0)
/* ASLE Interrupt Command (ASLC) bits */
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/debugfs.h`, `linux/dmi.h`, `linux/iopoll.h`, `acpi/video.h`, `drm/drm_edid.h`, `drm/drm_file.h`, `drm/drm_print.h`.
- Detected declarations: `struct opregion_header`, `struct opregion_acpi`, `struct opregion_swsci`, `struct opregion_asle`, `struct opregion_asle_ext`, `struct intel_opregion`, `function check_swsci_function`, `function swsci`, `function intel_opregion_notify_encoder`, `function intel_opregion_notify_adapter`.
- 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.