# beagleboard/linux architecture

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

- Interactive diagram: https://gitdiagram.com/beagleboard/linux
- Repository: https://github.com/beagleboard/linux

## Overview

Linux is the operating-system kernel: it initializes the kernel, mediates hardware access, and provides services to userspace. The sampled material covers selected DMA, accelerator, GPU, camera, USB storage, and audio-bus subsystems, not the full kernel. The graph keeps those distinct capabilities visible while limiting relationships to the README and source references or calls shown in the excerpts; unsampled connections are omitted.

Main entry points: [`drivers/usb/gadget/function/f_mass_storage.c`](https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/function/f_mass_storage.c) (USB mass storage), [`drivers/dma/dmaengine.h`](https://github.com/beagleboard/linux/blob/master/drivers/dma/dmaengine.h) (DMA interfaces), [`drivers/dma/amd/ptdma/ptdma-dmaengine.c`](https://github.com/beagleboard/linux/blob/master/drivers/dma/amd/ptdma/ptdma-dmaengine.c) (AMD passthrough DMA), [`drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`](https://github.com/beagleboard/linux/blob/master/drivers/crypto/intel/qat/qat_common/adf_accel_engine.c) (QAT accelerator firmware)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Kernel core"]
  node_kernel_init["Kernel initialization<br/>[main.c]"]
end

subgraph group_dma_crypto["DMA and crypto"]
  node_dma_api["DMA API<br/>[dmaengine.c]"]
  node_dma_types["DMA interfaces<br/>[dmaengine.h]"]
  node_ptdma["AMD passthrough DMA<br/>[ptdma-dmaengine.c]"]
  node_ccp_dma["CCP DMA driver<br/>[ccp-dmaengine.c]"]
  node_crypto_engine["Crypto request engine<br/>[crypto_engine.c]"]
  node_qat_engine["QAT accelerator firmware<br/>[adf_accel_engine.c]"]
  node_qat_device["QAT device model"]
end

subgraph group_graphics_media["Graphics and media"]
  node_i915_engine["Intel GPU engines<br/>[intel_engine_cs.c]"]
  node_xe_engine["Xe GPU engines<br/>[xe_hw_engine.c]"]
  node_komeda_state["Komeda pipeline state"]
  node_atomisp_pipeline["AtomISP pipeline<br/>[pipeline.c]"]
  node_atomisp_api["AtomISP pipeline API<br/>[ia_css_pipeline.h]"]
end

subgraph group_device_io["Device I/O"]
  node_mass_storage["USB mass storage<br/>[f_mass_storage.c]"]
  node_storage_common["Storage definitions<br/>[storage_common.h]"]
  node_mass_storage_legacy["Legacy storage gadget<br/>[mass_storage.c]"]
  node_soundwire["AMD SoundWire manager<br/>[amd_manager.c]"]
  node_soundwire_bus["SoundWire bus<br/>[bus.h]"]
end

node_userspace(("Userspace software"))
node_hardware["Platform hardware"]

node_kernel_init -->|"initializes kernel"| node_hardware
node_userspace -->|"uses kernel services"| node_kernel_init
node_ptdma -->|"uses interface"| node_dma_types
node_ptdma -.->|"submits DMA"| node_hardware
node_ccp_dma -->|"uses interface"| node_dma_types
node_dma_api -->|"uses interface"| node_dma_types
node_crypto_engine -.->|"completes requests"| node_userspace
node_qat_engine -->|"uses device model"| node_qat_device
node_qat_engine -->|"loads firmware"| node_hardware
node_i915_engine -.->|"controls GPU engines"| node_hardware
node_xe_engine -->|"programs engine registers"| node_hardware
node_atomisp_pipeline -->|"uses pipeline API"| node_atomisp_api
node_atomisp_pipeline -->|"starts ISP pipeline"| node_hardware
node_mass_storage -->|"uses definitions"| node_storage_common
node_mass_storage_legacy -->|"uses function"| node_mass_storage
node_mass_storage -.->|"serves USB storage"| node_hardware
node_soundwire -->|"implements bus ops"| node_soundwire_bus
node_soundwire -->|"controls audio bus"| node_hardware

click node_kernel_init "https://github.com/beagleboard/linux/blob/master/init/main.c"
click node_dma_api "https://github.com/beagleboard/linux/blob/master/drivers/dma/dmaengine.c"
click node_dma_types "https://github.com/beagleboard/linux/blob/master/drivers/dma/dmaengine.h"
click node_ptdma "https://github.com/beagleboard/linux/blob/master/drivers/dma/amd/ptdma/ptdma-dmaengine.c"
click node_ccp_dma "https://github.com/beagleboard/linux/blob/master/drivers/crypto/ccp/ccp-dmaengine.c"
click node_crypto_engine "https://github.com/beagleboard/linux/blob/master/crypto/crypto_engine.c"
click node_qat_engine "https://github.com/beagleboard/linux/blob/master/drivers/crypto/intel/qat/qat_common/adf_accel_engine.c"
click node_qat_device "https://github.com/beagleboard/linux/blob/master/drivers/crypto/intel/qat/qat_common/adf_accel_devices.h"
click node_i915_engine "https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/i915/gt/intel_engine_cs.c"
click node_xe_engine "https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/xe/xe_hw_engine.c"
click node_komeda_state "https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c"
click node_atomisp_pipeline "https://github.com/beagleboard/linux/blob/master/drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c"
click node_atomisp_api "https://github.com/beagleboard/linux/blob/master/drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h"
click node_mass_storage "https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/function/f_mass_storage.c"
click node_storage_common "https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/function/storage_common.h"
click node_mass_storage_legacy "https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/legacy/mass_storage.c"
click node_soundwire "https://github.com/beagleboard/linux/blob/master/drivers/soundwire/amd_manager.c"
click node_soundwire_bus "https://github.com/beagleboard/linux/blob/master/drivers/soundwire/bus.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_kernel_init,node_userspace toneBlue
class node_dma_api,node_dma_types,node_ptdma,node_ccp_dma,node_crypto_engine,node_qat_engine,node_qat_device toneAmber
class node_i915_engine,node_xe_engine,node_komeda_state,node_atomisp_pipeline,node_atomisp_api toneMint
class node_mass_storage,node_storage_common,node_mass_storage_legacy,node_soundwire,node_soundwire_bus toneRose
class node_hardware toneIndigo
```

## Components

### Kernel core

- [Kernel initialization](https://github.com/beagleboard/linux/blob/master/init/main.c): `init/main.c`

### DMA and crypto

- [DMA API](https://github.com/beagleboard/linux/blob/master/drivers/dma/dmaengine.c): `drivers/dma/dmaengine.c`
- [DMA interfaces](https://github.com/beagleboard/linux/blob/master/drivers/dma/dmaengine.h): `drivers/dma/dmaengine.h`
- [AMD passthrough DMA](https://github.com/beagleboard/linux/blob/master/drivers/dma/amd/ptdma/ptdma-dmaengine.c): `drivers/dma/amd/ptdma/ptdma-dmaengine.c`
- [CCP DMA driver](https://github.com/beagleboard/linux/blob/master/drivers/crypto/ccp/ccp-dmaengine.c): `drivers/crypto/ccp/ccp-dmaengine.c`
- [Crypto request engine](https://github.com/beagleboard/linux/blob/master/crypto/crypto_engine.c): `crypto/crypto_engine.c`
- [QAT accelerator firmware](https://github.com/beagleboard/linux/blob/master/drivers/crypto/intel/qat/qat_common/adf_accel_engine.c): `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`
- [QAT device model](https://github.com/beagleboard/linux/blob/master/drivers/crypto/intel/qat/qat_common/adf_accel_devices.h): `drivers/crypto/intel/qat/qat_common/adf_accel_devices.h`

### Graphics and media

- [Intel GPU engines](https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/i915/gt/intel_engine_cs.c): `drivers/gpu/drm/i915/gt/intel_engine_cs.c`
- [Xe GPU engines](https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/xe/xe_hw_engine.c): `drivers/gpu/drm/xe/xe_hw_engine.c`
- [Komeda pipeline state](https://github.com/beagleboard/linux/blob/master/drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c): `drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c`
- [AtomISP pipeline](https://github.com/beagleboard/linux/blob/master/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/beagleboard/linux/blob/master/drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h): `drivers/staging/media/atomisp/pci/runtime/pipeline/interface/ia_css_pipeline.h`

### Device I/O

- [USB mass storage](https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/function/f_mass_storage.c): `drivers/usb/gadget/function/f_mass_storage.c`
- [Storage definitions](https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/function/storage_common.h): `drivers/usb/gadget/function/storage_common.h`
- [Legacy storage gadget](https://github.com/beagleboard/linux/blob/master/drivers/usb/gadget/legacy/mass_storage.c): `drivers/usb/gadget/legacy/mass_storage.c`
- [AMD SoundWire manager](https://github.com/beagleboard/linux/blob/master/drivers/soundwire/amd_manager.c): `drivers/soundwire/amd_manager.c`
- [SoundWire bus](https://github.com/beagleboard/linux/blob/master/drivers/soundwire/bus.h): `drivers/soundwire/bus.h`

### Other components

- **Userspace software**
- **Platform hardware**

## Connections

- Kernel initialization → Platform hardware: initializes kernel (evidence: `README`)
- Userspace software → Kernel initialization: uses kernel services (evidence: `README`)
- AMD passthrough DMA → DMA interfaces: uses interface (evidence: `drivers/dma/amd/ptdma/ptdma-dmaengine.c`)
- AMD passthrough DMA → Platform hardware: submits DMA
- CCP DMA driver → DMA interfaces: uses interface (evidence: `drivers/crypto/ccp/ccp-dmaengine.c`)
- DMA API → DMA interfaces: uses interface (evidence: `drivers/dma/dmaengine.c`)
- Crypto request engine → Userspace software: completes requests
- QAT accelerator firmware → QAT device model: uses device model (evidence: `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`)
- QAT accelerator firmware → Platform hardware: loads firmware (evidence: `drivers/crypto/intel/qat/qat_common/adf_accel_engine.c`)
- Intel GPU engines → Platform hardware: controls GPU engines
- Xe GPU engines → Platform hardware: programs engine registers (evidence: `drivers/gpu/drm/xe/xe_hw_engine.c`)
- AtomISP pipeline → AtomISP pipeline API: uses pipeline API (evidence: `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`)
- AtomISP pipeline → Platform hardware: starts ISP pipeline (evidence: `drivers/staging/media/atomisp/pci/runtime/pipeline/src/pipeline.c`)
- USB mass storage → Storage definitions: uses definitions (evidence: `drivers/usb/gadget/function/f_mass_storage.c`)
- Legacy storage gadget → USB mass storage: uses function (evidence: `drivers/usb/gadget/legacy/mass_storage.c`)
- USB mass storage → Platform hardware: serves USB storage
- AMD SoundWire manager → SoundWire bus: implements bus ops (evidence: `drivers/soundwire/amd_manager.c`)
- AMD SoundWire manager → Platform hardware: controls audio bus (evidence: `drivers/soundwire/amd_manager.c`)
