| Index | Module | Size | Phase |
|---|---|---|---|
| 307 | CsmDxe.efi | 77,412 bytes (12E64h) | DXE |
CsmDxe implements the UEFI Compatibility Support Module (CSM), which enables legacy BIOS boot and legacy Option ROM execution on UEFI systems. Based on the AMI CSM implementation, it installs the Legacy BIOS Protocol for 16-bit CSM16 thunk communication, manages Option ROM execution for PCI devices, handles PCI interrupt routing (PIRQ), builds E820 memory maps for legacy OS booting, and provides S3 boot script support for legacy boot paths.
CsmDxeConstructor -- Constructs the CSM driver context and initializes global stateCsmLegacyBiosInstall -- Installs the Legacy BIOS Protocol interfaceCsmLegacyBiosBoot -- Handles legacy boot path entry via INT19CsmLegacyBiosGetBbsInfo -- Returns BBS (BIOS Boot Specification) table entriesCsmExecuteOprom -- Executes and shadows a legacy Option ROM for a PCI deviceCsmShadowAllLegacyOproms -- Shadows all discovered legacy Option ROMsCsmPciIrqInit -- Initializes PCI interrupt routingCsmRoutePciIrq -- Routes PCI interrupt lines via PIRQ tableCsmBuildE820Map -- Builds the E820 memory map for legacy OS bootingCsmThunk16Entry -- Entry point for 16-bit CSM16 thunk callsCsmAllConnectedCallback -- ReadyToBoot callback that finalizes CSM stateEFI_LEGACY_BIOS_PROTOCOL -- Legacy BIOS protocol (produced)EFI_LEGACY_INTERRUPT_PROTOCOL -- Legacy interrupt routingEFI_AMI_BOARD_INFO_PROTOCOL -- AMI board informationEFI_PCI_IO_PROTOCOL -- PCI device accessSmmLockBoxLib -- S3 boot script storageDxeServicesTableLib -- DXE memory and services