2020-05-24 15:30:55 -05:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef TEST_FUNCS_H
|
|
|
|
#define TEST_FUNCS_H
|
2022-02-19 10:17:40 -06:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*
|
2020-05-24 15:30:55 -05:00
|
|
|
* Provides the prototypes for the basic test functions used to implement
|
|
|
|
* the tests.
|
|
|
|
*
|
2022-02-19 13:56:55 -06:00
|
|
|
*//*
|
2022-01-31 16:59:14 -06:00
|
|
|
* Copyright (C) 2020-2022 Martin Whitaker.
|
2020-05-24 15:30:55 -05:00
|
|
|
*/
|
|
|
|
|
2021-12-05 07:47:31 -06:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-05-24 15:30:55 -05:00
|
|
|
#include "test.h"
|
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_addr_walk1(int my_cpu);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_own_addr1(int my_cpu);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_own_addr2(int my_cpu, int stage);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_mov_inv_fixed(int my_cpu, int iterations, testword_t pattern1, testword_t pattern2);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_mov_inv_walk1(int my_cpu, int iterations, int offset, bool inverse);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_mov_inv_random(int my_cpu);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_modulo_n(int my_cpu, int iterations, testword_t pattern1, testword_t pattern2, int n, int offset);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_block_move(int my_cpu, int iterations);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
2022-01-31 16:59:14 -06:00
|
|
|
int test_bit_fade(int my_cpu, int stage, int sleep_secs);
|
2020-05-24 15:30:55 -05:00
|
|
|
|
|
|
|
#endif // TEST_FUNCS_H
|