]> git.saurik.com Git - apple/xnu.git/blob - iokit/Families/IODVDBlockStorage/IODVDBlockStorageDevice.cpp
5ed3a43f3b963f5d1fc7047c8561f0d388463a28
[apple/xnu.git] / iokit / Families / IODVDBlockStorage / IODVDBlockStorageDevice.cpp
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 #include <IOKit/storage/IODVDBlockStorageDevice.h>
23
24 #define super IOCDBlockStorageDevice
25 OSDefineMetaClass(IODVDBlockStorageDevice,IOCDBlockStorageDevice)
26 OSDefineAbstractStructors(IODVDBlockStorageDevice,IOCDBlockStorageDevice)
27
28 bool
29 IODVDBlockStorageDevice::init(OSDictionary * properties)
30 {
31 bool result;
32
33 result = super::init(properties);
34 if (result) {
35 setProperty(kIOBlockStorageDeviceTypeKey,kIOBlockStorageDeviceTypeDVD);
36 }
37
38 return(result);
39 }
40
41 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 0);
42 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 1);
43 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 2);
44 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 3);
45 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 4);
46 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 5);
47 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 6);
48 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 7);
49 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 8);
50 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 9);
51 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 10);
52 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 11);
53 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 12);
54 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 13);
55 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 14);
56 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 15);
57 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 16);
58 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 17);
59 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 18);
60 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 19);
61 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 20);
62 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 21);
63 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 22);
64 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 23);
65 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 24);
66 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 25);
67 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 26);
68 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 27);
69 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 28);
70 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 29);
71 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 30);
72 OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 31);