Chameleon

Chameleon Svn Source Tree

Root/branches/rewrite/i386/include/IOKit/storage/IOBlockStorageDevice.h

Source at commit 1129 created 12 years 11 months ago.
By meklort, Change options.o so that it reloads the system config as well. Also change it so that it uses that config for variables (NOTE: if the calue exists in chameleonConfig, it's used instead.
1/*
2 * Copyright (c) 1998-2009 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
24/*!
25 * @header IOBlockStorageDevice
26 * @abstract
27 * This header contains the IOBlockStorageDevice class definition.
28 */
29
30#ifndef _IOBLOCKSTORAGEDEVICE_H
31#define _IOBLOCKSTORAGEDEVICE_H
32
33#include <IOKit/IOTypes.h>
34#include <IOKit/storage/IOStorageDeviceCharacteristics.h>
35
36/*!
37 * @defined kIOBlockStorageDeviceClass
38 * @abstract
39 * The name of the IOBlockStorageDevice class.
40 */
41
42#define kIOBlockStorageDeviceClass "IOBlockStorageDevice"
43
44/*!
45 * @defined kIOBlockStorageDeviceWriteCacheStateKey
46 * @abstract
47 * The name of the property used to get or set the write cache state of the
48 * block storage device.
49 */
50#define kIOBlockStorageDeviceWriteCacheStateKey"WriteCacheState"
51
52#ifdef KERNEL
53#ifdef __cplusplus
54
55/*
56 * Kernel
57 */
58
59#include <IOKit/IOMemoryDescriptor.h>
60#include <IOKit/IOMessage.h>
61#include <IOKit/IOService.h>
62#include <IOKit/storage/IOMedia.h>
63
64/* Property used for matching, so the generic driver gets the nub it wants. */
65/*!
66 * @defined kIOBlockStorageDeviceTypeKey
67 * @abstract The name of the property tested for nub type matching by the generic block
68 * storage driver.
69 */
70#definekIOBlockStorageDeviceTypeKey"device-type"
71/*!
72 * @defined kIOBlockStorageDeviceTypeGeneric
73 * @abstract A character string used for nub matching.
74 */
75#definekIOBlockStorageDeviceTypeGeneric"Generic"
76
77
78#endif /* __cplusplus */
79#endif /* KERNEL */
80#endif /* !_IOBLOCKSTORAGEDEVICE_H */
81

Archive Download this file

Revision: 1129