drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c- Extension
.c- Size
- 4682 bytes
- Lines
- 207
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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
priv.hagp.hcore/option.hcore/pci.h
Detected Declarations
function filesfunction nvkm_pci_rd32function nvkm_pci_wr08function nvkm_pci_wr32function nvkm_pci_maskfunction nvkm_pci_rom_shadowfunction nvkm_pci_finifunction nvkm_pci_preinitfunction nvkm_pci_oneinitfunction nvkm_pci_initfunction nvkm_pci_dtorfunction nvkm_pci_new_
Annotated Snippet
switch (device->chipset) {
case 0xaa:
/* reported broken, nv also disable it */
break;
default:
pci->msi = true;
break;
}
}
#ifdef __BIG_ENDIAN
pci->msi = false;
#endif
pci->msi = nvkm_boolopt(device->cfgopt, "NvMSI", pci->msi);
if (pci->msi && func->msi_rearm) {
pci->msi = pci_enable_msi(pci->pdev) == 0;
if (pci->msi)
nvkm_debug(&pci->subdev, "MSI enabled\n");
} else {
pci->msi = false;
}
return 0;
}
Annotation
- Immediate include surface: `priv.h`, `agp.h`, `core/option.h`, `core/pci.h`.
- Detected declarations: `function files`, `function nvkm_pci_rd32`, `function nvkm_pci_wr08`, `function nvkm_pci_wr32`, `function nvkm_pci_mask`, `function nvkm_pci_rom_shadow`, `function nvkm_pci_fini`, `function nvkm_pci_preinit`, `function nvkm_pci_oneinit`, `function nvkm_pci_init`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.