drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_local.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_local.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/sp_local.h- Extension
.h- Size
- 2176 bytes
- Lines
- 68
- 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.
Dependency Surface
type_support.hsp_global.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __SP_LOCAL_H_INCLUDED__
#define __SP_LOCAL_H_INCLUDED__
#include <type_support.h>
#include "sp_global.h"
#define sp_address_of(var) (HIVE_ADDR_ ## var)
/*
* deprecated
*/
#define store_sp_int(var, value) \
sp_dmem_store_uint32(SP0_ID, (unsigned int)sp_address_of(var), \
(uint32_t)(value))
#define store_sp_ptr(var, value) \
sp_dmem_store_uint32(SP0_ID, (unsigned int)sp_address_of(var), \
(uint32_t)(value))
#define load_sp_uint(var) \
sp_dmem_load_uint32(SP0_ID, (unsigned int)sp_address_of(var))
#define load_sp_array_uint8(array_name, index) \
sp_dmem_load_uint8(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint8_t))
#define load_sp_array_uint16(array_name, index) \
sp_dmem_load_uint16(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint16_t))
#define load_sp_array_uint(array_name, index) \
sp_dmem_load_uint32(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint32_t))
#define store_sp_var(var, data, bytes) \
sp_dmem_store(SP0_ID, (unsigned int)sp_address_of(var), data, bytes)
#define store_sp_array_uint8(array_name, index, value) \
sp_dmem_store_uint8(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint8_t), value)
#define store_sp_array_uint16(array_name, index, value) \
sp_dmem_store_uint16(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint16_t), value)
#define store_sp_array_uint(array_name, index, value) \
sp_dmem_store_uint32(SP0_ID, (unsigned int)sp_address_of(array_name) + \
(index) * sizeof(uint32_t), value)
#define store_sp_var_with_offset(var, offset, data, bytes) \
sp_dmem_store(SP0_ID, (unsigned int)sp_address_of(var) + \
offset, data, bytes)
#define load_sp_var(var, data, bytes) \
sp_dmem_load(SP0_ID, (unsigned int)sp_address_of(var), data, bytes)
#define load_sp_var_with_offset(var, offset, data, bytes) \
sp_dmem_load(SP0_ID, (unsigned int)sp_address_of(var) + offset, \
data, bytes)
#endif /* __SP_LOCAL_H_INCLUDED__ */
Annotation
- Immediate include surface: `type_support.h`, `sp_global.h`.
- 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.