| Include Path: | <IOKit/storage/IOStorageDeviceCharacteristics.h> |
| Path: | /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/storage/IOStorageDeviceCharacteristics.h |
| Includes: | |
Overview
This header contains definitions of keys associated with properties that describe specific device characteristics, such as vendor name and revision level.
For more information on how to use these property keys, see Working With SCSI Architecture Model Devices.
#defines
#define kIOPropertyBytesPerPhysicalSectorKey "Bytes per Physical Sector"
Discussion
This key is used to define the number of heads for
a particular medium.
Requirement: Mandatory element of the Rigid Disk Geometry dictionary.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Rigid Disk Geometry</key>
<dict>
<key>Sector Count per Track</key>
<integer>12345</integer>
<key>Head Count</key>
<integer>12</integer>
<key>Cylinder Count</key>
<integer>12345</integer>
<key>Bytes per Physical Sector</key>
<integer>512</integer>
</dict>
</dict>
</dict>
#define kIOPropertyCylinderCountKey "Cylinder Count"
Discussion
This key is used to define the number of heads for
a particular medium.
Requirement: Mandatory element of the Rigid Disk Geometry dictionary.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Rigid Disk Geometry</key>
<dict>
<key>Sector Count per Track</key>
<integer>12345</integer>
<key>Head Count</key>
<integer>12</integer>
<key>Cylinder Count</key>
<integer>12345</integer>
<key>Bytes per Physical Sector</key>
<integer>512</integer>
</dict>
</dict>
</dict>
#define kIOPropertyDeviceCharacteristicsKey "Device Characteristics"
Discussion
This key is used to define Device Characteristics for a particular
device and it has an associated dictionary which lists the
device characteristics. The device characteristics are Command Set specific
and are listed in the header files for each command set.
Requirement: Mandatory
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
</dict>
</dict>
#define kIOPropertyHeadCountKey "Head Count"
Discussion
This key is used to define the number of heads for
a particular medium.
Requirement: Mandatory element of the Rigid Disk Geometry dictionary.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Rigid Disk Geometry</key>
<dict>
<key>Sector Count per Track</key>
<integer>12345</integer>
<key>Head Count</key>
<integer>12</integer>
<key>Cylinder Count</key>
<integer>12345</integer>
<key>Bytes per Physical Sector</key>
<integer>512</integer>
</dict>
</dict>
</dict>
#define kIOPropertyLogicalBlockSizeKey "Logical Block Size"
Discussion
This key is used to define the logical block size of a hard disk drive.
Requirement: Mandatory for hard disk drives with logical block size other than 512 bytes
or that does not match its physical block size.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Physical Block Size</key>
<integer>4096</integer>
<key>Logical Block Size</key>
<integer>512</integer>
</dict>
</dict>
#define kIOPropertyPhysicalBlockSizeKey "Physical Block Size"
Discussion
This key is used to define the physical block size of a hard disk drive.
Requirement: Mandatory for hard disk drives with physical block size other than 512 bytes.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Physical Block Size</key>
<integer>4096</integer>
<key>Logical Block Size</key>
<integer>512</integer>
</dict>
</dict>
#define kIOPropertyProductNameKey "Product Name"
Discussion
This key is used to define the Product Name for a particular device
and it has an associated string.
Requirement: Mandatory
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
</dict>
</dict>
#define kIOPropertyProductRevisionLevelKey "Product Revision Level"
Discussion
This key is used to define the Product Revision Level for a
particular device and it has an associated string.
Requirement: Mandatory
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
</dict>
</dict>
#define kIOPropertyProductSerialNumberKey "Serial Number"
Discussion
This key is used to define the Product Serial Number for a
particular device and it has an associated data.
Requirement: Mandatory
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Serial Number</key>
<string>123456789</string>
</dict>
</dict>
#define kIOPropertyRigidDiskGeometryKey "Rigid Disk Geometry"
Discussion
This key is used to define a dictionary containing
rigid disk geometry information.
Requirement: Optional. If a device publishes this dictionary, it
must publish all key/value pairs which are deemed Mandatory.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Rigid Disk Geometry</key>
<dict>
<key>Sector Count per Track</key>
<integer>12345</integer>
<key>Head Count</key>
<integer>12</integer>
<key>Cylinder Count</key>
<integer>12345</integer>
<key>Bytes per Physical Sector</key>
<integer>512</integer>
</dict>
</dict>
</dict>
#define kIOPropertySectorCountPerTrackKey "Sector Count per Track"
Discussion
This key is used to define the number of sectors per
each track for a particular medium.
Requirement: Mandatory element of the Rigid Disk Geometry dictionary.
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>Rigid Disk Geometry</key>
<dict>
<key>Sector Count per Track</key>
<integer>12345</integer>
</dict>
</dict>
</dict>
#define kIOPropertySupportedBDFeaturesKey "BD Features"
Discussion
This key is used to define the supported BD Features for a
particular optical device and it has an associated bitfield. See
for definitions of the
bits and associated bitmasks.
Requirement: Mandatory for optical devices (Peripheral Device Type 05h).
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>SuperDrive</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>CD Features</key>
<integer>1663</integer>
<key>DVD Features</key>
<integer>103</integer>
<key>BD Features</key>
<integer>21</integer>
</dict>
</dict>
#define kIOPropertySupportedCDFeaturesKey "CD Features"
Discussion
This key is used to define the supported CD Features for a
particular optical device and it has an associated bitfield. See
for definitions of the
bits and associated bitmasks.
Requirement: Mandatory for optical devices (Peripheral Device Type 05h).
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>SuperDrive</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>CD Features</key>
<integer>1663</integer>
<key>DVD Features</key>
<integer>103</integer>
</dict>
</dict>
#define kIOPropertySupportedDVDFeaturesKey "DVD Features"
Discussion
This key is used to define the supported DVD Features for a
particular optical device and it has an associated bitfield. See
for definitions of the
bits and associated bitmasks.
Requirement: Mandatory for optical devices (Peripheral Device Type 05h).
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>SuperDrive</string>
<key>Product Revision Level</key>
<string>1.0</string>
<key>CD Features</key>
<integer>1663</integer>
<key>DVD Features</key>
<integer>103</integer>
</dict>
</dict>
#define kIOPropertyVendorNameKey "Vendor Name"
Discussion
This key is used to define the Vendor Name for a particular device
and it has an associated string.
Requirement: Mandatory
Example:
<dict>
<key>Device Characteristics</key>
<dict>
<key>Vendor Name</key>
<string>Apple</string>
<key>Product Name</key>
<string>iPod</string>
<key>Product Revision Level</key>
<string>1.0</string>
</dict>
</dict>
Last Updated: 2008-03-11