# kaushikieeee/kernel_nothing_sm8475 architecture

> Architecture diagram of the GitHub repository kaushikieeee/kernel_nothing_sm8475, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kaushikieeee/kernel_nothing_sm8475
- Repository: https://github.com/kaushikieeee/kernel_nothing_sm8475

## Overview

This is an Android Common Kernel tree: a Linux kernel adapted for Android devices, not a single end-user application. Its runtime spans architecture support, kernel services, filesystems, and hardware drivers; callers submit work through kernel interfaces, which drivers and subsystem code execute against hardware or stored data. The sampled files expose several independent branches—DMA and crypto, USB, graphics, camera, audio, and ROMFS—rather than one unified request pipeline. Edges below are limited to relationships visible in excerpts or SOURCE INDEX references; unsampled subsystem wiring is omitted.

Main entry points: [`drivers/crypto/ccp/ccp-dmaengine.c`](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/ccp/ccp-dmaengine.c) (AMD CCP DMA), [`drivers/dma/dmaengine.c`](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/dma/dmaengine.c) (DMA framework), [`include/linux/dmaengine.h`](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/include/linux/dmaengine.h) (DMA interfaces), [`crypto/crypto_engine.c`](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/crypto/crypto_engine.c) (Crypto engine queue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_kernel["Kernel services"]
  node_dma["DMA framework<br/>[dmaengine.c]"]
  node_dma_api["DMA interfaces<br/>[dmaengine.h]"]
end

subgraph group_crypto["Crypto and DMA"]
  node_crypto_engine["Crypto engine queue<br/>[crypto_engine.c]"]
  node_ccp["AMD CCP DMA<br/>[ccp-dmaengine.c]"]
  node_ccp_state["CCP device state<br/>[ccp-dev.h]"]
  node_qat["QAT accelerator<br/>[adf_accel_engine.c]"]
  node_qat_types["QAT device model"]
end

subgraph group_usb["USB functions"]
  node_usb_pd["USB-PD policy<br/>[policy_engine.c]"]
  node_mass_storage["USB mass storage<br/>[f_mass_storage.c]"]
end

subgraph group_display["Graphics and imaging"]
  node_komeda_state["Komeda pipeline state"]
  node_komeda_pipeline["Komeda pipeline model<br/>[komeda_pipeline.h]"]
  node_i915_engine["i915 GPU engine<br/>[intel_engine_cs.c]"]
  node_i915_context["i915 contexts<br/>[intel_context.h]"]
  node_atom_pipeline["AtomISP pipeline<br/>[pipeline.c]"]
  node_atom_debug["AtomISP debug API<br/>[ia_css_debug.h]"]
end

subgraph group_media["Audio and filesystems"]
  node_dsp_pipeline["mISDN DSP pipeline<br/>[dsp_pipeline.c]"]
  node_dsp_elements["DSP element API<br/>[dsp.h]"]
  node_romfs_storage["ROMFS storage access<br/>[storage.c]"]
  node_romfs_internal["ROMFS internals<br/>[internal.h]"]
end

node_users(("Kernel clients"))

node_users -.->|"requests transfers"| node_dma
node_dma -->|"exposes interface"| node_dma_api
node_ccp -->|"uses device state"| node_ccp_state
node_ccp -->|"implements transfers"| node_dma_api
node_ccp -.->|"registers channels"| node_dma
node_qat -->|"uses device model"| node_qat_types
node_crypto_engine -.->|"queues requests"| node_users
node_komeda_state -->|"uses pipeline model"| node_komeda_pipeline
node_i915_engine -->|"pins contexts"| node_i915_context
node_atom_pipeline -->|"uses debug API"| node_atom_debug
node_dsp_pipeline -->|"registers elements"| node_dsp_elements
node_romfs_storage -->|"uses internals"| node_romfs_internal
node_users -.->|"configures port"| node_usb_pd
node_users -.->|"accesses storage"| node_mass_storage

click node_dma "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/dma/dmaengine.c"
click node_dma_api "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/include/linux/dmaengine.h"
click node_crypto_engine "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/crypto/crypto_engine.c"
click node_ccp "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/ccp/ccp-dmaengine.c"
click node_ccp_state "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/ccp/ccp-dev.h"
click node_qat "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/qat/qat_common/adf_accel_engine.c"
click node_qat_types "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/qat/qat_common/adf_accel_devices.h"
click node_usb_pd "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/usb/pd/policy_engine.c"
click node_mass_storage "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/usb/gadget/function/f_mass_storage.c"
click node_komeda_state "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c"
click node_komeda_pipeline "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h"
click node_i915_engine "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/i915/gt/intel_engine_cs.c"
click node_i915_context "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/i915/gt/intel_context.h"
click node_atom_pipeline "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c"
click node_atom_debug "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/staging/media/atomisp/pci/runtime/debug/interface/ia_css_debug.h"
click node_dsp_pipeline "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/isdn/mISDN/dsp_pipeline.c"
click node_dsp_elements "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/isdn/mISDN/dsp.h"
click node_romfs_storage "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/fs/romfs/storage.c"
click node_romfs_internal "https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/fs/romfs/internal.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dma,node_dma_api,node_users toneBlue
class node_crypto_engine,node_ccp,node_ccp_state,node_qat,node_qat_types toneAmber
class node_usb_pd,node_mass_storage toneMint
class node_komeda_state,node_komeda_pipeline,node_i915_engine,node_i915_context,node_atom_pipeline,node_atom_debug toneRose
class node_dsp_pipeline,node_dsp_elements,node_romfs_storage,node_romfs_internal toneIndigo
```

## Components

### Kernel services

- [DMA framework](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/dma/dmaengine.c): `drivers/dma/dmaengine.c`
- [DMA interfaces](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/include/linux/dmaengine.h): `include/linux/dmaengine.h`

### Crypto and DMA

- [Crypto engine queue](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/crypto/crypto_engine.c): `crypto/crypto_engine.c`
- [AMD CCP DMA](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/ccp/ccp-dmaengine.c): `drivers/crypto/ccp/ccp-dmaengine.c`
- [CCP device state](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/ccp/ccp-dev.h): `drivers/crypto/ccp/ccp-dev.h`
- [QAT accelerator](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/qat/qat_common/adf_accel_engine.c): `drivers/crypto/qat/qat_common/adf_accel_engine.c`
- [QAT device model](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/crypto/qat/qat_common/adf_accel_devices.h): `drivers/crypto/qat/qat_common/adf_accel_devices.h`

### USB functions

- [USB-PD policy](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/usb/pd/policy_engine.c): `drivers/usb/pd/policy_engine.c`
- [USB mass storage](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/usb/gadget/function/f_mass_storage.c): `drivers/usb/gadget/function/f_mass_storage.c`

### Graphics and imaging

- [Komeda pipeline state](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c): `drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c`
- [Komeda pipeline model](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h): `drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h`
- [i915 GPU engine](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/i915/gt/intel_engine_cs.c): `drivers/gpu/drm/i915/gt/intel_engine_cs.c`
- [i915 contexts](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/gpu/drm/i915/gt/intel_context.h): `drivers/gpu/drm/i915/gt/intel_context.h`
- [AtomISP pipeline](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c): `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`
- [AtomISP debug API](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/staging/media/atomisp/pci/runtime/debug/interface/ia_css_debug.h): `drivers/staging/media/atomisp/pci/runtime/debug/interface/ia_css_debug.h`

### Audio and filesystems

- [mISDN DSP pipeline](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/isdn/mISDN/dsp_pipeline.c): `drivers/isdn/mISDN/dsp_pipeline.c`
- [DSP element API](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/drivers/isdn/mISDN/dsp.h): `drivers/isdn/mISDN/dsp.h`
- [ROMFS storage access](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/fs/romfs/storage.c): `fs/romfs/storage.c`
- [ROMFS internals](https://github.com/kaushikieeee/kernel_nothing_sm8475/blob/base/fs/romfs/internal.h): `fs/romfs/internal.h`

### Other components

- **Kernel clients**

## Connections

- Kernel clients → DMA framework: requests transfers
- DMA framework → DMA interfaces: exposes interface (evidence: `drivers/dma/dmaengine.c`)
- AMD CCP DMA → CCP device state: uses device state (evidence: `drivers/crypto/ccp/ccp-dmaengine.c`)
- AMD CCP DMA → DMA interfaces: implements transfers (evidence: `drivers/crypto/ccp/ccp-dmaengine.c`)
- AMD CCP DMA → DMA framework: registers channels
- QAT accelerator → QAT device model: uses device model (evidence: `drivers/crypto/qat/qat_common/adf_accel_engine.c`)
- Crypto engine queue → Kernel clients: queues requests
- Komeda pipeline state → Komeda pipeline model: uses pipeline model (evidence: `drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c`)
- i915 GPU engine → i915 contexts: pins contexts (evidence: `drivers/gpu/drm/i915/gt/intel_engine_cs.c`)
- AtomISP pipeline → AtomISP debug API: uses debug API (evidence: `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`)
- mISDN DSP pipeline → DSP element API: registers elements (evidence: `drivers/isdn/mISDN/dsp_pipeline.c`)
- ROMFS storage access → ROMFS internals: uses internals (evidence: `fs/romfs/storage.c`)
- Kernel clients → USB-PD policy: configures port
- Kernel clients → USB mass storage: accesses storage
