#include <stdint.h>
Go to the source code of this file.
Data Structures | |
| struct | acpi_description_header |
| An ACPI description header. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | acpi_fix_checksum (struct acpi_description_header *acpi) |
| Fix up ACPI table checksum. | |
Variables | |
| struct acpi_description_header | packed |
| An ACPI description header. | |
Definition in file acpi.h.
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void acpi_fix_checksum | ( | struct acpi_description_header * | acpi | ) |
Fix up ACPI table checksum.
| acpi | ACPI table header |
Definition at line 34 of file acpi.c.
References acpi_description_header::checksum, and acpi_description_header::length.
Referenced by abft_fill_data(), ibft_fill_data(), and sbft_fill_data().
00034 { 00035 unsigned int i = 0; 00036 uint8_t sum = 0; 00037 00038 for ( i = 0 ; i < acpi->length ; i++ ) { 00039 sum += *( ( ( uint8_t * ) acpi ) + i ); 00040 } 00041 acpi->checksum -= sum; 00042 }
| struct acpi_description_header packed |
An ACPI description header.
This is the structure common to the start of all ACPI system description tables.
1.5.7.1