# au-ts/sddf architecture

> Architecture diagram of the GitHub repository au-ts/sddf, 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/au-ts/sddf
- Repository: https://github.com/au-ts/sddf

## Overview

sDDF is an experimental framework of interfaces and protocols for device drivers running as seL4 user-level programs. Its principal workflow is a client using a device-class protocol to exchange requests and results with a driver; the README identifies Network, Block, Serial, I²C, and Audio as supported areas. The tree also shows a substantial network stack and virtual-device components. Source excerpts do not establish most runtime wiring between those components, so the graph shows documented framework relationships and keeps implementation links unasserted.

Main entry points: [`include/sddf`](https://github.com/au-ts/sddf/tree/main/include/sddf) (sDDF Protocols), [`include/sddf/blk`](https://github.com/au-ts/sddf/tree/main/include/sddf/blk) (Block Interface), [`include/sddf/serial`](https://github.com/au-ts/sddf/tree/main/include/sddf/serial) (Serial Interface), [`include/sddf/i2c`](https://github.com/au-ts/sddf/tree/main/include/sddf/i2c) (I²C Interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Device Interfaces"]
  node_framework["sDDF Protocols"]
  node_blockif["Block Interface"]
  node_serialif["Serial Interface"]
  node_i2cif["I²C Interface"]
  node_soundif["Audio Interface"]
  node_timerif["Timer Interface"]
end

subgraph group_drivers["Device Drivers"]
  node_blockdrivers["Block Drivers"]
  node_serialdrivers["Serial Drivers"]
  node_i2cdrivers["I²C Drivers"]
  node_networkdrivers["Network Drivers"]
  node_timerdrivers["Timer Drivers"]
  node_partitioning["Disk Partitioning<br/>[partitioning.c]"]
  node_i2cdevices["I²C Devices"]
end

subgraph group_network["Network Stack"]
  node_netcomponents["Network Components"]
  node_lwip["lwIP Stack"]
  node_sddf_lwip["sDDF lwIP Adapter<br/>[lib_sddf_lwip.c]"]
end

subgraph group_virtual["Virtual Devices"]
  node_virtio["VirtIO Transport"]
  node_virtcomponents["Virtual Components<br/>[virt.c]"]
end

node_client(("Driver Client"))

node_client -->|"uses protocols"| node_framework
node_framework -->|"defines class"| node_blockif
node_framework -->|"defines class"| node_serialif
node_framework -->|"defines class"| node_i2cif
node_framework -->|"defines class"| node_soundif
node_client -.->|"uses interface"| node_timerif

click node_framework "https://github.com/au-ts/sddf/tree/main/include/sddf"
click node_blockif "https://github.com/au-ts/sddf/tree/main/include/sddf/blk"
click node_serialif "https://github.com/au-ts/sddf/tree/main/include/sddf/serial"
click node_i2cif "https://github.com/au-ts/sddf/tree/main/include/sddf/i2c"
click node_soundif "https://github.com/au-ts/sddf/tree/main/include/sddf/sound"
click node_timerif "https://github.com/au-ts/sddf/tree/main/include/sddf/timer"
click node_blockdrivers "https://github.com/au-ts/sddf/tree/main/drivers/blk"
click node_serialdrivers "https://github.com/au-ts/sddf/tree/main/drivers/serial"
click node_i2cdrivers "https://github.com/au-ts/sddf/tree/main/drivers/i2c"
click node_networkdrivers "https://github.com/au-ts/sddf/tree/main/drivers/network"
click node_timerdrivers "https://github.com/au-ts/sddf/tree/main/drivers/timer"
click node_partitioning "https://github.com/au-ts/sddf/blob/main/blk/components/partitioning.c"
click node_netcomponents "https://github.com/au-ts/sddf/tree/main/network/components"
click node_lwip "https://github.com/au-ts/sddf/tree/main/network/ipstacks/lwip/src"
click node_sddf_lwip "https://github.com/au-ts/sddf/blob/main/network/lib_sddf_lwip/lib_sddf_lwip.c"
click node_i2cdevices "https://github.com/au-ts/sddf/tree/main/i2c/devices"
click node_virtio "https://github.com/au-ts/sddf/tree/main/virtio/transport"
click node_virtcomponents "https://github.com/au-ts/sddf/blob/main/blk/components/virt.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_framework,node_blockif,node_serialif,node_i2cif,node_soundif,node_timerif,node_client toneBlue
class node_blockdrivers,node_serialdrivers,node_i2cdrivers,node_networkdrivers,node_timerdrivers,node_partitioning,node_i2cdevices toneAmber
class node_netcomponents,node_lwip,node_sddf_lwip toneMint
class node_virtio,node_virtcomponents toneRose
```

## Components

### Device Interfaces

- [sDDF Protocols](https://github.com/au-ts/sddf/tree/main/include/sddf): `include/sddf`
- [Block Interface](https://github.com/au-ts/sddf/tree/main/include/sddf/blk): `include/sddf/blk`
- [Serial Interface](https://github.com/au-ts/sddf/tree/main/include/sddf/serial): `include/sddf/serial`
- [I²C Interface](https://github.com/au-ts/sddf/tree/main/include/sddf/i2c): `include/sddf/i2c`
- [Audio Interface](https://github.com/au-ts/sddf/tree/main/include/sddf/sound): `include/sddf/sound`
- [Timer Interface](https://github.com/au-ts/sddf/tree/main/include/sddf/timer): `include/sddf/timer`

### Device Drivers

- [Block Drivers](https://github.com/au-ts/sddf/tree/main/drivers/blk): `drivers/blk`
- [Serial Drivers](https://github.com/au-ts/sddf/tree/main/drivers/serial): `drivers/serial`
- [I²C Drivers](https://github.com/au-ts/sddf/tree/main/drivers/i2c): `drivers/i2c`
- [Network Drivers](https://github.com/au-ts/sddf/tree/main/drivers/network): `drivers/network`
- [Timer Drivers](https://github.com/au-ts/sddf/tree/main/drivers/timer): `drivers/timer`
- [Disk Partitioning](https://github.com/au-ts/sddf/blob/main/blk/components/partitioning.c): `blk/components/partitioning.c`
- [I²C Devices](https://github.com/au-ts/sddf/tree/main/i2c/devices): `i2c/devices`

### Network Stack

- [Network Components](https://github.com/au-ts/sddf/tree/main/network/components): `network/components`
- [lwIP Stack](https://github.com/au-ts/sddf/tree/main/network/ipstacks/lwip/src): `network/ipstacks/lwip/src`
- [sDDF lwIP Adapter](https://github.com/au-ts/sddf/blob/main/network/lib_sddf_lwip/lib_sddf_lwip.c): `network/lib_sddf_lwip/lib_sddf_lwip.c`

### Virtual Devices

- [VirtIO Transport](https://github.com/au-ts/sddf/tree/main/virtio/transport): `virtio/transport`
- [Virtual Components](https://github.com/au-ts/sddf/blob/main/blk/components/virt.c): `blk/components/virt.c`

### Other components

- **Driver Client**

## Connections

- Driver Client → sDDF Protocols: uses protocols (evidence: `README.md`)
- sDDF Protocols → Block Interface: defines class (evidence: `README.md`)
- sDDF Protocols → Serial Interface: defines class (evidence: `README.md`)
- sDDF Protocols → I²C Interface: defines class (evidence: `README.md`)
- sDDF Protocols → Audio Interface: defines class (evidence: `README.md`)
- Driver Client → Timer Interface: uses interface
