# nacht20-de/gts9wifi-fedora-linux architecture

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

- Interactive diagram: https://gitdiagram.com/nacht20-de/gts9wifi-fedora-linux
- Repository: https://github.com/nacht20-de/gts9wifi-fedora-linux

## Overview

This repository ports Fedora and mainline Linux to the Galaxy Tab S9 Wi-Fi. Its user-facing result is a tablet booting into Fedora with device hardware supported by kernel drivers; the README describes the stock Android boot chain and internal-UFS root, but those boot and rootfs implementation paths are not present in this tree. The shown files cover several device drivers, secure-processor code, the eSE stack, and GNOME device controls. Edges are limited to relationships visible in excerpts or the README; many indexed drivers are unsampled, so their internal calls are not mapped.

Main entry points: [`kernel/files/snvm/hal/ese_hal.c`](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_hal.c) (Transport HAL), [`kernel/files/snvm/sec_star.c`](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/sec_star.c) (eSE driver), [`kernel/files/snvm/protocol/ese_iso7816_t1.c`](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/protocol/ese_iso7816_t1.c) (ISO7816 T=1), [`rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/prefs.js`](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi%40tabs9linux/prefs.js) (Device settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_device["Device drivers"]
  node_display["AMOLED panel"]
  node_touch["Touchscreen<br/>[fts1ba90a.c]"]
  node_pen["Pen digitizer<br/>[wacom-wez01.c]"]
  node_camera["Camera sensor<br/>[hi1337_gts9u.c]"]
  node_camera_tables["Camera tables"]
  node_autofocus["Autofocus helper"]
  node_battery["Battery gauge<br/>[sm5714_battery.c]"]
  node_usbpd["USB-PD<br/>[sm5714_usbpd.c]"]
  node_charging["Direct charging<br/>[sm5440_direct.c]"]
  node_redriver["USB-C redriver<br/>[ps5169.c]"]
  node_vcm["Camera actuator<br/>[dw9808_vcm.c]"]
  node_fingerprint["Fingerprint sensor<br/>[egis_el721.c]"]
end

subgraph group_ese["Secure element"]
  node_ese_board["K250A device<br/>[sec_k250a.c]"]
  node_ese_core["eSE driver<br/>[sec_star.c]"]
  node_ese_protocol["ISO7816 T=1<br/>[ese_iso7816_t1.c]"]
  node_ese_data["APDU data buffers<br/>[ese_data.c]"]
  node_ese_hal["Transport HAL<br/>[ese_hal.c]"]
  node_ese_i2c["I2C transport<br/>[ese_i2c.c]"]
  node_ese_spi["SPI transport<br/>[ese_spi.c]"]
end

subgraph group_spu["Secure processor"]
  node_spss["SPSS driver<br/>[qcom_spss.c]"]
  node_spcom["SPCOM interface<br/>[spcom.c]"]
  node_glink["SPSS GLINK<br/>[qcom_glink_spss.c]"]
  node_hlos_heap["HLOS heap"]
  node_spu_irq["SPSS interrupts<br/>[qcom_spss_irq.c]"]
  node_spss_utils["SPSS utilities<br/>[spss_utils.c]"]
end

subgraph group_desktop["Desktop controls"]
  node_gnome_prefs["Device settings<br/>[prefs.js]"]
  node_device_controls["Control helper client<br/>[deviceControls.js]"]
end

node_user(("Tablet user"))
node_control_service["Device-control helper"]

node_user -->|"opens settings"| node_gnome_prefs
node_gnome_prefs -->|"lists and sets"| node_device_controls
node_device_controls -->|"runs commands"| node_control_service
node_camera -.->|"uses tables"| node_camera_tables
node_ese_board -->|"opens and closes"| node_ese_core
node_ese_core -->|"transceives"| node_ese_protocol
node_ese_core -->|"sends directly"| node_ese_hal
node_ese_protocol -->|"exchanges frames"| node_ese_hal
node_ese_protocol -->|"uses buffers"| node_ese_data
node_ese_hal -->|"dispatches I2C"| node_ese_i2c
node_ese_hal -->|"dispatches SPI"| node_ese_spi

click node_display "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/panel-samsung-ana38407.c"
click node_touch "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/fts1ba90a.c"
click node_pen "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/wacom-wez01.c"
click node_camera "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/hi1337_gts9u.c"
click node_camera_tables "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/hi1337_gts9u_tables.h"
click node_autofocus "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/tools/gts9wifi-autofocus.c"
click node_battery "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5714_battery.c"
click node_usbpd "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5714_usbpd.c"
click node_charging "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5440_direct.c"
click node_redriver "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/ps5169.c"
click node_vcm "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/dw9808_vcm.c"
click node_fingerprint "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/egis_el721.c"
click node_ese_board "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/sec_k250a.c"
click node_ese_core "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/sec_star.c"
click node_ese_protocol "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/protocol/ese_iso7816_t1.c"
click node_ese_data "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/protocol/ese_data.c"
click node_ese_hal "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_hal.c"
click node_ese_i2c "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_i2c.c"
click node_ese_spi "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_spi.c"
click node_spss "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_spss.c"
click node_spcom "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/spcom.c"
click node_glink "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_glink_spss.c"
click node_hlos_heap "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_sp_hlos_heap.c"
click node_spu_irq "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_spss_irq.c"
click node_spss_utils "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/spss_utils.c"
click node_gnome_prefs "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi%40tabs9linux/prefs.js"
click node_device_controls "https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi%40tabs9linux/deviceControls.js"

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_display,node_touch,node_pen,node_camera,node_camera_tables,node_autofocus,node_battery,node_usbpd,node_charging,node_redriver,node_vcm,node_fingerprint,node_user toneBlue
class node_ese_board,node_ese_core,node_ese_protocol,node_ese_data,node_ese_hal,node_ese_i2c,node_ese_spi toneAmber
class node_spss,node_spcom,node_glink,node_hlos_heap,node_spu_irq,node_spss_utils toneMint
class node_gnome_prefs,node_device_controls toneRose
class node_control_service toneIndigo
```

## Components

### Device drivers

- [AMOLED panel](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/panel-samsung-ana38407.c): `kernel/files/panel-samsung-ana38407.c`
- [Touchscreen](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/fts1ba90a.c): `kernel/files/fts1ba90a.c`
- [Pen digitizer](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/wacom-wez01.c): `kernel/files/wacom-wez01.c`
- [Camera sensor](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/hi1337_gts9u.c): `kernel/files/hi1337_gts9u.c`
- [Camera tables](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/hi1337_gts9u_tables.h): `kernel/files/hi1337_gts9u_tables.h`
- [Autofocus helper](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/tools/gts9wifi-autofocus.c): `tools/gts9wifi-autofocus.c`
- [Battery gauge](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5714_battery.c): `kernel/files/sm5714_battery.c`
- [USB-PD](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5714_usbpd.c): `kernel/files/sm5714_usbpd.c`
- [Direct charging](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/sm5440_direct.c): `kernel/files/sm5440_direct.c`
- [USB-C redriver](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/ps5169.c): `kernel/files/ps5169.c`
- [Camera actuator](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/dw9808_vcm.c): `kernel/files/dw9808_vcm.c`
- [Fingerprint sensor](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/egis_el721.c): `kernel/files/egis_el721.c`

### Secure element

- [K250A device](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/sec_k250a.c): `kernel/files/snvm/sec_k250a.c`
- [eSE driver](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/sec_star.c): `kernel/files/snvm/sec_star.c`
- [ISO7816 T=1](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/protocol/ese_iso7816_t1.c): `kernel/files/snvm/protocol/ese_iso7816_t1.c`
- [APDU data buffers](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/protocol/ese_data.c): `kernel/files/snvm/protocol/ese_data.c`
- [Transport HAL](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_hal.c): `kernel/files/snvm/hal/ese_hal.c`
- [I2C transport](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_i2c.c): `kernel/files/snvm/hal/ese_i2c.c`
- [SPI transport](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/snvm/hal/ese_spi.c): `kernel/files/snvm/hal/ese_spi.c`

### Secure processor

- [SPSS driver](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_spss.c): `kernel/files/spu/qcom_spss.c`
- [SPCOM interface](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/spcom.c): `kernel/files/spu/spcom.c`
- [SPSS GLINK](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_glink_spss.c): `kernel/files/spu/qcom_glink_spss.c`
- [HLOS heap](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_sp_hlos_heap.c): `kernel/files/spu/qcom_sp_hlos_heap.c`
- [SPSS interrupts](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/qcom_spss_irq.c): `kernel/files/spu/qcom_spss_irq.c`
- [SPSS utilities](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/kernel/files/spu/spss_utils.c): `kernel/files/spu/spss_utils.c`

### Desktop controls

- [Device settings](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi%40tabs9linux/prefs.js): `rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/prefs.js`
- [Control helper client](https://github.com/nacht20-de/gts9wifi-fedora-linux/blob/main/rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi%40tabs9linux/deviceControls.js): `rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/deviceControls.js`

### Other components

- **Tablet user**
- **Device-control helper**

## Connections

- Tablet user → Device settings: opens settings (evidence: `rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/prefs.js`)
- Device settings → Control helper client: lists and sets (evidence: `rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/prefs.js`)
- Control helper client → Device-control helper: runs commands (evidence: `rootfs/overlay/usr/share/gnome-shell/extensions/gnome-gts9wifi@tabs9linux/deviceControls.js`)
- Camera sensor → Camera tables: uses tables
- K250A device → eSE driver: opens and closes (evidence: `kernel/files/snvm/sec_k250a.c`)
- eSE driver → ISO7816 T=1: transceives (evidence: `kernel/files/snvm/sec_star.c`)
- eSE driver → Transport HAL: sends directly (evidence: `kernel/files/snvm/sec_star.c`)
- ISO7816 T=1 → Transport HAL: exchanges frames (evidence: `kernel/files/snvm/protocol/ese_iso7816_t1.c`)
- ISO7816 T=1 → APDU data buffers: uses buffers (evidence: `kernel/files/snvm/protocol/ese_iso7816_t1.c`)
- Transport HAL → I2C transport: dispatches I2C (evidence: `kernel/files/snvm/hal/ese_hal.c`)
- Transport HAL → SPI transport: dispatches SPI (evidence: `kernel/files/snvm/hal/ese_hal.c`)
