drivers/media/platform/sunxi/sun8i-rotate/sun8i-rotate.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/sunxi/sun8i-rotate/sun8i-rotate.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/sunxi/sun8i-rotate/sun8i-rotate.h- Extension
.h- Size
- 3476 bytes
- Lines
- 136
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
media/v4l2-ctrls.hmedia/v4l2-device.hmedia/v4l2-mem2mem.hmedia/videobuf2-v4l2.hmedia/videobuf2-dma-contig.hlinux/platform_device.h
Detected Declarations
struct rotate_ctxstruct rotate_dev
Annotated Snippet
struct rotate_ctx {
struct v4l2_fh fh;
struct rotate_dev *dev;
struct v4l2_pix_format src_fmt;
struct v4l2_pix_format dst_fmt;
struct v4l2_ctrl_handler ctrl_handler;
u32 hflip;
u32 vflip;
u32 rotate;
};
struct rotate_dev {
struct v4l2_device v4l2_dev;
struct video_device vfd;
struct device *dev;
struct v4l2_m2m_dev *m2m_dev;
/* Device file mutex */
struct mutex dev_mutex;
void __iomem *base;
struct clk *bus_clk;
struct clk *mod_clk;
struct reset_control *rstc;
};
#endif
Annotation
- Immediate include surface: `media/v4l2-ctrls.h`, `media/v4l2-device.h`, `media/v4l2-mem2mem.h`, `media/videobuf2-v4l2.h`, `media/videobuf2-dma-contig.h`, `linux/platform_device.h`.
- Detected declarations: `struct rotate_ctx`, `struct rotate_dev`.
- Atlas domain: Driver Families / drivers/media.
- 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.