# CpuIo2Dxe

| Field | Value |
|-------|-------|
| Index | 0012 |
| Module | CpuIo2Dxe.efi |

## Overview

Standard EDK2 UEFI CPU I/O 2 Protocol DXE Driver. Implements and produces the
EFI_CPU_IO2_PROTOCOL for validated access to memory-mapped I/O (MMIO) and port
I/O spaces. Each access is parameter-validated for width, alignment, address
range, and buffer alignment before dispatch. Source from
UefiCpuPkg\CpuIo2Dxe\CpuIo2Dxe.c (Intel EDK2).

## Key Functions

- **CpuIoInitialize** — installs the EFI_CPU_IO2_PROTOCOL on a new handle
- **CpuIoCheckParameter** — validates width, offset, count, and buffer alignment
- **CpuIoMemRead** / **CpuIoMemWrite** — MMIO read/write with validation
- **CpuIoRead** / **CpuIoWrite** — port I/O read/write with validation

## Protocols / Dependencies

- EFI_CPU_IO2_PROTOCOL

## Platform

HR650X Purley (generic DXE driver)