From 3d0a23854e80f952458bd74c4666f2887e79cac9 Mon Sep 17 00:00:00 2001 From: li-elvin Date: Thu, 26 May 2011 06:29:30 +0000 Subject: Add more status code in drivers. Signed-off-by: li-elvin Reviewed-by: jyao1 Reviewed-by: lgao4 Reviewed-by: erictian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11706 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c') diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c index 7acd96fa50..a36d03e827 100644 --- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c +++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c @@ -2309,6 +2309,7 @@ AhciModeInitialization ( Status = AhciIdentify (PciIo, AhciRegisters, Port, 0, &Buffer); if (EFI_ERROR (Status)) { + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_PERIPHERAL_FIXED_MEDIA | EFI_P_EC_NOT_DETECTED)); continue; } @@ -2388,6 +2389,9 @@ AhciModeInitialization ( // Found a ATA or ATAPI device, add it into the device list. // CreateNewDeviceInfo (Instance, Port, 0, DeviceType, &Buffer); + if (DeviceType == EfiIdeHarddisk) { + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_PERIPHERAL_FIXED_MEDIA | EFI_P_PC_ENABLE)); + } } } } -- cgit v1.2.3