drivers/gpu/drm/verisilicon/vs_primary_plane_regs.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/verisilicon/vs_primary_plane_regs.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/verisilicon/vs_primary_plane_regs.h- Extension
.h- Size
- 1907 bytes
- Lines
- 54
- 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
linux/bits.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef _VS_PRIMARY_PLANE_REGS_H_
#define _VS_PRIMARY_PLANE_REGS_H_
#include <linux/bits.h>
#define VSDC_FB_ADDRESS(n) (0x1400 + 0x4 * (n))
#define VSDC_FB_STRIDE(n) (0x1408 + 0x4 * (n))
#define VSDC_FB_CONFIG(n) (0x1518 + 0x4 * (n))
#define VSDC_FB_CONFIG_CLEAR_EN BIT(8)
#define VSDC_FB_CONFIG_ROT_MASK GENMASK(13, 11)
#define VSDC_FB_CONFIG_ROT(v) ((v) << 11)
#define VSDC_FB_CONFIG_YUV_SPACE_MASK GENMASK(16, 14)
#define VSDC_FB_CONFIG_YUV_SPACE(v) ((v) << 14)
#define VSDC_FB_CONFIG_TILE_MODE_MASK GENMASK(21, 17)
#define VSDC_FB_CONFIG_TILE_MODE(v) ((v) << 14)
#define VSDC_FB_CONFIG_SCALE_EN BIT(22)
#define VSDC_FB_CONFIG_SWIZZLE_MASK GENMASK(24, 23)
#define VSDC_FB_CONFIG_SWIZZLE(v) ((v) << 23)
#define VSDC_FB_CONFIG_UV_SWIZZLE_EN BIT(25)
#define VSDC_FB_CONFIG_FMT_MASK GENMASK(31, 26)
#define VSDC_FB_CONFIG_FMT(v) ((v) << 26)
#define VSDC_FB_SIZE(n) (0x1810 + 0x4 * (n))
/* Fill with value generated with VSDC_MAKE_PLANE_SIZE(w, h) */
#define VSDC_FB_CONFIG_EX(n) (0x1CC0 + 0x4 * (n))
#define VSDC_FB_CONFIG_EX_COMMIT BIT(12)
#define VSDC_FB_CONFIG_EX_FB_EN BIT(13)
#define VSDC_FB_CONFIG_EX_ZPOS_MASK GENMASK(18, 16)
#define VSDC_FB_CONFIG_EX_ZPOS(v) ((v) << 16)
#define VSDC_FB_CONFIG_EX_DISPLAY_ID_MASK GENMASK(19, 19)
#define VSDC_FB_CONFIG_EX_DISPLAY_ID(v) ((v) << 19)
#define VSDC_FB_TOP_LEFT(n) (0x24D8 + 0x4 * (n))
/* Fill with value generated with VSDC_MAKE_PLANE_POS(x, y) */
#define VSDC_FB_BOTTOM_RIGHT(n) (0x24E0 + 0x4 * (n))
/* Fill with value generated with VSDC_MAKE_PLANE_POS(x, y) */
#define VSDC_FB_BLEND_CONFIG(n) (0x2510 + 0x4 * (n))
#define VSDC_FB_BLEND_CONFIG_BLEND_DISABLE BIT(1)
#endif /* _VS_PRIMARY_PLANE_REGS_H_ */
Annotation
- Immediate include surface: `linux/bits.h`.
- 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.