# microsoft/mu_basecore architecture

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

- Interactive diagram: https://gitdiagram.com/microsoft/mu_basecore
- Repository: https://github.com/microsoft/mu_basecore

## Overview

Project Mu Basecore is a UEFI firmware repository: its runtime is a collection of phase-specific drivers, applications, protocols, and libraries rather than one end-user service. The excerpts show boot-menu rendering, PEI storage-security operations, driver-health forms, and DXE dynamic-table generation. The clearest orchestration path is Dynamic Table Manager dispatching ACPI and SMBIOS generation when their protocols become ready. Other branches represent documented product components, but their cross-component wiring is not established by the sampled sources; those links are omitted. The available README excerpt describes repository changes, not a fuller product workflow.

Main entry points: [`DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`](https://github.com/microsoft/mu_basecore/blob/release/202608/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c) (Dynamic table manager), [`MdeModulePkg/Include/Ppi/StorageSecurityCommand.h`](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Include/Ppi/StorageSecurityCommand.h) (Storage security PPI), [`MdeModulePkg/Bus/Ata/AhciPei/AhciPeiStorageSecurity.c`](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiStorageSecurity.c) (AHCI PEI storage), [`MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiStorageSecurity.c`](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiStorageSecurity.c) (NVMe PEI storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_boot["Boot and health UI"]
  node_boot_menu["Boot manager menu<br/>[BootManagerMenu.c]"]
  node_health_manager["Driver health forms"]
end

subgraph group_tables["Dynamic tables"]
  node_table_manager["Dynamic table manager"]
  node_config_protocol["Configuration manager protocol"]
  node_table_generators["Table generators"]
  node_acpi_service["ACPI table service"]
  node_smbios_service["SMBIOS service"]
end

subgraph group_storage["Storage security"]
  node_ahci_pei["AHCI PEI storage"]
  node_nvme_pei["NVMe PEI storage"]
  node_storage_security_ppi["Storage security PPI"]
  node_opal_core["Opal commands"]
  node_tcg_core["TCG token core<br/>[TcgStorageCore.c]"]
end

subgraph group_manage["Platform management"]
  node_ipmi_storage["IPMI storage commands"]
  node_ipmi_service["IPMI command transport"]
  node_null_ipmi["Null IPMI instance"]
end

node_firmware_user(("Firmware user"))

node_firmware_user -.->|"opens"| node_boot_menu
node_table_manager -->|"waits for"| node_acpi_service
node_table_manager -->|"waits for"| node_smbios_service
node_table_manager -.->|"queries"| node_config_protocol
node_table_manager -.->|"dispatches"| node_table_generators
node_table_manager -.->|"installs tables"| node_acpi_service
node_table_manager -.->|"installs tables"| node_smbios_service
node_ahci_pei -.->|"provides operations"| node_storage_security_ppi
node_nvme_pei -.->|"provides operations"| node_storage_security_ppi
node_ipmi_storage -->|"submits commands"| node_ipmi_service

click node_boot_menu "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.c"
click node_health_manager "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.c"
click node_table_manager "https://github.com/microsoft/mu_basecore/blob/release/202608/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c"
click node_config_protocol "https://github.com/microsoft/mu_basecore/blob/release/202608/DynamicTablesPkg/Include/Protocol/ConfigurationManagerProtocol.h"
click node_table_generators "https://github.com/microsoft/mu_basecore/tree/release/202608/DynamicTablesPkg/Drivers/DynamicTableManagerDxe"
click node_ahci_pei "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiStorageSecurity.c"
click node_nvme_pei "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiStorageSecurity.c"
click node_storage_security_ppi "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Include/Ppi/StorageSecurityCommand.h"
click node_opal_core "https://github.com/microsoft/mu_basecore/blob/release/202608/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c"
click node_tcg_core "https://github.com/microsoft/mu_basecore/blob/release/202608/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c"
click node_ipmi_storage "https://github.com/microsoft/mu_basecore/blob/release/202608/ManageabilityPkg/Library/IpmiCommandLib/IpmiCommandLibNetFnStorage.c"
click node_null_ipmi "https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnStorage.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_boot_menu,node_health_manager,node_firmware_user toneBlue
class node_table_manager,node_config_protocol,node_table_generators,node_acpi_service,node_smbios_service toneAmber
class node_ahci_pei,node_nvme_pei,node_storage_security_ppi,node_opal_core,node_tcg_core toneMint
class node_ipmi_storage,node_ipmi_service,node_null_ipmi toneRose
```

## Components

### Boot and health UI

- [Boot manager menu](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.c): `MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.c`
- [Driver health forms](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.c): `MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.c`

### Dynamic tables

- [Dynamic table manager](https://github.com/microsoft/mu_basecore/blob/release/202608/DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c): `DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`
- [Configuration manager protocol](https://github.com/microsoft/mu_basecore/blob/release/202608/DynamicTablesPkg/Include/Protocol/ConfigurationManagerProtocol.h): `DynamicTablesPkg/Include/Protocol/ConfigurationManagerProtocol.h`
- [Table generators](https://github.com/microsoft/mu_basecore/tree/release/202608/DynamicTablesPkg/Drivers/DynamicTableManagerDxe): `DynamicTablesPkg/Drivers/DynamicTableManagerDxe`
- **ACPI table service**
- **SMBIOS service**

### Storage security

- [AHCI PEI storage](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Ata/AhciPei/AhciPeiStorageSecurity.c): `MdeModulePkg/Bus/Ata/AhciPei/AhciPeiStorageSecurity.c`
- [NVMe PEI storage](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiStorageSecurity.c): `MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiStorageSecurity.c`
- [Storage security PPI](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Include/Ppi/StorageSecurityCommand.h): `MdeModulePkg/Include/Ppi/StorageSecurityCommand.h`
- [Opal commands](https://github.com/microsoft/mu_basecore/blob/release/202608/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c): `SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c`
- [TCG token core](https://github.com/microsoft/mu_basecore/blob/release/202608/SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c): `SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c`

### Platform management

- [IPMI storage commands](https://github.com/microsoft/mu_basecore/blob/release/202608/ManageabilityPkg/Library/IpmiCommandLib/IpmiCommandLibNetFnStorage.c): `ManageabilityPkg/Library/IpmiCommandLib/IpmiCommandLibNetFnStorage.c`
- **IPMI command transport**
- [Null IPMI instance](https://github.com/microsoft/mu_basecore/blob/release/202608/MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnStorage.c): `MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommandLibNetFnStorage.c`

### Other components

- **Firmware user**

## Connections

- Firmware user → Boot manager menu: opens
- Dynamic table manager → ACPI table service: waits for (evidence: `DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`)
- Dynamic table manager → SMBIOS service: waits for (evidence: `DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`)
- Dynamic table manager → Configuration manager protocol: queries
- Dynamic table manager → Table generators: dispatches (evidence: `DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c`)
- Dynamic table manager → ACPI table service: installs tables
- Dynamic table manager → SMBIOS service: installs tables
- AHCI PEI storage → Storage security PPI: provides operations
- NVMe PEI storage → Storage security PPI: provides operations
- IPMI storage commands → IPMI command transport: submits commands (evidence: `ManageabilityPkg/Library/IpmiCommandLib/IpmiCommandLibNetFnStorage.c`)
