VirtualBox

Ignore:
Timestamp:
Dec 8, 2011 4:41:37 PM (13 years ago)
Author:
vboxsync
Message:

BIOS: Initial AHCI CD-ROM support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS-new/ata.c

    r39366 r39560  
    586586            bios_dsk->drqp.dev_id = device;
    587587
    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)
    589589                BX_PANIC("ata-detect: Failed to detect ATAPI device\n");
    590590
     
    11281128// End of ATA/ATAPI Driver
    11291129// ---------------------------------------------------------------------------
    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 functions
    1151 // ---------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette