blob: 23586f51ae863f9a2e22ab7ff4f5a1e2da3afd3e [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001/*
J-Alvesf1a57362020-06-17 15:37:59 +01002 * Copyright (c) 2017-2020, Arm Limited. All rights reserved.
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz1486f3b2018-06-26 10:30:10 +01007#ifndef CACTUS_TESTS_H
8#define CACTUS_TESTS_H
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02009
10/*
11 * Test functions
12 */
13
14/*
J-Alvesf1a57362020-06-17 15:37:59 +010015 * Test to FFA interfaces.
16 */
17void ffa_tests(void);
18
19/*
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020020 * Test other things like the version number returned by SPM.
21 */
22void misc_tests(void);
23
24/*
25 * The Arm TF is responsible for setting up system registers on behalf of the
26 * Secure Partition. For example, TF is supposed to allow Secure Partitions to
27 * perform cache maintenance operations (by setting the SCTLR_EL1.UCI bit).
28 *
29 * This function attempts to verify that we indeed have access to these system
30 * features from S-EL0. These tests report their results on the UART. They do
31 * not recover from a failure : when an error is encountered they will most
32 * likely trigger an exception into S-EL1.
33 */
34void system_setup_tests(void);
35
36/*
37 * Exercise the SP_MEMORY_ATTRIBUTES_SET_AARCH64 SMC interface. A variety of
38 * valid and invalid requests to change memory attributes are tested.
39 *
40 * These tests report their results on the UART. They do not recover from a
41 * failure : when an error is encountered they endlessly loop.
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020042 */
Antonio Nino Diaz1486f3b2018-06-26 10:30:10 +010043void mem_attr_changes_tests(void);
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020044
Antonio Nino Diaz1486f3b2018-06-26 10:30:10 +010045#endif /* CACTUS_TESTS_H */