drivers/staging/media/atomisp/pci/runtime/isys/src/isys_init.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/runtime/isys/src/isys_init.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/runtime/isys/src/isys_init.c- Extension
.c- Size
- 3375 bytes
- Lines
- 113
- 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
input_system.hia_css_isys.hplatform_support.hisys_dma_public.hisys_irq.h
Detected Declarations
function Copyrightfunction ia_css_isys_2401_initfunction ia_css_isys_initfunction ia_css_isys_uninit
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2010 - 2015, Intel Corporation.
*/
#include "input_system.h"
#include "ia_css_isys.h"
#include "platform_support.h"
#include "isys_dma_public.h" /* isys2401_dma_set_max_burst_size() */
#include "isys_irq.h"
static input_system_err_t ia_css_isys_2400_init(void)
{
backend_channel_cfg_t backend_ch0;
backend_channel_cfg_t backend_ch1;
target_cfg2400_t targetB;
target_cfg2400_t targetC;
u32 acq_mem_region_size = 24;
u32 acq_nof_mem_regions = 2;
input_system_err_t error = INPUT_SYSTEM_ERR_NO_ERROR;
memset(&backend_ch0, 0, sizeof(backend_channel_cfg_t));
memset(&backend_ch1, 0, sizeof(backend_channel_cfg_t));
memset(&targetB, 0, sizeof(targetB));
memset(&targetC, 0, sizeof(targetC));
error = input_system_configuration_reset();
if (error != INPUT_SYSTEM_ERR_NO_ERROR)
return error;
error = input_system_csi_xmem_channel_cfg(
0, /*ch_id */
INPUT_SYSTEM_PORT_A, /*port */
backend_ch0, /*backend_ch */
32, /*mem_region_size */
6, /*nof_mem_regions */
acq_mem_region_size, /*acq_mem_region_size */
acq_nof_mem_regions, /*acq_nof_mem_regions */
targetB, /*target */
3); /*nof_xmem_buffers */
if (error != INPUT_SYSTEM_ERR_NO_ERROR)
return error;
error = input_system_csi_xmem_channel_cfg(
1, /*ch_id */
INPUT_SYSTEM_PORT_B, /*port */
backend_ch0, /*backend_ch */
16, /*mem_region_size */
3, /*nof_mem_regions */
acq_mem_region_size, /*acq_mem_region_size */
acq_nof_mem_regions, /*acq_nof_mem_regions */
targetB, /*target */
3); /*nof_xmem_buffers */
if (error != INPUT_SYSTEM_ERR_NO_ERROR)
return error;
error = input_system_csi_xmem_channel_cfg(
2, /*ch_id */
INPUT_SYSTEM_PORT_C, /*port */
backend_ch1, /*backend_ch */
32, /*mem_region_size */
3, /*nof_mem_regions */
acq_mem_region_size, /*acq_mem_region_size */
acq_nof_mem_regions, /*acq_nof_mem_regions */
targetC, /*target */
2); /*nof_xmem_buffers */
if (error != INPUT_SYSTEM_ERR_NO_ERROR)
return error;
error = input_system_configuration_commit();
return error;
}
static input_system_err_t ia_css_isys_2401_init(void)
{
ia_css_isys_csi_rx_lut_rmgr_init();
ia_css_isys_ibuf_rmgr_init();
ia_css_isys_dma_channel_rmgr_init();
ia_css_isys_stream2mmio_sid_rmgr_init();
isys2401_dma_set_max_burst_size(ISYS2401_DMA0_ID,
1 /* Non Burst DMA transactions */);
/* Enable 2401 input system IRQ status for driver to retrieve */
isys_irqc_status_enable(ISYS_IRQ0_ID);
isys_irqc_status_enable(ISYS_IRQ1_ID);
Annotation
- Immediate include surface: `input_system.h`, `ia_css_isys.h`, `platform_support.h`, `isys_dma_public.h`, `isys_irq.h`.
- Detected declarations: `function Copyright`, `function ia_css_isys_2401_init`, `function ia_css_isys_init`, `function ia_css_isys_uninit`.
- 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.