Changeset 39036 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Oct 19, 2011 1:58:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r39010 r39036 103 103 #define ATA_MEDIA_TYPE_DATA 1 /**< Data CD */ 104 104 #define ATA_MEDIA_TYPE_CDDA 2 /**< CD-DA (audio) CD type */ 105 #define ATA_MEDIA_NO_DISC 0x70 /**< Door closed, no medium */ 105 106 106 107 /******************************************************************************* … … 2629 2630 Assert(s->cbElementaryTransfer <= 16); 2630 2631 ataH2BE_U16(&pbBuf[0], 16 + 6); 2631 pbBuf[2] = 0x70;2632 pbBuf[2] = (uint8_t)s->MediaTrackType; 2632 2633 pbBuf[3] = 0; 2633 2634 pbBuf[4] = 0; … … 2638 2639 pbBuf[8] = 0x01; 2639 2640 pbBuf[9] = 0x06; 2640 pbBuf[10] = 0x00; 2641 pbBuf[11] = 0x05; 2641 pbBuf[10] = 0x00; /* Maximum error recovery */ 2642 pbBuf[11] = 0x05; /* 5 retries */ 2642 2643 pbBuf[12] = 0x00; 2643 2644 pbBuf[13] = 0x00; … … 2657 2658 Assert(s->cbElementaryTransfer <= 40); 2658 2659 ataH2BE_U16(&pbBuf[0], 38); 2659 pbBuf[2] = 0x70;2660 pbBuf[2] = (uint8_t)s->MediaTrackType; 2660 2661 pbBuf[3] = 0; 2661 2662 pbBuf[4] = 0; … … 3716 3717 pIf->cNotifiedMediaChange = 4; 3717 3718 ataMediumRemoved(pIf); 3718 ataMediumTypeSet(pIf, ATA_MEDIA_ TYPE_UNKNOWN);3719 ataMediumTypeSet(pIf, ATA_MEDIA_NO_DISC); 3719 3720 } 3720 3721 … … 6305 6306 */ 6306 6307 ataMediumInserted(pIf); 6308 ataMediumTypeSet(pIf, ATA_MEDIA_TYPE_UNKNOWN); 6307 6309 } 6308 6310 else
Note:
See TracChangeset
for help on using the changeset viewer.