Accept SATA-on-IDE-controller as equivalent to PATA.

This commit is contained in:
Kevin Lange 2015-05-26 11:13:25 -07:00
parent 495a20272a
commit badc2f375c

View File

@ -281,8 +281,9 @@ static int ata_device_detect(struct ata_device * dev) {
/* Nothing here */
return 0;
}
if (cl == 0x00 && ch == 0x00) {
/* Parallel ATA device */
if ((cl == 0x00 && ch == 0x00) ||
(cl == 0x3C && ch == 0xC3)) {
/* Parallel ATA device, or emulated SATA */
char devname[64];
sprintf((char *)&devname, "/dev/hd%c", ata_drive_char);