1 /* 2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without modification, 6 * are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, this list of 9 * conditions and the following disclaimer. 10 * 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 12 * of conditions and the following disclaimer in the documentation and/or other materials 13 * provided with the distribution. 14 * 15 * 3. Neither the name of the copyright holder nor the names of its contributors may be used 16 * to endorse or promote products derived from this software without specific prior written 17 * permission. 18 * 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 #ifndef IT_LOS_HWI_H 32 #define IT_LOS_HWI_H 33 34 #include "osTest.h" 35 36 #ifdef __cplusplus 37 #if __cplusplus 38 extern "C" { 39 #endif /* __cplusplus */ 40 #endif /* __cplusplus */ 41 42 #ifdef __RISC_V__ 43 #define OS_USER_HWI_MAX (26) 44 #define OS_HWI_MAX_USED_NUM (26) 45 #define OS_USER_HWI_MIN OS_RISCV_SYS_VECTOR_CNT 46 #else 47 #define OS_USER_HWI_MAX 10 48 #define OS_HWI_MAX_USED_NUM 10 49 #define OS_USER_HWI_MIN 0 50 #endif 51 52 extern VOID ItLosHwi001(VOID); 53 extern VOID ItLosHwi002(VOID); 54 extern VOID ItLosHwi004(VOID); 55 extern VOID ItLosHwi006(VOID); 56 extern VOID ItLosHwi007(VOID); 57 extern VOID ItLosHwi008(VOID); 58 extern VOID ItLosHwi010(VOID); 59 extern VOID ItLosHwi015(VOID); 60 extern VOID ItLosHwi016(VOID); 61 extern VOID ItLosHwi017(VOID); 62 extern VOID ItLosHwi018(VOID); 63 extern VOID ItLosHwi019(VOID); 64 extern VOID ItLosHwi020(VOID); 65 extern VOID ItLosHwi021(VOID); 66 extern VOID ItLosHwi022(VOID); 67 extern VOID ItLosHwi023(VOID); 68 extern VOID ItLosHwi024(VOID); 69 extern VOID ItLosHwi025(VOID); 70 extern VOID ItLosHwi026(VOID); 71 extern VOID ItLosHwi027(VOID); 72 extern VOID ItLosHwi030(VOID); 73 extern VOID ItLosHwi031(VOID); 74 extern VOID ItLosHwi034(VOID); 75 extern VOID LltLosHwi035(VOID); 76 extern VOID ItLosHwi036(VOID); 77 extern VOID ItLosHwi037(VOID); 78 extern VOID ItLosHwi038(VOID); 79 extern VOID ItLosHwi039(VOID); 80 extern VOID ItLosHwi040(VOID); 81 82 83 #if (LOS_KERNEL_MULTI_HWI_TEST == 1) 84 extern VOID ItLosHwi003(VOID); 85 extern VOID ItLosHwi005(VOID); 86 extern VOID ItLosHwi009(VOID); 87 extern VOID ItLosHwi011(VOID); 88 extern VOID ItLosHwi012(VOID); 89 extern VOID ItLosHwi013(VOID); 90 extern VOID ItLosHwi014(VOID); 91 extern VOID ItLosHwi028(VOID); 92 extern VOID ItLosHwi029(VOID); 93 extern VOID ItLosHwi032(VOID); 94 extern VOID ItLosHwi033(VOID); 95 #endif 96 97 98 #ifdef __cplusplus 99 #if __cplusplus 100 } 101 #endif /* __cplusplus */ 102 #endif /* __cplusplus */ 103 #endif /* IT_LOS_HWI_H */ 104 105