# texasinstruments/ti-linux-kernel architecture

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

- Interactive diagram: https://gitdiagram.com/texasinstruments/ti-linux-kernel
- Repository: https://github.com/texasinstruments/ti-linux-kernel

## Overview

Linux is a general-purpose kernel: its runtime initializes the system and coordinates hardware drivers, kernel services, and user-facing interfaces. The sampled material highlights DMA, cryptographic acceleration, GPU engines, camera pipelines, and USB mass storage rather than a complete kernel boot path. Edges below reflect excerpted calls or SOURCE INDEX references; several subsystem interactions and the central initialization flow were not sampled, so they are intentionally not inferred.

Main entry points: [`drivers/dma/amd/ptdma/ptdma-dmaengine.c`](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ptdma/ptdma-dmaengine.c) (AMD PTDMA), [`drivers/usb/gadget/function/f_mass_storage.c`](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/function/f_mass_storage.c) (USB mass storage), [`drivers/dma/dmaengine.h`](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/dmaengine.h) (DMA API), [`drivers/crypto/ccp/ccp-dmaengine.c`](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/ccp/ccp-dmaengine.c) (AMD CCP DMA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dma["DMA services"]
  node_dma_api["DMA API<br/>[dmaengine.h]"]
  node_dma_core["DMA core<br/>[dmaengine.c]"]
  node_virt_dma["Virtual DMA<br/>[virt-dma.h]"]
  node_ptdma["AMD PTDMA<br/>[ptdma-dmaengine.c]"]
  node_ptdma_types["PTDMA types<br/>[ptdma.h]"]
  node_ae4_types["AE4 DMA types<br/>[ae4dma.h]"]
end

subgraph group_crypto["Crypto acceleration"]
  node_ccp["AMD CCP DMA<br/>[ccp-dmaengine.c]"]
  node_ccp_types["CCP device types<br/>[ccp-dev.h]"]
  node_crypto_engine["Crypto engine queue<br/>[crypto_engine.c]"]
  node_qat_engine["QAT engine<br/>[adf_accel_engine.c]"]
  node_qat_types["QAT device types"]
end

subgraph group_graphics["Graphics and camera"]
  node_i915_engine["i915 engines<br/>[intel_engine_cs.c]"]
  node_i915_context["i915 contexts<br/>[i915_gem_context.h]"]
  node_xe_engine["Xe engines<br/>[xe_hw_engine.c]"]
  node_atomisp_pipeline["AtomISP pipeline<br/>[pipeline.c]"]
  node_atomisp_api["AtomISP pipeline API<br/>[ia_css_pipeline.h]"]
end

subgraph group_storage["USB storage"]
  node_mass_storage["USB mass storage<br/>[f_mass_storage.c]"]
  node_storage_types["Storage common types<br/>[storage_common.h]"]
  node_legacy_gadget["Legacy gadget setup<br/>[mass_storage.c]"]
end

subgraph group_kernel["Kernel services"]
  node_kernel["Linux kernel"]
  node_romfs_storage["RomFS storage access<br/>[storage.c]"]
  node_dsp_pipeline["mISDN DSP pipeline<br/>[dsp_pipeline.c]"]
end

node_user(("User space"))
node_hardware["Hardware"]

node_kernel -.->|"provides service"| node_dma_core
node_dma_core -->|"implements API"| node_dma_api
node_ptdma -->|"uses API"| node_dma_api
node_ptdma -->|"uses types"| node_ptdma_types
node_ptdma -->|"uses types"| node_ae4_types
node_ptdma -->|"uses primitives"| node_virt_dma
node_ccp -->|"uses API"| node_dma_api
node_ccp -->|"uses types"| node_ccp_types
node_crypto_engine -.->|"serves requests"| node_user
node_qat_engine -->|"uses device data"| node_qat_types
node_qat_engine -->|"loads firmware"| node_hardware
node_i915_engine -->|"uses contexts"| node_i915_context
node_i915_engine -->|"controls engines"| node_hardware
node_xe_engine -->|"writes registers"| node_hardware
node_atomisp_pipeline -->|"uses interface"| node_atomisp_api
node_atomisp_pipeline -->|"starts ISP"| node_hardware
node_legacy_gadget -->|"configures function"| node_mass_storage
node_mass_storage -->|"uses types"| node_storage_types
node_user -.->|"issues commands"| node_mass_storage
node_mass_storage -.->|"transfers USB data"| node_hardware
node_romfs_storage -->|"reads image blocks"| node_hardware
node_dsp_pipeline -.->|"processes audio"| node_hardware

click node_dma_api "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/dmaengine.h"
click node_dma_core "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/dmaengine.c"
click node_virt_dma "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/virt-dma.h"
click node_ptdma "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ptdma/ptdma-dmaengine.c"
click node_ptdma_types "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ptdma/ptdma.h"
click node_ae4_types "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ae4dma/ae4dma.h"
click node_ccp "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/ccp/ccp-dmaengine.c"
click node_ccp_types "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/ccp/ccp-dev.h"
click node_crypto_engine "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/crypto/crypto_engine.c"
click node_qat_engine "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/intel/qat/qat_common/adf_accel_engine.c"
click node_qat_types "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/intel/qat/qat_common/adf_accel_devices.h"
click node_i915_engine "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/i915/gt/intel_engine_cs.c"
click node_i915_context "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/i915/gem/i915_gem_context.h"
click node_xe_engine "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/xe/xe_hw_engine.c"
click node_atomisp_pipeline "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c"
click node_atomisp_api "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h"
click node_mass_storage "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/function/f_mass_storage.c"
click node_storage_types "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/function/storage_common.h"
click node_legacy_gadget "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/legacy/mass_storage.c"
click node_romfs_storage "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/fs/romfs/storage.c"
click node_dsp_pipeline "https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/isdn/mISDN/dsp_pipeline.c"

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_api,node_dma_core,node_virt_dma,node_ptdma,node_ptdma_types,node_ae4_types,node_user toneBlue
class node_ccp,node_ccp_types,node_crypto_engine,node_qat_engine,node_qat_types toneAmber
class node_i915_engine,node_i915_context,node_xe_engine,node_atomisp_pipeline,node_atomisp_api toneMint
class node_mass_storage,node_storage_types,node_legacy_gadget toneRose
class node_kernel,node_romfs_storage,node_dsp_pipeline,node_hardware toneIndigo
```

## Components

### DMA services

- [DMA API](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/dmaengine.h): `drivers/dma/dmaengine.h`
- [DMA core](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/dmaengine.c): `drivers/dma/dmaengine.c`
- [Virtual DMA](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/virt-dma.h): `drivers/dma/virt-dma.h`
- [AMD PTDMA](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ptdma/ptdma-dmaengine.c): `drivers/dma/amd/ptdma/ptdma-dmaengine.c`
- [PTDMA types](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ptdma/ptdma.h): `drivers/dma/amd/ptdma/ptdma.h`
- [AE4 DMA types](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/dma/amd/ae4dma/ae4dma.h): `drivers/dma/amd/ae4dma/ae4dma.h`

### Crypto acceleration

- [AMD CCP DMA](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/ccp/ccp-dmaengine.c): `drivers/crypto/ccp/ccp-dmaengine.c`
- [CCP device types](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/ccp/ccp-dev.h): `drivers/crypto/ccp/ccp-dev.h`
- [Crypto engine queue](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/crypto/crypto_engine.c): `crypto/crypto_engine.c`
- [QAT engine](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/intel/qat/qat_common/adf_accel_engine.c): `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`
- [QAT device types](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/crypto/intel/qat/qat_common/adf_accel_devices.h): `drivers/crypto/intel/qat/qat_common/adf_accel_devices.h`

### Graphics and camera

- [i915 engines](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/i915/gt/intel_engine_cs.c): `drivers/gpu/drm/i915/gt/intel_engine_cs.c`
- [i915 contexts](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/i915/gem/i915_gem_context.h): `drivers/gpu/drm/i915/gem/i915_gem_context.h`
- [Xe engines](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/gpu/drm/xe/xe_hw_engine.c): `drivers/gpu/drm/xe/xe_hw_engine.c`
- [AtomISP pipeline](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c): `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`
- [AtomISP pipeline API](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h): `drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h`

### USB storage

- [USB mass storage](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/function/f_mass_storage.c): `drivers/usb/gadget/function/f_mass_storage.c`
- [Storage common types](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/function/storage_common.h): `drivers/usb/gadget/function/storage_common.h`
- [Legacy gadget setup](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/usb/gadget/legacy/mass_storage.c): `drivers/usb/gadget/legacy/mass_storage.c`

### Kernel services

- **Linux kernel**
- [RomFS storage access](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/fs/romfs/storage.c): `fs/romfs/storage.c`
- [mISDN DSP pipeline](https://github.com/texasinstruments/ti-linux-kernel/blob/ti-linux-6.18.y/drivers/isdn/mISDN/dsp_pipeline.c): `drivers/isdn/mISDN/dsp_pipeline.c`

### Other components

- **User space**
- **Hardware**

## Connections

- Linux kernel → DMA core: provides service
- DMA core → DMA API: implements API (evidence: `drivers/dma/dmaengine.c`)
- AMD PTDMA → DMA API: uses API (evidence: `drivers/dma/amd/ptdma/ptdma-dmaengine.c`)
- AMD PTDMA → PTDMA types: uses types (evidence: `drivers/dma/amd/ptdma/ptdma-dmaengine.c`)
- AMD PTDMA → AE4 DMA types: uses types (evidence: `drivers/dma/amd/ptdma/ptdma-dmaengine.c`)
- AMD PTDMA → Virtual DMA: uses primitives
- AMD CCP DMA → DMA API: uses API (evidence: `drivers/crypto/ccp/ccp-dmaengine.c`)
- AMD CCP DMA → CCP device types: uses types (evidence: `drivers/crypto/ccp/ccp-dmaengine.c`)
- Crypto engine queue → User space: serves requests
- QAT engine → QAT device types: uses device data (evidence: `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`)
- QAT engine → Hardware: loads firmware (evidence: `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`)
- i915 engines → i915 contexts: uses contexts (evidence: `drivers/gpu/drm/i915/gt/intel_engine_cs.c`)
- i915 engines → Hardware: controls engines (evidence: `drivers/gpu/drm/i915/gt/intel_engine_cs.c`)
- Xe engines → Hardware: writes registers (evidence: `drivers/gpu/drm/xe/xe_hw_engine.c`)
- AtomISP pipeline → AtomISP pipeline API: uses interface (evidence: `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`)
- AtomISP pipeline → Hardware: starts ISP (evidence: `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`)
- Legacy gadget setup → USB mass storage: configures function (evidence: `drivers/usb/gadget/legacy/mass_storage.c`)
- USB mass storage → Storage common types: uses types (evidence: `drivers/usb/gadget/function/f_mass_storage.c`)
- User space → USB mass storage: issues commands
- USB mass storage → Hardware: transfers USB data
- RomFS storage access → Hardware: reads image blocks (evidence: `fs/romfs/storage.c`)
- mISDN DSP pipeline → Hardware: processes audio
