Changeset 17947 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 16, 2009 4:00:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r17828 r17947 1757 1757 for (uint32_t i = s->iATAPILBA; i < s->iATAPILBA + cSectors; i++) 1758 1758 { 1759 /* sync bytes */1759 /* Sync bytes, see 4.2.3.8 CD Main Channel Block Formats */ 1760 1760 *pbBuf++ = 0x00; 1761 memset(pbBuf, 0xff, 11); 1762 pbBuf += 11; 1761 memset(pbBuf, 0xff, 10); 1762 pbBuf += 10; 1763 *pbBuf++ = 0x00; 1763 1764 /* MSF */ 1764 1765 ataLBA2MSF(pbBuf, i); … … 1770 1771 break; 1771 1772 pbBuf += 2048; 1772 /* ECC */ 1773 memset(pbBuf, 0, 288); 1774 pbBuf += 288; 1773 /** 1774 * @todo: maybe compute ECC and parity, layout is: 1775 * 2072 4 EDC 1776 * 2076 172 P parity symbols 1777 * 2248 104 Q parity symbols 1778 */ 1779 memset(pbBuf, 0, 280); 1780 pbBuf += 280; 1775 1781 } 1776 1782 }
Note:
See TracChangeset
for help on using the changeset viewer.