drivers/staging/media/atomisp/pci/ia_css_metadata.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/ia_css_metadata.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/ia_css_metadata.h- Extension
.h- Size
- 2051 bytes
- Lines
- 69
- 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/build_bug.htype_support.hia_css_types.hia_css_stream_format.h
Detected Declarations
struct ia_css_metadata_configstruct ia_css_metadata_infostruct ia_css_metadata
Annotated Snippet
struct ia_css_metadata_config {
enum atomisp_input_format data_type; /** Data type of CSI-2 embedded
data. The default value is ATOMISP_INPUT_FORMAT_EMBEDDED. For
certain sensors, user can choose non-default data type for embedded
data. */
struct ia_css_resolution resolution; /** Resolution */
};
struct ia_css_metadata_info {
struct ia_css_resolution resolution; /** Resolution */
u32 stride; /** Stride in bytes */
u32 size; /** Total size in bytes */
};
struct ia_css_metadata {
struct ia_css_metadata_info info; /** Layout info */
ia_css_ptr address; /** CSS virtual address */
u32 exp_id;
/** Exposure ID, see ia_css_event_public.h for more detail */
};
#define SIZE_OF_IA_CSS_METADATA_STRUCT sizeof(struct ia_css_metadata)
static_assert(sizeof(struct ia_css_metadata) == SIZE_OF_IA_CSS_METADATA_STRUCT);
/* @brief Allocate a metadata buffer.
* @param[in] metadata_info Metadata info struct, contains details on metadata buffers.
* @return Pointer of metadata buffer or NULL (if error)
*
* This function allocates a metadata buffer according to the properties
* specified in the metadata_info struct.
*/
struct ia_css_metadata *
ia_css_metadata_allocate(const struct ia_css_metadata_info *metadata_info);
/* @brief Free a metadata buffer.
*
* @param[in] metadata Pointer of metadata buffer.
* @return None
*
* This function frees a metadata buffer.
*/
void
ia_css_metadata_free(struct ia_css_metadata *metadata);
#endif /* __IA_CSS_METADATA_H */
Annotation
- Immediate include surface: `linux/build_bug.h`, `type_support.h`, `ia_css_types.h`, `ia_css_stream_format.h`.
- Detected declarations: `struct ia_css_metadata_config`, `struct ia_css_metadata_info`, `struct ia_css_metadata`.
- 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.