1/* 2 * Copyright (c) 1998-2012 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23#include <IOKit/storage/IODVDBlockStorageDevice.h> 24 25#define super IOCDBlockStorageDevice 26OSDefineMetaClassAndAbstractStructors(IODVDBlockStorageDevice,IOCDBlockStorageDevice) 27 28bool 29IODVDBlockStorageDevice::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#ifndef __LP64__ 42IOReturn 43IODVDBlockStorageDevice::readDVDStructure(IOMemoryDescriptor *buffer,const DVDStructureFormat format, 44 const UInt32 address,const UInt8 layer,const UInt8 agid) 45{ 46 return(kIOReturnUnsupported); 47} 48#endif /* !__LP64__ */ 49 50#ifdef __LP64__ 51OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 0); 52#else /* !__LP64__ */ 53OSMetaClassDefineReservedUsed(IODVDBlockStorageDevice, 0); 54#endif /* !__LP64__ */ 55OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 1); 56OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 2); 57OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 3); 58OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 4); 59OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 5); 60OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 6); 61OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 7); 62OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 8); 63OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 9); 64OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 10); 65OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 11); 66OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 12); 67OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 13); 68OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 14); 69OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 15); 70OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 16); 71OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 17); 72OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 18); 73OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 19); 74OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 20); 75OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 21); 76OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 22); 77OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 23); 78OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 24); 79OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 25); 80OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 26); 81OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 27); 82OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 28); 83OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 29); 84OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 30); 85OSMetaClassDefineReservedUnused(IODVDBlockStorageDevice, 31); 86