mardyk01 | f5b4635 | 2023-10-24 16:23:23 -0500 | [diff] [blame] | 1 | /* |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 2 | * Copyright (c) 2024, Arm Limited. All rights reserved. |
mardyk01 | f5b4635 | 2023-10-24 16:23:23 -0500 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <fuzz_helper.h> |
| 8 | #include <power_management.h> |
| 9 | #include <sdei.h> |
| 10 | #include <test_helpers.h> |
| 11 | #include <tftf_lib.h> |
| 12 | #include <timer.h> |
| 13 | |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 14 | #ifndef sdei_version_funcid |
| 15 | #define sdei_version_funcid 0 |
| 16 | #endif |
| 17 | #ifndef sdei_pe_unmask_funcid |
| 18 | #define sdei_pe_unmask_funcid 0 |
| 19 | #endif |
| 20 | #ifndef sdei_pe_mask_funcid |
| 21 | #define sdei_pe_mask_funcid 0 |
| 22 | #endif |
| 23 | #ifndef sdei_event_status_funcid |
| 24 | #define sdei_event_status_funcid 0 |
| 25 | #endif |
| 26 | #ifndef sdei_event_signal_funcid |
| 27 | #define sdei_event_signal_funcid 0 |
| 28 | #endif |
| 29 | #ifndef sdei_private_reset_funcid |
| 30 | #define sdei_private_reset_funcid 0 |
| 31 | #endif |
| 32 | #ifndef sdei_shared_reset_funcid |
| 33 | #define sdei_shared_reset_funcid 0 |
| 34 | #endif |
| 35 | |
| 36 | |
| 37 | void tftf_test_sdei_noarg(int64_t (*sdei_func)(void), char *funcstr); |
mardyk01 | f5b4635 | 2023-10-24 16:23:23 -0500 | [diff] [blame] | 38 | void tftf_test_sdei_singlearg(int64_t (*sdei_func)(uint64_t), char *funcstr); |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 39 | void run_sdei_fuzz(int funcid); |