libcdio  0.83
mmc_ll_cmds.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
35 #ifndef __CDIO_MMC_LL_CMDS_H__
36 #define __CDIO_MMC_LL_CMDS_H__
37 
38 #include <cdio/mmc.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif /* __cplusplus */
43 
60  mmc_get_configuration(const CdIo_t *p_cdio, void *p_buf,
61  unsigned int i_size,
62  unsigned int return_type,
63  unsigned int i_starting_feature_number,
64  unsigned int i_timeout_ms);
65 
77  uint8_t out_buf[2]);
78 
79 
98  driver_return_code_t mmc_mode_select_10(CdIo_t *p_cdio, /*out*/ void *p_buf,
99  unsigned int i_size, int page,
100  unsigned int i_timeout_ms);
114  driver_return_code_t mmc_mode_sense_10( CdIo_t *p_cdio, /*out*/ void *p_buf,
115  unsigned int i_size,
116  unsigned int i_page_code);
117 
127  driver_return_code_t mmc_mode_sense_6( CdIo_t *p_cdio, /*out*/ void *p_buf,
128  unsigned int i_size, int page);
129 
147  bool b_persistent, bool b_prevent,
148  unsigned int i_timeout_ms);
149 
253  mmc_read_cd(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn,
254  int expected_sector_type, bool b_digital_audio_play,
255  bool b_sync, uint8_t header_codes, bool b_user_data,
256  bool b_edc_ecc, uint8_t c2_error_information,
257  uint8_t subchannel_selection, uint16_t i_blocksize,
258  uint32_t i_blocks);
259 
275  mmc_read_disc_information(const CdIo_t *p_cdio, /*out*/ void *p_buf,
276  unsigned int i_size,
278  unsigned int i_timeout_ms);
279 
306  driver_return_code_t mmc_set_speed( const CdIo_t *p_cdio,
307  int i_Kbs_speed,
308  unsigned int i_timeout_ms);
309 
326  driver_return_code_t mmc_start_stop_unit(const CdIo_t *p_cdio, bool b_eject,
327  bool b_immediate,
328  uint8_t power_condition,
329  unsigned int i_timeout_ms);
330 
343  unsigned int i_timeout_ms);
344 
345 
346 #ifndef DO_NOT_WANT_OLD_MMC_COMPATIBILITY
347 #define mmc_start_stop_media(c, e, i, p, t) \
348  mmc_start_stop_unit(c, e, i, p, t, 0)
349 #endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
350 
351 #ifdef __cplusplus
352 }
353 #endif /* __cplusplus */
354 
355 #endif /* __CDIO_MMC_HL_CMDS_H__ */
356 
357 /*
358  * Local variables:
359  * c-file-style: "gnu"
360  * tab-width: 8
361  * indent-tabs-mode: nil
362  * End:
363  */

Generated for libcdio by doxygen 1.8.1.1