SMM driver for legacy serial redirection, sourced from AmiModulePkg/LegacySerialRedirection. This driver provides SMM-based I/O access to serial ports for legacy serial console redirection during boot. It installs an SMM communicate handler that services read/write/block-fill commands targeting an I/O base address (serial port registers). The driver includes a CMOS-based platform detection mechanism (CMOS offset 0x4C) to determine whether legacy serial redirect is supported on the board. 20 functions across 0x1080 bytes of .text.
sub_44C) (0x44C) -- AutoGen library init; locates SmmBase2 and AmiBufferValidationLibsub_618) (0x618) -- Main entry; checks board support via CMOS, dispatches to main logicsub_C58) (0xC58) -- Primary dispatch; opens SMM subsystem, initializes globalssub_9E8) (0x9E8) -- Registers communicate handler, SW dispatch, and notification callbackssub_6CC) (0x6CC) -- Core handler: decodes read(1)/write(2)/fill(3) commands with width supportsub_115C) (0x115C) -- CMOS 0x4C platform detectionModuleEntryPoint is kept as a compatibility alias to _ModuleEntryPoint.qword_* and byte_* symbols in the decomp notes are now mapped to recovered names in LegacySmmSredir.c/h (gST, gBS, gSmst, gSmmMode, ...).LegacySmmSredir.md carries the detailed behavior and control-flow reconstruction.LegacySmmSredir.c/.h carry the normalized naming surface used for subsequent recovery.