drivers/staging/media/ipu7/ipu7-isys-csi2.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/ipu7/ipu7-isys-csi2.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/ipu7/ipu7-isys-csi2.h- Extension
.h- Size
- 1841 bytes
- Lines
- 65
- 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
linux/container_of.hlinux/types.hipu7-isys-subdev.hipu7-isys-video.h
Detected Declarations
struct ipu7_isysstruct ipu7_isys_csi2_pdatastruct ipu7_isys_streamstruct ipu7_isys_csi2
Annotated Snippet
struct ipu7_isys_csi2 {
struct ipu7_isys_subdev asd;
struct ipu7_isys_csi2_pdata *pdata;
struct ipu7_isys *isys;
struct ipu7_isys_video av[IPU7_NR_OF_CSI2_SRC_PADS];
void __iomem *base;
u32 receiver_errors;
u32 legacy_irq_mask;
unsigned int nlanes;
unsigned int port;
unsigned int phy_mode;
unsigned int stream_count;
};
#define ipu7_isys_subdev_to_csi2(__sd) \
container_of(__sd, struct ipu7_isys_csi2, asd)
#define to_ipu7_isys_csi2(__asd) container_of(__asd, struct ipu7_isys_csi2, asd)
s64 ipu7_isys_csi2_get_link_freq(struct ipu7_isys_csi2 *csi2);
int ipu7_isys_csi2_init(struct ipu7_isys_csi2 *csi2, struct ipu7_isys *isys,
void __iomem *base, unsigned int index);
void ipu7_isys_csi2_cleanup(struct ipu7_isys_csi2 *csi2);
void ipu7_isys_csi2_sof_event_by_stream(struct ipu7_isys_stream *stream);
void ipu7_isys_csi2_eof_event_by_stream(struct ipu7_isys_stream *stream);
int ipu7_isys_csi2_get_remote_desc(u32 source_stream,
struct ipu7_isys_csi2 *csi2,
struct media_entity *source_entity,
struct v4l2_mbus_frame_desc_entry *entry,
int *nr_queues);
#endif /* IPU7_ISYS_CSI2_H */
Annotation
- Immediate include surface: `linux/container_of.h`, `linux/types.h`, `ipu7-isys-subdev.h`, `ipu7-isys-video.h`.
- Detected declarations: `struct ipu7_isys`, `struct ipu7_isys_csi2_pdata`, `struct ipu7_isys_stream`, `struct ipu7_isys_csi2`.
- 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.