2 OSTA Universal Disk Format (UDF) definitions.
4 Copyright (C) 2014-2017 Paulo Alcantara <pcacjr@zytor.com>
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
12 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #define UDF_BEA_IDENTIFIER "BEA01"
19 #define UDF_NSR2_IDENTIFIER "NSR02"
20 #define UDF_NSR3_IDENTIFIER "NSR03"
21 #define UDF_TEA_IDENTIFIER "TEA01"
23 #define UDF_LOGICAL_SECTOR_SHIFT 11
24 #define UDF_LOGICAL_SECTOR_SIZE ((UINT64)(1ULL << UDF_LOGICAL_SECTOR_SHIFT))
25 #define UDF_VRS_START_OFFSET ((UINT64)(16ULL << UDF_LOGICAL_SECTOR_SHIFT))
27 #define _GET_TAG_ID(_Pointer) \
28 (((UDF_DESCRIPTOR_TAG *)(_Pointer))->TagIdentifier)
30 #define IS_AVDP(_Pointer) \
31 ((BOOLEAN)(_GET_TAG_ID (_Pointer) == 2))
37 UINT16 DescriptorVersion
;
40 UINT16 TagSerialNumber
;
42 UINT16 DescriptorCRCLength
;
48 UINT32 ExtentLocation
;
52 UDF_DESCRIPTOR_TAG DescriptorTag
;
53 UDF_EXTENT_AD MainVolumeDescriptorSequenceExtent
;
54 UDF_EXTENT_AD ReserveVolumeDescriptorSequenceExtent
;
56 } UDF_ANCHOR_VOLUME_DESCRIPTOR_POINTER
;