• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 //! ACPI table generation.
6 
7 pub mod aml;
8 pub mod facs;
9 pub mod rsdp;
10 pub mod sdt;
11 
12 pub use self::sdt::HEADER_LEN;
13 
generate_checksum(data: &[u8]) -> u814 fn generate_checksum(data: &[u8]) -> u8 {
15     (255 - data.iter().fold(0u8, |acc, x| acc.wrapping_add(*x))).wrapping_add(1)
16 }
17