]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/storage/IODVDTypes.h
4b13111ea8b581fbb1e80b92535c84a5717c3068
[apple/xnu.git] / iokit / IOKit / storage / IODVDTypes.h
1 /*
2 * Copyright (c) 2000 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 #ifndef _IODVDTYPES_H
23 #define _IODVDTYPES_H
24
25 #include <IOKit/IOTypes.h>
26
27 enum DVDKeyFormat {
28 kCSSAGID = 0x00,
29 kChallengeKey = 0x01,
30 kKey1 = 0x02,
31 kKey2 = 0x03,
32 kTitleKey = 0x04,
33 kASF = 0x05,
34 kSetRegion = 0x06,
35 kRPCState = 0x08,
36 kCSS2AGID = 0x10,
37 kCPRMAGID = 0x11,
38 kInvalidateAGID = 0x3f
39 };
40
41 enum DVDKeyClass {
42 kCSS_CSS2_CPRM = 0x00,
43 kRSSA = 0x01
44 };
45
46 enum DVDMediaType {
47 kDVDMediaTypeUnknown = 0x0200,
48 kDVDMediaTypeROM = 0x0202, /* DVD-ROM */
49 kDVDMediaTypeRAM = 0x0203, /* DVD-RAM */
50 kDVDMediaTypeR = 0x0204, /* DVD-R */
51 kDVDMediaTypeRW = 0x0205, /* DVD-RW */
52 kDVDMediaTypePlusRW = 0x0206, /* DVD+RW */
53
54 kDVDMediaTypeMin = 0x0200,
55 kDVDMediaTypeMax = 0x02FF
56 };
57
58 #endif