libcdio  0.83
mmc_util.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 
25 #ifndef __CDIO_MMC_UTIL_H__
26 #define __CDIO_MMC_UTIL_H__
27 
28 #include <cdio/device.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33 
36  typedef enum {
89 
94  const char *mmc_feature2str( int i_feature );
95 
104  void mmc_get_drive_cap ( CdIo_t *p_cdio,
105  /*out*/ cdio_drive_read_cap_t *p_read_cap,
106  /*out*/ cdio_drive_write_cap_t *p_write_cap,
107  /*out*/ cdio_drive_misc_cap_t *p_misc_cap);
108 
112  const char *mmc_feature_profile2str( int i_feature_profile );
113 
120 
122 #define MMC_READ_TIMEOUT_DEFAULT 3*60*1000
123 
128  extern uint32_t mmc_read_timeout_ms;
129 
133  extern const char mmc_sense_key2str[16][40];
134 
138 #define MMC_TIMEOUT_DEFAULT 6000
139 
144  extern uint32_t mmc_timeout_ms;
145 
146 #ifdef __cplusplus
147 }
148 #endif /* __cplusplus */
149 
150 #endif /* __MMC_UTIL_H__ */
151 /*
152  * Local variables:
153  * c-file-style: "gnu"
154  * tab-width: 8
155  * indent-tabs-mode: nil
156  * End:
157  */

Generated for libcdio by doxygen 1.8.1.1