1 /* 2 * Copyright (c) 2022 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef __STM32MP1_SMP_H__ 17 #define __STM32MP1_SMP_H__ 18 19 struct smp_res { 20 unsigned long a0; 21 unsigned long a1; 22 unsigned long a2; 23 unsigned long a3; 24 }; 25 26 struct smp_quirk { 27 int id; 28 union { 29 unsigned long a6; 30 } state; 31 }; 32 33 void __smp_smc(unsigned long a0, unsigned long a1, 34 unsigned long a2, unsigned long a3, unsigned long a4, 35 unsigned long a5, unsigned long a6, unsigned long a7, 36 struct smp_res *res, struct smp_quirk *quirk); 37 38 #define smp_smc(...) __smp_smc(__VA_ARGS__, 0) 39 40 #endif /* __STM32MP1_SMP_H__ */ 41