R. Bernstein
21f3187bb8
More small header changes:
...
* Remove leading underscores in header preprocessor names
* Regularize names to include directory parts in the file name
* Untabify files
* Update copyright and remove unmaintained cvs $Id$ line
The justification for removing leading underscores comes from a CERTS Secure Coding recommendation: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL32-CPP.+Do+not+declare+or+define+a+reserved+identifier
See also Savannah bug #35745 https://savannah.gnu.org/bugs/?35745
2012-03-18 12:02:01 -04: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
5656a0b14c
Remove duplicate cdio_mmc_disctype_t.
2010-02-08 19:01:14 -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
R. Bernstein
bf7d63b435
Add mcc_test_unit_ready and mmc_mode_select (buggy). Allow for timeouts on
...
mmc commands - more work needed here too.
2010-02-07 07:20:28 -05:00
R. Bernstein
51f6eb6912
Small cleanups
2010-02-06 23:27:46 -05:00
R. Bernstein
f93e673fd5
lib/driver/mmc.c - DRY code. Warning - might have introduced breakage here
...
*mmc*: mmc_start_stop_media -> mmc_start_stop_unit,
CDIO_MMC_GPCMD_START_STOP -> CDIO_MMC_GPCMD_START_STOP_UNIT
cdio++/mmc.hpp: Regularize Doxygen comment format.
2010-02-06 22:53:03 -05:00
R. Bernstein
1687e2633f
Start to split off specific mmc commands from the lower-level internals.
2010-02-06 11:59:35 -05:00