1 /* 2 * Copyright (c) 2023-2024 Arm Limited. All rights reserved. 3 * 4 * Licensed under the Apache License Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing software 11 * distributed under the License is distributed on an "AS IS" BASIS 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * \file rse_expansion_device_definition.h 19 * \brief The structure definitions in this file are exported based on the 20 * peripheral definitions from device_cfg.h. 21 */ 22 23 #ifndef __RSE_EXPANSION_DEVICE_DEFINITION_H__ 24 #define __RSE_EXPANSION_DEVICE_DEFINITION_H__ 25 26 #include "rse_expansion_device_cfg.h" 27 28 #ifdef __cplusplus 29 extern "C" { 30 #endif 31 32 /* UART PL011 driver structures */ 33 #ifdef UART0_PL011_S 34 #include "uart_pl011_drv.h" 35 extern struct uart_pl011_dev_t UART0_PL011_DEV_S; 36 #endif 37 38 #if (defined(SPI_STRATAFLASHJ3_S) && defined(CFI_S)) 39 #include "spi_strataflashj3_flash_lib.h" 40 extern struct cfi_strataflashj3_dev_t SPI_STRATAFLASHJ3_DEV; 41 #endif 42 43 /* Sideband RSE to RSE MHUs */ 44 #ifdef MHU_RSE_TO_RSE_SIDEBAND_RECEIVER_COUNT 45 #include "mhu_v2_x.h" 46 extern struct mhu_v2_x_dev_t MHU_RSE_TO_RSE_RECEIVER_DEVS[RSE_AMOUNT - 1]; 47 #endif /* MHU_RSE_TO_RSE_SIDEBAND_RECEIVER_COUNT */ 48 49 #ifdef MHU_RSE_TO_RSE_SIDEBAND_SENDER_COUNT 50 #include "mhu_v2_x.h" 51 extern struct mhu_v2_x_dev_t MHU_RSE_TO_RSE_SENDER_DEVS[RSE_AMOUNT - 1]; 52 #endif /* MHU_RSE_TO_RSE_SIDEBAND_SENDER_COUNT */ 53 54 #ifdef __cplusplus 55 } 56 #endif 57 58 #endif /* __RSE_EXPANSION_DEVICE_DEFINITION_H__ */ 59