FreeBSD/sys/contrib/dev/acpica/compiler/dtutils.c
/******************************************************************************
 *
 * FUNCTION:    DtSetTableChecksum
 *
 * PARAMETERS:  ChecksumPointer     - Where to return the checksum
 *
 * RETURN:      None
 *
 * DESCRIPTION: Set checksum of the whole data table into the checksum field
 *
 *****************************************************************************/
DtSetTableChecksum
PARAMETERS:  ChecksumPointer     - Where to return the checksum

None

Set checksum of the whole data table into the checksum field
DtSetTableChecksum PARAMETERS : ChecksumPointer - Where to return the checksum None Set checksum of the whole data table into the checksum field
void
DtSetTableChecksum (
    UINT8                   *ChecksumPointer)
{
    UINT8                   Checksum = 0;
    UINT8                   OldSum;
    DtWalkTableTree (Gbl_RootTable, DtSum, NULL, &Checksum);
    OldSum = *ChecksumPointer;
    Checksum = (UINT8) (Checksum - OldSum);
    Checksum = (UINT8) (0 - Checksum);
    *ChecksumPointer = Checksum;
}
void DtSetTableChecksum ( UINT8 * ChecksumPointer ) { UINT8 Checksum = 0 ; UINT8 OldSum ; DtWalkTableTree ( Gbl_RootTable , DtSum , NULL , & Checksum ) ; OldSum = * ChecksumPointer ; Checksum = ( UINT8 ) ( Checksum - OldSum ) ; Checksum = ( UINT8 ) ( 0 - Checksum ) ; * ChecksumPointer = Checksum ; }
FUNCTION:    DtSetTableChecksum
 PARAMETERS:  ChecksumPointer     - Where to return the checksum
FUNCTION : DtSetTableChecksum PARAMETERS : ChecksumPointer - Where to return the checksum
/* Compute the final checksum */