drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.h- Extension
.h- Size
- 1910 bytes
- Lines
- 91
- 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/videobuf2-v4l2.hsun6i_isp_capture.hsun6i_isp_params.hsun6i_isp_proc.h
Detected Declarations
struct sun6i_isp_bufferstruct sun6i_isp_v4l2struct sun6i_isp_tablestruct sun6i_isp_tablesstruct sun6i_isp_devicestruct sun6i_isp_variantenum sun6i_isp_port
Annotated Snippet
struct sun6i_isp_buffer {
struct vb2_v4l2_buffer v4l2_buffer;
struct list_head list;
};
struct sun6i_isp_v4l2 {
struct v4l2_device v4l2_dev;
struct media_device media_dev;
};
struct sun6i_isp_table {
void *data;
dma_addr_t address;
unsigned int size;
};
struct sun6i_isp_tables {
struct sun6i_isp_table load;
struct sun6i_isp_table save;
struct sun6i_isp_table lut;
struct sun6i_isp_table drc;
struct sun6i_isp_table stats;
};
struct sun6i_isp_device {
struct device *dev;
struct sun6i_isp_tables tables;
struct sun6i_isp_v4l2 v4l2;
struct sun6i_isp_proc proc;
struct sun6i_isp_capture capture;
struct sun6i_isp_params params;
struct regmap *regmap;
struct clk *clock_mod;
struct clk *clock_ram;
struct reset_control *reset;
spinlock_t state_lock; /* State helpers lock. */
};
struct sun6i_isp_variant {
unsigned int table_load_save_size;
unsigned int table_lut_size;
unsigned int table_drc_size;
unsigned int table_stats_size;
};
/* Helpers */
u32 sun6i_isp_load_read(struct sun6i_isp_device *isp_dev, u32 offset);
void sun6i_isp_load_write(struct sun6i_isp_device *isp_dev, u32 offset,
u32 value);
u32 sun6i_isp_address_value(dma_addr_t address);
/* State */
void sun6i_isp_state_update(struct sun6i_isp_device *isp_dev, bool ready_hold);
/* Tables */
void sun6i_isp_tables_configure(struct sun6i_isp_device *isp_dev);
#endif
Annotation
- Immediate include surface: `media/v4l2-device.h`, `media/videobuf2-v4l2.h`, `sun6i_isp_capture.h`, `sun6i_isp_params.h`, `sun6i_isp_proc.h`.
- Detected declarations: `struct sun6i_isp_buffer`, `struct sun6i_isp_v4l2`, `struct sun6i_isp_table`, `struct sun6i_isp_tables`, `struct sun6i_isp_device`, `struct sun6i_isp_variant`, `enum sun6i_isp_port`.
- 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.