mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2024-11-27 10:00:17 -06:00
8f1d81b65d
To ensure we aren't dependent on the order of inclusion.
48 lines
957 B
C
48 lines
957 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef ERROR_H
|
|
#define ERROR_H
|
|
/*
|
|
* Provides functions that can be called by the memory tests to report errors.
|
|
*
|
|
* Copyright (C) 2020-2021 Martin Whitaker.
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "test.h"
|
|
|
|
/*
|
|
* The number of errors recorded during the current run.
|
|
*/
|
|
extern uint64_t error_count;
|
|
|
|
/*
|
|
* Initialises the error records.
|
|
*/
|
|
void error_init(void);
|
|
|
|
/*
|
|
* Adds an address error to the error reports.
|
|
*/
|
|
void addr_error(volatile testword_t *addr1, volatile testword_t *addr2, testword_t good, testword_t bad);
|
|
|
|
/*
|
|
* Adds a data error to the error reports.
|
|
*/
|
|
void data_error(volatile testword_t *addr, testword_t good, testword_t bad, bool use_for_badram);
|
|
|
|
#if REPORT_PARITY_ERRORS
|
|
/*
|
|
* Adds a parity error to the error reports.
|
|
*/
|
|
void parity_error(void);
|
|
#endif
|
|
|
|
/*
|
|
* Refreshes the error display after the error mode is changed.
|
|
*/
|
|
void error_update(void);
|
|
|
|
#endif // ERROR_H
|