acpi.h File Reference

ACPI data structures. More...

#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.


Detailed Description

ACPI data structures.

Definition in file acpi.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

void acpi_fix_checksum ( struct acpi_description_header acpi  ) 

Fix up ACPI table checksum.

Parameters:
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 }


Variable Documentation

An ACPI description header.

This is the structure common to the start of all ACPI system description tables.


Generated on Tue Apr 6 20:01:48 2010 for gPXE by  doxygen 1.5.7.1