drivers/media/platform/qcom/camss/camss-ispif.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/qcom/camss/camss-ispif.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/qcom/camss/camss-ispif.h- Extension
.h- Size
- 1718 bytes
- Lines
- 80
- 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
linux/clk.hmedia/media-entity.hmedia/v4l2-device.hmedia/v4l2-subdev.h
Detected Declarations
struct ispif_intf_cmd_regstruct ispif_linestruct ispif_devicestruct camss_subdev_resourcesenum ispif_intf
Annotated Snippet
struct ispif_intf_cmd_reg {
u32 cmd_0;
u32 cmd_1;
};
struct ispif_line {
struct ispif_device *ispif;
u8 id;
u8 csid_id;
u8 vfe_id;
enum ispif_intf interface;
struct v4l2_subdev subdev;
struct media_pad pads[MSM_ISPIF_PADS_NUM];
struct v4l2_mbus_framefmt fmt[MSM_ISPIF_PADS_NUM];
const u32 *formats;
unsigned int nformats;
};
struct ispif_device {
void __iomem *base;
void __iomem *base_clk_mux;
u32 irq;
char irq_name[30];
struct camss_clock *clock;
int nclocks;
struct camss_clock *clock_for_reset;
int nclocks_for_reset;
struct completion reset_complete[MSM_ISPIF_VFE_NUM];
int power_count;
struct mutex power_lock;
struct ispif_intf_cmd_reg intf_cmd[MSM_ISPIF_VFE_NUM];
struct mutex config_lock;
unsigned int line_num;
struct ispif_line *line;
struct camss *camss;
};
struct camss_subdev_resources;
int msm_ispif_subdev_init(struct camss *camss,
const struct camss_subdev_resources *res);
int msm_ispif_register_entities(struct ispif_device *ispif,
struct v4l2_device *v4l2_dev);
void msm_ispif_unregister_entities(struct ispif_device *ispif);
#endif /* QC_MSM_CAMSS_ISPIF_H */
Annotation
- Immediate include surface: `linux/clk.h`, `media/media-entity.h`, `media/v4l2-device.h`, `media/v4l2-subdev.h`.
- Detected declarations: `struct ispif_intf_cmd_reg`, `struct ispif_line`, `struct ispif_device`, `struct camss_subdev_resources`, `enum ispif_intf`.
- 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.