drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx_private.h
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx_private.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx_private.h- Extension
.h- Size
- 9439 bytes
- Lines
- 298
- 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
rx_csi_defs.hmipi_backend_defs.hcsi_rx.hdevice_access.hassert_support.hprint_support.h
Detected Declarations
function Copyrightfunction csi_rx_fe_ctrl_reg_storefunction csi_rx_be_ctrl_reg_loadfunction csi_rx_be_ctrl_reg_storefunction interfacefunction csi_rx_fe_ctrl_get_statefunction csi_rx_fe_ctrl_dump_statefunction csi_rx_be_ctrl_get_statefunction csi_rx_be_ctrl_dump_state
Annotated Snippet
#ifndef __CSI_RX_PRIVATE_H_INCLUDED__
#define __CSI_RX_PRIVATE_H_INCLUDED__
#include "rx_csi_defs.h"
#include "mipi_backend_defs.h"
#include "csi_rx.h"
#include "device_access.h" /* ia_css_device_load_uint32 */
#include "assert_support.h" /* assert */
#include "print_support.h" /* print */
/*****************************************************
*
* Device level interface (DLI).
*
*****************************************************/
/**
* @brief Load the register value.
* Refer to "csi_rx_public.h" for details.
*/
static inline hrt_data csi_rx_fe_ctrl_reg_load(
const csi_rx_frontend_ID_t ID,
const hrt_address reg)
{
assert(ID < N_CSI_RX_FRONTEND_ID);
assert(CSI_RX_FE_CTRL_BASE[ID] != (hrt_address)-1);
return ia_css_device_load_uint32(CSI_RX_FE_CTRL_BASE[ID] + reg * sizeof(
hrt_data));
}
/**
* @brief Store a value to the register.
* Refer to "ibuf_ctrl_public.h" for details.
*/
static inline void csi_rx_fe_ctrl_reg_store(
const csi_rx_frontend_ID_t ID,
const hrt_address reg,
const hrt_data value)
{
assert(ID < N_CSI_RX_FRONTEND_ID);
assert(CSI_RX_FE_CTRL_BASE[ID] != (hrt_address)-1);
ia_css_device_store_uint32(CSI_RX_FE_CTRL_BASE[ID] + reg * sizeof(hrt_data),
value);
}
/**
* @brief Load the register value.
* Refer to "csi_rx_public.h" for details.
*/
static inline hrt_data csi_rx_be_ctrl_reg_load(
const csi_rx_backend_ID_t ID,
const hrt_address reg)
{
assert(ID < N_CSI_RX_BACKEND_ID);
assert(CSI_RX_BE_CTRL_BASE[ID] != (hrt_address)-1);
return ia_css_device_load_uint32(CSI_RX_BE_CTRL_BASE[ID] + reg * sizeof(
hrt_data));
}
/**
* @brief Store a value to the register.
* Refer to "ibuf_ctrl_public.h" for details.
*/
static inline void csi_rx_be_ctrl_reg_store(
const csi_rx_backend_ID_t ID,
const hrt_address reg,
const hrt_data value)
{
assert(ID < N_CSI_RX_BACKEND_ID);
assert(CSI_RX_BE_CTRL_BASE[ID] != (hrt_address)-1);
ia_css_device_store_uint32(CSI_RX_BE_CTRL_BASE[ID] + reg * sizeof(hrt_data),
value);
}
/* end of DLI */
/*****************************************************
*
* Native command interface (NCI).
*
*****************************************************/
/**
* @brief Get the state of the csi rx fe dlane process.
* Refer to "csi_rx_public.h" for details.
*/
static inline void csi_rx_fe_ctrl_get_dlane_state(
const csi_rx_frontend_ID_t ID,
Annotation
- Immediate include surface: `rx_csi_defs.h`, `mipi_backend_defs.h`, `csi_rx.h`, `device_access.h`, `assert_support.h`, `print_support.h`.
- Detected declarations: `function Copyright`, `function csi_rx_fe_ctrl_reg_store`, `function csi_rx_be_ctrl_reg_load`, `function csi_rx_be_ctrl_reg_store`, `function interface`, `function csi_rx_fe_ctrl_get_state`, `function csi_rx_fe_ctrl_dump_state`, `function csi_rx_be_ctrl_get_state`, `function csi_rx_be_ctrl_dump_state`.
- 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.