]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/storage/IODVDMedia.h
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 * This header contains the IODVDMedia class definition.
33 * @defined kIODVDMediaClass
35 * kIODVDMediaClass is the name of the IODVDMedia class.
37 * kIODVDMediaClass is the name of the IODVDMedia class.
40 #define kIODVDMediaClass "IODVDMedia"
43 * @defined kIODVDMediaTypeKey
45 * kIODVDMediaTypeKey is a property of IODVDMedia objects. It has an OSString
48 * The kIODVDMediaTypeKey property identifies the DVD media type (DVD-ROM,
49 * DVD-R, DVD-RW, DVD+RW, DVD-RAM, etc). See the kIODVDMediaType contants
50 * for possible values.
53 #define kIODVDMediaTypeKey "Type"
56 * @defined kIODVDMediaTypeROM
57 * The kIODVDMediaTypeKey constant for DVD-ROM media.
60 #define kIODVDMediaTypeROM "DVD-ROM"
63 * @defined kIODVDMediaTypeR
64 * The kIODVDMediaTypeKey constant for DVD Recordable (DVD-R) media.
67 #define kIODVDMediaTypeR "DVD-R"
70 * @defined kIODVDMediaTypeRW
71 * The kIODVDMediaTypeKey constant for DVD ReWritable (DVD-RW) media.
74 #define kIODVDMediaTypeRW "DVD-RW"
77 * @defined kIODVDMediaTypePlusRW
78 * The kIODVDMediaTypeKey constant for DVD "Plus" ReWritable (DVD+RW) media.
81 #define kIODVDMediaTypePlusRW "DVD+RW"
84 * @defined kIODVDMediaTypeRAM
85 * The kIODVDMediaTypeKey constant for DVD-RAM media.
88 #define kIODVDMediaTypeRAM "DVD-RAM"
94 #if defined(KERNEL) && defined(__cplusplus)
96 #include <IOKit/storage/IODVDBlockStorageDriver.h>
97 #include <IOKit/storage/IOMedia.h>
102 * The IODVDMedia class is a random-access disk device abstraction for DVDs.
104 * The IODVDMedia class is a random-access disk device abstraction for DVDs.
107 class IODVDMedia
: public IOMedia
109 OSDeclareDefaultStructors(IODVDMedia
)
113 struct ExpansionData
{ /* */ };
114 ExpansionData
* _expansionData
;
119 * Obtain this object's provider. We override the superclass's method to
120 * return a more specific subclass of IOService -- IODVDBlockStorageDriver.
121 * This method serves simply as a convenience to subclass developers.
124 virtual IODVDBlockStorageDriver
* getProvider() const;
126 OSMetaClassDeclareReservedUnused(IODVDMedia
, 0);
127 OSMetaClassDeclareReservedUnused(IODVDMedia
, 1);
128 OSMetaClassDeclareReservedUnused(IODVDMedia
, 2);
129 OSMetaClassDeclareReservedUnused(IODVDMedia
, 3);
130 OSMetaClassDeclareReservedUnused(IODVDMedia
, 4);
131 OSMetaClassDeclareReservedUnused(IODVDMedia
, 5);
132 OSMetaClassDeclareReservedUnused(IODVDMedia
, 6);
133 OSMetaClassDeclareReservedUnused(IODVDMedia
, 7);
134 OSMetaClassDeclareReservedUnused(IODVDMedia
, 8);
135 OSMetaClassDeclareReservedUnused(IODVDMedia
, 9);
136 OSMetaClassDeclareReservedUnused(IODVDMedia
, 10);
137 OSMetaClassDeclareReservedUnused(IODVDMedia
, 11);
138 OSMetaClassDeclareReservedUnused(IODVDMedia
, 12);
139 OSMetaClassDeclareReservedUnused(IODVDMedia
, 13);
140 OSMetaClassDeclareReservedUnused(IODVDMedia
, 14);
141 OSMetaClassDeclareReservedUnused(IODVDMedia
, 15);
142 OSMetaClassDeclareReservedUnused(IODVDMedia
, 16);
143 OSMetaClassDeclareReservedUnused(IODVDMedia
, 17);
144 OSMetaClassDeclareReservedUnused(IODVDMedia
, 18);
145 OSMetaClassDeclareReservedUnused(IODVDMedia
, 19);
146 OSMetaClassDeclareReservedUnused(IODVDMedia
, 20);
147 OSMetaClassDeclareReservedUnused(IODVDMedia
, 21);
148 OSMetaClassDeclareReservedUnused(IODVDMedia
, 22);
149 OSMetaClassDeclareReservedUnused(IODVDMedia
, 23);
150 OSMetaClassDeclareReservedUnused(IODVDMedia
, 24);
151 OSMetaClassDeclareReservedUnused(IODVDMedia
, 25);
152 OSMetaClassDeclareReservedUnused(IODVDMedia
, 26);
153 OSMetaClassDeclareReservedUnused(IODVDMedia
, 27);
154 OSMetaClassDeclareReservedUnused(IODVDMedia
, 28);
155 OSMetaClassDeclareReservedUnused(IODVDMedia
, 29);
156 OSMetaClassDeclareReservedUnused(IODVDMedia
, 30);
157 OSMetaClassDeclareReservedUnused(IODVDMedia
, 31);
160 #endif /* defined(KERNEL) && defined(__cplusplus) */
162 #endif /* !_IODVDMEDIA_H */