]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/cdb/IOCDBDevice.h
e2eb3d0f5b5f9f18b96d61ca1097e2399add8cb2
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@
28 * Note: CDBCommand(s) are allocated and freed by methods in this class.
29 * The remaining methods to setup and submit CDBCommands are defined in
32 #ifndef _IOCDBDEVICE_H
33 #define _IOCDBDEVICE_H
37 class IOCDBDevice
: public IOService
39 OSDeclareAbstractStructors(IOCDBDevice
)
41 /*------------------Methods provided to IOCDBDevice clients-----------------------*/
44 * Allocate a CDB Command
46 virtual IOCDBCommand
*allocCommand( IOCDBDevice
*deviceType
, UInt32 clientDataSize
= 0 ) = 0;
49 * Abort all outstanding commands on this device
51 virtual void abort() = 0;
54 * Reset device (also aborts all outstanding commands)
56 virtual void reset() = 0;
59 * Obtain information about this device
61 virtual void getInquiryData( void *inquiryBuffer
,
62 UInt32 inquiryBufSize
,
63 UInt32
*inquiryDataSize
) = 0;
66 #define kIOCDBDevice ((IOCDBDevice *)0)