#include <IOKit/storage/IOBDTypes.h>
IOKit/storage/IOBDTypes.h
(enable 8-bit struct packing)
enum(anonymous)
| kBDMediaTypeUnknown | 768 | |
| kBDMediaTypeROM | 770 | BD-ROM |
| kBDMediaTypeRE | 771 | BD-RE |
| kBDMediaTypeR | 772 | BD-R |
| kBDMediaTypeMin | 768 | |
| kBDMediaTypeMax | 1023 |
typedefBDMediaType
typedef UInt32 BDMediaType
macrokBDSpeedMin
#define kBDSpeedMin 0x1126
macrokBDSpeedMax
#define kBDSpeedMax 0xFFFF
structBDDiscInfo
Read Disc Information Format
| UInt16 | dataLength | |
| UInt8:2 | discStatus | |
| UInt8:2 | stateOfLastSession | |
| UInt8:1 | erasable | |
| UInt8:3 | dataType | |
| UInt8 | reserved2 | |
| UInt8 | numberOfSessionsLSB | |
| UInt8 | firstTrackNumberInLastSessionLSB | |
| UInt8 | lastTrackNumberInLastSessionLSB | |
| UInt8[2] | reserved4 | |
| UInt8 | numberOfSessionsMSB | |
| UInt8 | firstTrackNumberInLastSessionMSB | |
| UInt8 | lastTrackNumberInLastSessionMSB | |
| UInt8[22] | reserved6 |
typedefBDDiscInfo
typedef struct BDDiscInfo BDDiscInfo
structBDTrackInfo
Read Track Information Format
| UInt16 | dataLength | |
| UInt8 | trackNumberLSB | |
| UInt8 | sessionNumberLSB | |
| UInt8 | reserved | |
| UInt8:5 | reserved2 | |
| UInt8:1 | damage | |
| UInt8:2 | reserved3 | |
| UInt8:6 | reserved4 | |
| UInt8:1 | blank | |
| UInt8:1 | reservedTrack | |
| UInt8:1 | nextWritableAddressValid | |
| UInt8:1 | lastRecordedAddressValid | |
| UInt8:6 | reserved5 | |
| UInt32 | trackStartAddress | |
| UInt32 | nextWritableAddress | |
| UInt32 | freeBlocks | |
| UInt32 | clusterSize | |
| UInt32 | trackSize | |
| UInt32 | lastRecordedAddress | |
| UInt8 | trackNumberMSB | |
| UInt8 | sessionNumberMSB | |
| UInt8 | reserved6 | |
| UInt8 | reserved7 |
typedefBDTrackInfo
typedef struct BDTrackInfo BDTrackInfo