1 // Copyright 2020 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 pub mod aml;
6 pub mod rsdp;
7 pub mod sdt;
8 
9 pub use self::sdt::HEADER_LEN;
10 
generate_checksum(data: &[u8]) -> u811 fn generate_checksum(data: &[u8]) -> u8 {
12     (255 - data.iter().fold(0u8, |acc, x| acc.wrapping_add(*x))).wrapping_add(1)
13 }
14