R. Bernstein
14f6f505ce
Some more pbatard patches
2012-03-04 14:12:09 -05:00
R. Bernstein
c242ca3997
Look for a NULL destination buffer in mmc_read_cd and return
...
DRIVER_OP_BAD_POINTER in this particular situation.
2011-11-27 17:47:50 -05:00
R. Bernstein
f215cad224
Make sure config.h or the copy of that gets included only once to reduce duplicate include
...
warnings.
2011-10-20 19:44:10 -04:00
R. Bernstein
7f37476924
Split off MMC tests which don't involve exclusive access from those that do.
2010-02-10 22:30:37 -05:00
R. Bernstein
80304a8cef
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.
2010-02-09 22:39:05 -05:00
R. Bernstein
100654b51b
Fix all fo the bugs I introduced "improving" the code of others.
...
mmc_ll_cmds.c: mmc_mode_select and mmc_get_configuration now work.
mmc_hl_cmds.c: bug introduced by turning a var into a pointer to that variable.
2010-02-08 16:56:04 -05:00
R. Bernstein
2d3b7d28b4
Add SCSI-MMC GET CONFIGURATION.
...
Add Frank Endres' disc type determination via MMC.
Be more careful to suffix with CDIO_MMC which I hope will reduce possible name conflicts.
2010-02-07 21:04:21 -05:00
R. Bernstein
aa7f7e1315
Start populating mmc/mmc_hl_cmds.c. Create mmc directory in preparation
...
for making it a library.
mmc.h: CDIO_MMC_GPCMD_ALLOW_MEDIUM_REMOVAL ->
CDIO_MMC_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
mmc.c: Move mm_eject_media and mmc_set_drive_speed to mmc/mmc_hl_cmds.c
mmc_ll_cmds.c: add mmc_prevent_allow_medium_removal,
move mmc_mode_sense to mmc/mmc_hl_cmds.c
2010-02-07 19:21:33 -05:00
R. Bernstein
d3a0ba06e1
Move more towards making MMC a library. Start to reorganize more to
...
break out 1-1 SCSI-MMC commands (in mmc_ll_cmds.c) from higher-level
commands which use the lower-level ones.
2010-02-07 18:35:47 -05:00