Karl Zhang | 3de5ab1 | 2021-05-31 11:45:48 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef SST_CALL_HPP |
| 9 | #define SST_CALL_HPP |
| 10 | |
| 11 | #include <string> |
| 12 | #include <vector> |
| 13 | #include <cstdint> |
| 14 | |
| 15 | /* This project's header files #including other project headers quickly becomes |
| 16 | unrealistically complicated. The only solution is for each .cpp to include |
| 17 | the headers it needs. |
| 18 | #include "sst_asset.hpp" |
| 19 | #include "psa_call.hpp" |
| 20 | */ |
| 21 | |
| 22 | |
| 23 | using namespace std; |
| 24 | |
| 25 | class sst_set_call : public sst_call |
| 26 | { |
| 27 | public: |
| 28 | // Data members: |
| 29 | // Methods: |
| 30 | bool copy_call_to_asset (void); |
| 31 | bool copy_asset_to_call (void); |
| 32 | void fill_in_prep_code (void); |
| 33 | void fill_in_command (void); |
| 34 | sst_set_call (tf_fuzz_info *test_state, long &asset_ser_no, |
| 35 | asset_search how_asset_found); // (constructor) |
| 36 | ~sst_set_call (void); |
| 37 | |
| 38 | protected: |
| 39 | // Data members: |
| 40 | // Methods: |
| 41 | |
| 42 | private: |
| 43 | // Data members: |
| 44 | // Methods: |
| 45 | }; |
| 46 | |
| 47 | |
| 48 | class sst_get_call : public sst_call |
| 49 | { |
| 50 | public: |
| 51 | // Data members: |
| 52 | uint32_t offset; |
| 53 | uint32_t data_length; |
| 54 | string data_var_name; |
| 55 | // Methods: |
| 56 | bool copy_call_to_asset (void); |
| 57 | bool copy_asset_to_call (void); |
| 58 | void fill_in_prep_code (void); |
| 59 | void fill_in_command (void); |
| 60 | sst_get_call (tf_fuzz_info *test_state, long &asset_ser_no, |
| 61 | asset_search how_asset_found); // (constructor) |
| 62 | ~sst_get_call (void); |
| 63 | |
| 64 | protected: |
| 65 | // Data members: |
| 66 | // Methods: |
| 67 | |
| 68 | private: |
| 69 | // Data members: |
| 70 | // Methods: |
| 71 | }; |
| 72 | |
| 73 | class sst_remove_call : public sst_call |
| 74 | { |
| 75 | public: |
| 76 | // Data members: |
| 77 | // Methods: |
| 78 | bool copy_call_to_asset (void); |
| 79 | bool copy_asset_to_call (void); |
| 80 | void fill_in_prep_code (void); |
| 81 | void fill_in_command (void); |
| 82 | sst_remove_call (tf_fuzz_info *test_state, long &asset_ser_no, |
| 83 | asset_search how_asset_found); // (constructor) |
| 84 | ~sst_remove_call (void); |
| 85 | |
| 86 | protected: |
| 87 | // Data members: |
| 88 | // Methods: |
| 89 | |
| 90 | private: |
| 91 | // Data members: |
| 92 | // Methods: |
| 93 | }; |
| 94 | |
| 95 | #endif // SST_CALL_HPP |
| 96 | |