summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Bernstein <rocky@gnu.org>2012-10-02 16:59:16 -0400
committerR. Bernstein <rocky@gnu.org>2012-10-02 16:59:16 -0400
commit31914bd41726b548788600de88b370991ba14984 (patch)
treef2927ccc27dd9ad5620d35c402db749fb0c35ae3
parent8a6444d54cf5228cf2f4e364494732b97fbd3b48 (diff)
Add MMC5 commands. Thanks yet again to Thomash Schmitt for doing the heavy lifting.
-rw-r--r--NEWS1
-rw-r--r--include/cdio/mmc.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 259036bb..e5cb73c9 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ version 0.90
- OSX fixes
- paranoia library removed as that is GPL 2-ish. This is now a separate project
- file names in cue files are relative to the cue file rather than cwd.
+- Update mmc.h to include MMC-5 commands. (Or MMC-6 since it adds nothing new)
- bug fixes, more tests, update documentation
version 0.83
diff --git a/include/cdio/mmc.h b/include/cdio/mmc.h
index 247cbe6a..6d6debae 100644
--- a/include/cdio/mmc.h
+++ b/include/cdio/mmc.h
@@ -157,10 +157,13 @@ extern "C" {
/**
Group 2 Commands (CDB's here are 10-bytes)
*/
+ CDIO_MMC_GPCMD_READ_FORMAT_CAPACITIES = 0x23, /**< MMC-5 Section 6.24 */
+ CDIO_MMC_GPCMD_READ_CAPACITIY = 0x25, /**< MMC-5 Section 6.19 */
CDIO_MMC_GPCMD_READ_10 = 0x28, /**< Read data from drive
(10 bytes). */
CDIO_MMC_GPCMD_WRITE_10 = 0x2a,
CDIO_MMC_GPCMD_SEEK_10 = 0x2b,
+ CDIO_MMC_GPCMD_ERASE_10 = 0x2c, /**< MMC5 Section 6.4 */
CDIO_MMC_GPCMD_WRITE_AND_VERIFY_10 = 0x2e,
CDIO_MMC_GPCMD_VERIFY_10 = 0x2f,
CDIO_MMC_GPCMD_SYNCHRONIZE_CACHE = 0x35,
@@ -234,7 +237,7 @@ extern "C" {
handled by Plextor drives.
*/
CDIO_MMC_GPCMD_WRITE_12 = 0xaa,
- CDIO_MMC_GPCMD_READ_MEDIA_SERIAL_12 = 0xab,
+ CDIO_MMC_GPCMD_READ_MEDIA_SERIAL_12 = 0xab, /**< MMC-5 Section 6.25 */
CDIO_MMC_GPCMD_GET_PERFORMANCE = 0xac,
CDIO_MMC_GPCMD_READ_DVD_STRUCTURE = 0xad, /**< Get DVD structure info
from media (12 bytes). */