libcdio
0.83
Main Page
Data Structures
Files
File List
Globals
include
cdio
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
{
37
CDIO_MMC_FEATURE_PROF_NON_REMOVABLE
= 0x0001,
39
CDIO_MMC_FEATURE_PROF_REMOVABLE
= 0x0002,
41
CDIO_MMC_FEATURE_PROF_MO_ERASABLE
= 0x0003,
44
CDIO_MMC_FEATURE_PROF_MO_WRITE_ONCE
= 0x0004,
46
CDIO_MMC_FEATURE_PROF_AS_MO
= 0x0005,
48
CDIO_MMC_FEATURE_PROF_CD_ROM
= 0x0008,
50
CDIO_MMC_FEATURE_PROF_CD_R
= 0x0009,
52
CDIO_MMC_FEATURE_PROF_CD_RW
= 0x000A,
55
CDIO_MMC_FEATURE_PROF_DVD_ROM
= 0x0010,
56
CDIO_MMC_FEATURE_PROF_DVD_R_SEQ
= 0x0011,
58
CDIO_MMC_FEATURE_PROF_DVD_RAM
= 0x0012,
59
CDIO_MMC_FEATURE_PROF_DVD_RW_RO
= 0x0013,
61
CDIO_MMC_FEATURE_PROF_DVD_RW_SEQ
= 0x0014,
63
CDIO_MMC_FEATURE_PROF_DVD_R_DL_SEQ
= 0x0015,
65
CDIO_MMC_FEATURE_PROF_DVD_R_DL_JR
= 0x0016,
67
CDIO_MMC_FEATURE_PROF_DVD_PRW
= 0x001A,
68
CDIO_MMC_FEATURE_PROF_DVD_PR
= 0x001B,
69
CDIO_MMC_FEATURE_PROF_DDCD_ROM
= 0x0020,
70
CDIO_MMC_FEATURE_PROF_DDCD_R
= 0x0021,
71
CDIO_MMC_FEATURE_PROF_DDCD_RW
= 0x0022,
72
CDIO_MMC_FEATURE_PROF_DVD_PRW_DL
= 0x002A,
73
CDIO_MMC_FEATURE_PROF_DVD_PR_DL
= 0x002B,
76
CDIO_MMC_FEATURE_PROF_BD_ROM
= 0x0040,
77
CDIO_MMC_FEATURE_PROF_BD_SEQ
= 0x0041,
79
CDIO_MMC_FEATURE_PROF_BD_R_RANDOM
= 0x0042,
80
CDIO_MMC_FEATURE_PROF_BD_RE
= 0x0043,
82
CDIO_MMC_FEATURE_PROF_HD_DVD_ROM
= 0x0050,
83
CDIO_MMC_FEATURE_PROF_HD_DVD_R
= 0x0051,
84
CDIO_MMC_FEATURE_PROF_HD_DVD_RAM
= 0x0052,
86
CDIO_MMC_FEATURE_PROF_NON_CONFORM
= 0xFFFF,
88
}
cdio_mmc_feature_profile_t
;
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
114
bool
mmc_is_disctype_bd
(
cdio_mmc_feature_profile_t
disctype);
115
bool
mmc_is_disctype_cdrom
(
cdio_mmc_feature_profile_t
disctype);
116
bool
mmc_is_disctype_dvd
(
cdio_mmc_feature_profile_t
disctype);
117
bool
mmc_is_disctype_hd_dvd
(
cdio_mmc_feature_profile_t
disctype);
118
bool
mmc_is_disctype_overwritable
(
cdio_mmc_feature_profile_t
disctype);
119
bool
mmc_is_disctype_rewritable
(
cdio_mmc_feature_profile_t
disctype);
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
1.8.1.1