+ //\r
+ // For CD-ROM working in the AHCI mode, only 8 bits are used to record\r
+ // the PortMultiplier information. If the CD-ROM is directly attached\r
+ // on a SATA port, the PortMultiplier should be translated from 0xFF\r
+ // to 0xFFFF according to the UEFI spec.\r
+ //\r
+ if ((Instance->Mode == EfiAtaAhciMode) &&\r
+ (DeviceInfo->Type == EfiIdeCdrom) &&\r
+ (PortMultiplier == 0xFF)) {\r
+ PortMultiplier = 0xFFFF;\r
+ }\r
+\r