the capacity is below 120G, 48bit addressing is not needed\r
\r
@retval EFI_DEVICE_ERROR The identify data in IdeDev is incorrect\r
+ \r
+ @retval EFI_INVALID_PARAMETER The identify data in IdeDev is NULL.\r
\r
@note\r
This function must be called after DEVICE_IDENTITY command has been\r
EFI_IDENTIFY_DATA *Atapi6IdentifyStruct;\r
\r
if (IdeDev->pIdData == NULL) {\r
- return EFI_UNSUPPORTED;\r
+ return EFI_INVALID_PARAMETER;\r
}\r
\r
Atapi6IdentifyStruct = IdeDev->pIdData;\r
// Just a trick for ENABLE attribute\r
// EFI_PCI_DEVICE_ENABLE is not defined in UEFI spec, which is the internal usage.\r
// So, this logic doesn't confrom to UEFI spec, which should be removed.\r
+ // But this trick logic is still kept for some binary drivers that depend on it.\r
//\r
- // if ((Attributes & EFI_PCI_DEVICE_ENABLE) == EFI_PCI_DEVICE_ENABLE) {\r
- // Attributes &= (PciIoDevice->Supports);\r
- //\r
- // //\r
- // // Raise the EFI_P_PC_ENABLE Status code\r
- // //\r
- // REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
- // EFI_PROGRESS_CODE,\r
- // EFI_IO_BUS_PCI | EFI_P_PC_ENABLE,\r
- // PciIoDevice->DevicePath\r
- // );\r
- // }\r
+ if ((Attributes & EFI_PCI_DEVICE_ENABLE) == EFI_PCI_DEVICE_ENABLE) {\r
+ Attributes &= (PciIoDevice->Supports);\r
+\r
+ //\r
+ // Raise the EFI_P_PC_ENABLE Status code\r
+ //\r
+ REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
+ EFI_PROGRESS_CODE,\r
+ EFI_IO_BUS_PCI | EFI_P_PC_ENABLE,\r
+ PciIoDevice->DevicePath\r
+ );\r
+ }\r
\r
//\r
// If no attributes can be supported, then return.\r