drivers/media/pci/intel/ipu6/ipu6-isys.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/intel/ipu6/ipu6-isys.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/intel/ipu6/ipu6-isys.h- Extension
.h- Size
- 5434 bytes
- Lines
- 201
- 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/irqreturn.hlinux/list.hlinux/mutex.hlinux/pm_qos.hlinux/spinlock_types.hlinux/types.hmedia/media-device.hmedia/v4l2-async.hmedia/v4l2-device.hipu6.hipu6-fw-isys.hipu6-isys-csi2.hipu6-isys-video.h
Detected Declarations
struct ipu6_bus_devicestruct ltr_didstruct isys_iwake_watermarkstruct ipu6_isys_csi2_configstruct sensor_async_sdstruct ipu6_isysstruct isys_fw_msgs
Annotated Snippet
struct ltr_did {
union {
u32 value;
struct {
u8 val0;
u8 val1;
u8 val2;
u8 val3;
} bits;
} lut_ltr;
union {
u32 value;
struct {
u8 th0;
u8 th1;
u8 th2;
u8 th3;
} bits;
} lut_fill_time;
};
struct isys_iwake_watermark {
bool iwake_enabled;
bool force_iwake_disable;
u32 iwake_threshold;
u64 isys_pixelbuffer_datarate;
struct ltr_did ltrdid;
struct mutex mutex; /* protect whole struct */
struct ipu6_isys *isys;
struct list_head video_list;
};
struct ipu6_isys_csi2_config {
u32 nlanes;
u32 port;
};
struct sensor_async_sd {
struct v4l2_async_connection asc;
struct ipu6_isys_csi2_config csi2;
};
/*
* struct ipu6_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
* @fwcom: fw communication layer private pointer
* or optional external library private pointer
* @phy_termcal_val: the termination calibration value, only used for DWC PHY
* @need_reset: Isys requires d0i0->i3 transition
* @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 ipu6_isys {
struct media_device media_dev;
struct v4l2_device v4l2_dev;
struct ipu6_bus_device *adev;
int power;
spinlock_t power_lock;
u32 isr_csi2_bits;
u32 csi2_rx_ctrl_cached;
spinlock_t streams_lock;
struct ipu6_isys_stream streams[IPU6_ISYS_MAX_STREAMS];
int streams_ref_count[IPU6_ISYS_MAX_STREAMS];
void *fwcom;
u32 phy_termcal_val;
bool need_reset;
bool icache_prefetch;
bool csi2_cse_ipc_not_supported;
unsigned int ref_count;
unsigned int stream_opened;
unsigned int sensor_type;
struct mutex mutex;
struct mutex stream_mutex;
struct ipu6_isys_pdata *pdata;
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 ipu6_bus_device`, `struct ltr_did`, `struct isys_iwake_watermark`, `struct ipu6_isys_csi2_config`, `struct sensor_async_sd`, `struct ipu6_isys`, `struct isys_fw_msgs`.
- 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.