Add mmc_read_disc_information. Change get_disctype to use it and thus it
moves from mmc.c into mmc_hl_cmds.c. Status is now the return type, not erasable. Split mmc_cmds.h into mmc_ll_cmds.h and mmc_hl_cmds.h. test/driver/mmc.c for invalid page check we get the right sense key, asc, and ascq.
This commit is contained in:
@@ -83,7 +83,9 @@ main(int argc, const char *argv[])
|
||||
|
||||
{
|
||||
driver_return_code_t i_status;
|
||||
bool b_erasable = mmc_get_disc_erasable(p_cdio, &i_status);
|
||||
bool b_erasable;
|
||||
|
||||
i_status = mmc_get_disc_erasable(p_cdio, &b_erasable);
|
||||
cdio_mmc_feature_profile_t disctype;
|
||||
if (DRIVER_OP_SUCCESS == i_status)
|
||||
printf("Disc is %serasable.\n", b_erasable ? "" : "not ");
|
||||
|
||||
Reference in New Issue
Block a user