drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.h- Extension
.h- Size
- 1498 bytes
- Lines
- 67
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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-device.hmedia/v4l2-fwnode.h
Detected Declarations
struct sun6i_isp_devicestruct sun6i_isp_proc_formatstruct sun6i_isp_proc_sourcestruct sun6i_isp_proc_async_subdevstruct sun6i_isp_procenum sun6i_isp_proc_pad
Annotated Snippet
struct sun6i_isp_proc_format {
u32 mbus_code;
u8 input_format;
u8 input_yuv_seq;
};
struct sun6i_isp_proc_source {
struct v4l2_subdev *subdev;
struct v4l2_fwnode_endpoint endpoint;
bool expected;
};
struct sun6i_isp_proc_async_subdev {
struct v4l2_async_connection async_subdev;
struct sun6i_isp_proc_source *source;
};
struct sun6i_isp_proc {
struct v4l2_subdev subdev;
struct media_pad pads[3];
struct v4l2_async_notifier notifier;
struct v4l2_mbus_framefmt mbus_format;
struct mutex lock; /* Mbus format lock. */
struct sun6i_isp_proc_source source_csi0;
struct sun6i_isp_proc_source source_csi1;
};
/* Helpers */
void sun6i_isp_proc_dimensions(struct sun6i_isp_device *isp_dev,
unsigned int *width, unsigned int *height);
/* Format */
const struct sun6i_isp_proc_format *sun6i_isp_proc_format_find(u32 mbus_code);
/* Proc */
int sun6i_isp_proc_setup(struct sun6i_isp_device *isp_dev);
void sun6i_isp_proc_cleanup(struct sun6i_isp_device *isp_dev);
#endif
Annotation
- Immediate include surface: `media/v4l2-device.h`, `media/v4l2-fwnode.h`.
- Detected declarations: `struct sun6i_isp_device`, `struct sun6i_isp_proc_format`, `struct sun6i_isp_proc_source`, `struct sun6i_isp_proc_async_subdev`, `struct sun6i_isp_proc`, `enum sun6i_isp_proc_pad`.
- Atlas domain: Driver Families / drivers/staging.
- 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.