# HddSecurity

| Field       | Value                                                     |
|-------------|-----------------------------------------------------------|
| Index       | 0311                                                      |
| Module      | HddSecurity                                               |
| Size        | 26,628 bytes (PE32+)                                      |
| SHA256      | 360f1422984c71a7f7a4609203e43937bcfc8c698819bf34c5b3e70e474a788a |
| Phase       | DXE                                                       |
| Package     | AmiModulePkg/HddSecurity                                  |
| Build       | DEBUG_VS2015 X64                                          |
| Image       | HR6N0XMLK                                                 |
| Entry Point | 0x370                                                     |

## Overview

This DXE driver implements the AMI HddSecurity Protocol for managing ATA device security features, including password protection and secure erase, on both legacy IDE (Block I/O) and AHCI (Storage Security Command) controller interfaces. It installs protocol notifications to detect block I/O and ATA pass-through controllers, performs ATA security command transactions via passthrough, and publishes HII forms for user interaction through BIOS setup.

## Key Functions

- HddSecurityDriverEntry -- Entry point; installs protocol notifications for Block I/O and ATA pass-through
- HddSecurityBindingStart -- Binds to a detected ATA controller and publishes HddSecurity protocol
- HddSecurityBindingStop -- Unbinds from an ATA controller
- HddSecurityPasswordSet -- Issues ATA security password set command
- HddSecurityPasswordUnlock -- Issues ATA security unlock command
- HddSecurityErase -- Issues ATA secure erase command
- HddSecurityFormCallback -- Handles HII form input for security operations

## Dependencies

- Block I/O Protocol (gEfiBlockIoProtocolGuid)
- Storage Security Command Protocol (gEfiStorageSecurityCommandProtocolGuid)
- ATA Pass-Through Protocol (gEfiAtaPassThroughProtocolGuid)
- HII Package List Protocol (gEfiHiiPackageListProtocolGuid)
- AMI HddSecurity Protocol (gAmiHddSecurityProtocolGuid)
- UEFI Device Path Protocol

## Platform

X64 UEFI DXE driver, PE32+ format, 5 sections (.text, .rdata, .data, section_3, .xdata). The largest of the eight modules at ~26 KB with substantial .data for ATA command logging.