drivers/staging/media/ipu7/ipu7-isys.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/ipu7/ipu7-isys.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/ipu7/ipu7-isys.h- Extension
.h- Size
- 3813 bytes
- Lines
- 141
- 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/irqreturn.hlinux/list.hlinux/mutex.hlinux/pm_qos.hlinux/spinlock_types.hlinux/types.hmedia/media-device.hmedia/v4l2-async.hmedia/v4l2-device.hmedia/v4l2-mediabus.habi/ipu7_fw_msg_abi.habi/ipu7_fw_isys_abi.hipu7.hipu7-isys-csi2.hipu7-isys-video.h
Detected Declarations
struct isys_fw_logstruct ipu7_isysstruct isys_fw_msgsstruct ipu7_isys_csi2_configstruct sensor_async_sd
Annotated Snippet
struct isys_fw_log {
struct mutex mutex; /* protect whole struct */
void *head;
void *addr;
u32 count; /* running counter of log */
u32 size; /* actual size of log content, in bits */
};
/*
* struct ipu7_isys
*
* @media_dev: Media device
* @v4l2_dev: V4L2 device
* @adev: ISYS bus device
* @power: Is ISYS powered on or not?
* @isr_bits: Which bits does the ISR handle?
* @power_lock: Serialise access to power (power state in general)
* @csi2_rx_ctrl_cached: cached shared value between all CSI2 receivers
* @streams_lock: serialise access to streams
* @streams: streams per firmware stream ID
* @syscom: fw communication layer context
* @ref_count: total number of callers fw open
* @mutex: serialise access isys video open/release related operations
* @stream_mutex: serialise stream start and stop, queueing requests
* @pdata: platform data pointer
* @csi2: CSI-2 receivers
*/
struct ipu7_isys {
struct media_device media_dev;
struct v4l2_device v4l2_dev;
struct ipu7_bus_device *adev;
int power;
spinlock_t power_lock; /* Serialise access to power */
u32 isr_csi2_mask;
u32 csi2_rx_ctrl_cached;
spinlock_t streams_lock;
struct ipu7_isys_stream streams[IPU_ISYS_MAX_STREAMS];
int streams_ref_count[IPU_ISYS_MAX_STREAMS];
u32 phy_rext_cal;
bool icache_prefetch;
bool csi2_cse_ipc_not_supported;
unsigned int ref_count;
unsigned int stream_opened;
struct mutex mutex; /* Serialise isys video open/release related */
struct mutex stream_mutex; /* Stream start, stop, queueing reqs */
struct ipu7_isys_pdata *pdata;
struct ipu7_isys_csi2 *csi2;
struct isys_fw_log *fw_log;
struct list_head requests;
struct pm_qos_request pm_qos;
spinlock_t listlock; /* Protect framebuflist */
struct list_head framebuflist;
struct list_head framebuflist_fw;
struct v4l2_async_notifier notifier;
struct ipu7_insys_config *subsys_config;
dma_addr_t subsys_config_dma_addr;
};
struct isys_fw_msgs {
union {
u64 dummy;
struct ipu7_insys_buffset frame;
struct ipu7_insys_stream_cfg stream;
} fw_msg;
struct list_head head;
dma_addr_t dma_addr;
};
struct ipu7_isys_csi2_config {
unsigned int nlanes;
unsigned int port;
enum v4l2_mbus_type bus_type;
};
struct sensor_async_sd {
struct v4l2_async_connection asc;
struct ipu7_isys_csi2_config csi2;
};
struct isys_fw_msgs *ipu7_get_fw_msg_buf(struct ipu7_isys_stream *stream);
void ipu7_put_fw_msg_buf(struct ipu7_isys *isys, uintptr_t data);
void ipu7_cleanup_fw_msg_bufs(struct ipu7_isys *isys);
int isys_isr_one(struct ipu7_bus_device *adev);
void ipu7_isys_setup_hw(struct ipu7_isys *isys);
Annotation
- Immediate include surface: `linux/irqreturn.h`, `linux/list.h`, `linux/mutex.h`, `linux/pm_qos.h`, `linux/spinlock_types.h`, `linux/types.h`, `media/media-device.h`, `media/v4l2-async.h`.
- Detected declarations: `struct isys_fw_log`, `struct ipu7_isys`, `struct isys_fw_msgs`, `struct ipu7_isys_csi2_config`, `struct sensor_async_sd`.
- 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.