1/* 2 * Copyright (c) 1998-2003 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 23#ifndef _IOKIT_IOFWSBP2PSEUDOADDRESSSPACE_H 24#define _IOKIT_IOFWSBP2PSEUDOADDRESSSPACE_H 25 26#include <IOKit/firewire/IOFWPseudoAddressSpace.h> 27 28#pragma mark - 29 30class IOFireWireUnit; 31 32/*! 33 @class IOFWSBP2PseudoAddressSpace 34*/ 35 36class IOFWSBP2PseudoAddressSpace : public IOFWPseudoAddressSpace 37{ 38 OSDeclareDefaultStructors(IOFWSBP2PseudoAddressSpace) 39 40protected: 41 42 /*! 43 @struct ExpansionData 44 @discussion This structure will be used to expand the capablilties of the class in the future. 45 */ 46 47 struct ExpansionData { }; 48 49 /*! 50 @var reserved 51 Reserved for future use. (Internal use only) 52 */ 53 54 ExpansionData *reserved; 55 56public: 57 58 virtual void setAddressLo( UInt32 addressLo ); 59 60 static IOFWSBP2PseudoAddressSpace * simpleRead( IOFireWireBus * control, 61 FWAddress * addr, 62 UInt32 len, 63 const void * data ); 64 65 static IOFWSBP2PseudoAddressSpace * simpleRW( IOFireWireBus * control, 66 FWAddress * addr, 67 UInt32 len, 68 void * data ); 69 70 static IOFWSBP2PseudoAddressSpace * createPseudoAddressSpace( IOFireWireBus * control, 71 IOFireWireUnit * unit, 72 FWAddress * addr, 73 UInt32 len, 74 FWReadCallback reader, 75 FWWriteCallback writer, 76 void * refcon ); 77 78private: 79 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 0); 80 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 1); 81 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 2); 82 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 3); 83 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 4); 84 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 5); 85 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 6); 86 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 7); 87 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 8); 88 OSMetaClassDeclareReservedUnused(IOFWSBP2PseudoAddressSpace, 9); 89 90}; 91 92#endif 93