Changeset 39560 in vbox for trunk/src/VBox/Devices/PC/BIOS-new/ata.c
- Timestamp:
- Dec 8, 2011 4:41:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS-new/ata.c
r39366 r39560 586 586 bios_dsk->drqp.dev_id = device; 587 587 588 if (ata_cmd_data_in(bios_dsk, ATA_CMD_IDENTIFY_ DEVICE_PACKET, 1) != 0)588 if (ata_cmd_data_in(bios_dsk, ATA_CMD_IDENTIFY_PACKET, 1) != 0) 589 589 BX_PANIC("ata-detect: Failed to detect ATAPI device\n"); 590 590 … … 1128 1128 // End of ATA/ATAPI Driver 1129 1129 // --------------------------------------------------------------------------- 1130 1131 uint16_t atapi_is_cdrom(uint8_t device)1132 {1133 bio_dsk_t __far *bios_dsk;1134 1135 bios_dsk = read_word(0x0040, 0x000E) :> &EbdaData->bdisk;1136 1137 if (device >= BX_MAX_ATA_DEVICES)1138 return 0;1139 1140 if (bios_dsk->devices[device].type != ATA_TYPE_ATAPI)1141 return 0;1142 1143 if (bios_dsk->devices[device].device != ATA_DEVICE_CDROM)1144 return 0;1145 1146 return 1;1147 }1148 1149 // ---------------------------------------------------------------------------1150 // End of ATA/ATAPI generic functions1151 // ---------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.