From 1d727d1adb48a502d93f24a6e633e03aed4f117b Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 7 Aug 2004 03:24:45 +0000 Subject: [PATCH] Add more feature descriptions. --- example/sample10.c | 26 +++++++++++++++++++------- src/util.c | 23 ++++++++++++++++------- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/example/sample10.c b/example/sample10.c index 8552fc4f..bb58b865 100644 --- a/example/sample10.c +++ b/example/sample10.c @@ -1,5 +1,5 @@ /* - $Id: sample10.c,v 1.2 2004/08/07 01:48:36 rocky Exp $ + $Id: sample10.c,v 1.3 2004/08/07 03:25:02 rocky Exp $ Copyright (C) 2004 Rocky Bernstein @@ -249,18 +249,15 @@ main(int argc, const char *argv[]) case CDIO_MMC_FEATURE_RESTRICT_OVERW: printf("Restricted Overwrite Feature\n"); break; - case CDIO_MMC_FEATURE_LU_SN: - printf("Logical Unit Serial Number Feature\n"); - break; - case CDIO_MMC_FEATURE_MCODE_UPGRADE: - printf("Microcode Upgrade Feature\n"); - break; case CDIO_MMC_FEATURE_CD_TAO: printf("CD Track at Once Feature\n"); break; case CDIO_MMC_FEATURE_CD_SAO: printf("CD Mastering (Session at Once) Feature\n"); break; + case CDIO_MMC_FEATURE_POWER_MGMT: + printf("Initiator and device directed power management\n"); + break; case CDIO_MMC_FEATURE_CDDA_EXT_PLAY: printf("CD Audio External Play Feature\n"); printf("\tSCAN command is %ssupported\n", @@ -276,6 +273,21 @@ main(int argc, const char *argv[]) } printf("\n"); break; + case CDIO_MMC_FEATURE_MCODE_UPGRADE: + printf("Ability for the device to accept new microcode via " + "the interface\n"); + break; + case CDIO_MMC_FEATURE_TIME_OUT: + printf("Ability to respond to all commands within a " + "specific time\n"); + break; + case CDIO_MMC_FEATURE_DVD_CSS: + printf("Ability to perform DVD CSS/CPPM authentication and" + " RPC\n"); + break; + case CDIO_MMC_FEATURE_LU_SN: + printf("The Logical Unit has a unique identifier\n"); + break; default: printf("Unknown feature code %x\n", i_feature); } diff --git a/src/util.c b/src/util.c index b89ac777..06210311 100644 --- a/src/util.c +++ b/src/util.c @@ -1,5 +1,5 @@ /* - $Id: util.c,v 1.14 2004/08/07 01:48:36 rocky Exp $ + $Id: util.c,v 1.15 2004/08/07 03:24:45 rocky Exp $ Copyright (C) 2003, 2004 Rocky Bernstein @@ -299,12 +299,6 @@ print_mmc_drive_features(CdIo *p_cdio) case CDIO_MMC_FEATURE_RESTRICT_OVERW: printf("Restricted Overwrite Feature\n"); break; - case CDIO_MMC_FEATURE_LU_SN: - printf("Logical Unit Serial Number Feature\n"); - break; - case CDIO_MMC_FEATURE_MCODE_UPGRADE: - printf("Microcode Upgrade Feature\n"); - break; case CDIO_MMC_FEATURE_CD_TAO: printf("CD Track at Once Feature\n"); break; @@ -326,6 +320,21 @@ print_mmc_drive_features(CdIo *p_cdio) } printf("\n"); break; + case CDIO_MMC_FEATURE_MCODE_UPGRADE: + printf("Ability for the device to accept new microcode via " + "the interface\n"); + break; + case CDIO_MMC_FEATURE_TIME_OUT: + printf("Ability to respond to all commands within a " + "specific time\n"); + break; + case CDIO_MMC_FEATURE_DVD_CSS: + printf("Ability to perform DVD CSS/CPPM authentication and" + " RPC\n"); + break; + case CDIO_MMC_FEATURE_LU_SN: + printf("The Logical Unit has a unique identifier\n"); + break; default: printf("Unknown feature code %x\n", i_feature); }