drivers/gpu/drm/imagination/pvr_rogue_riscv.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imagination/pvr_rogue_riscv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/imagination/pvr_rogue_riscv.h- Extension
.h- Size
- 1225 bytes
- Lines
- 42
- 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.
Dependency Surface
pvr_rogue_cr_defs.hlinux/bitops.hlinux/sizes.hlinux/types.h
Detected Declarations
enum rogue_riscvfw_region
Annotated Snippet
#ifndef PVR_ROGUE_RISCV_H
#define PVR_ROGUE_RISCV_H
#include "pvr_rogue_cr_defs.h"
#include <linux/bitops.h>
#include <linux/sizes.h>
#include <linux/types.h>
#define ROGUE_RISCVFW_REGION_SIZE SZ_256M
#define ROGUE_RISCVFW_REGION_SHIFT __ffs(ROGUE_RISCVFW_REGION_SIZE)
enum rogue_riscvfw_region {
ROGUE_RISCV_REGION__RESERVED_0 = 0,
ROGUE_RISCV_REGION__RESERVED_1,
ROGUE_RISCV_REGION_SOCIF,
ROGUE_RISCV_REGION__RESERVED_3,
ROGUE_RISCV_REGION__RESERVED_4,
ROGUE_RISCV_REGION_BOOTLDR_DATA,
ROGUE_RISCV_REGION_SHARED_CACHED_DATA,
ROGUE_RISCV_REGION__RESERVED_7,
ROGUE_RISCV_REGION_COREMEM,
ROGUE_RISCV_REGION__RESERVED_9,
ROGUE_RISCV_REGION__RESERVED_A,
ROGUE_RISCV_REGION__RESERVED_B,
ROGUE_RISCV_REGION_BOOTLDR_CODE,
ROGUE_RISCV_REGION_SHARED_UNCACHED_DATA,
ROGUE_RISCV_REGION__RESERVED_E,
ROGUE_RISCV_REGION__RESERVED_F,
ROGUE_RISCV_REGION__COUNT,
};
#define ROGUE_RISCVFW_REGION_BASE(r) ((u32)(ROGUE_RISCV_REGION_##r) << ROGUE_RISCVFW_REGION_SHIFT)
#define ROGUE_RISCVFW_REGION_REMAP_CR(r) \
(ROGUE_CR_FWCORE_ADDR_REMAP_CONFIG0 + (u32)(ROGUE_RISCV_REGION_##r) * 8U)
#endif /* PVR_ROGUE_RISCV_H */
Annotation
- Immediate include surface: `pvr_rogue_cr_defs.h`, `linux/bitops.h`, `linux/sizes.h`, `linux/types.h`.
- Detected declarations: `enum rogue_riscvfw_region`.
- 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.