1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Dyspxkrypt LibUEFI: Raw bindings of UEFI that conforms to the definitions of the UEFI Specification.
* Copyright (C) 2023 HTGAzureX1212.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use crate;
/// The EFI table header is the data structure that precedes all of the standard EFI table types.
///
/// ## Notes
///
/// - The capabilities found in the system table, runtime table and boot services table may change
/// over time. The header of these tables’s `Revision` field is incremented when new capabilities and
/// functions are added to the table. When checking for capabilities, code should verify that `Revision`
/// is **greater than or equal to** the revision level of the table at the point when the capabilities
/// were added to the UEFI specification.
///
/// - Unless otherwise specified, UEFI uses a standard CCITT32 CRC algorithm with a seed polynomial
/// value of `0x04C11DB7` for its CRC calculations.
///
/// - The size of the system table, runtime services table, and boot services table may increase over
/// time. It is very important to always use the `HeaderSize` field of the header to determine the size
/// of these tables.