1 /* 2 * Copyright (c) 2022-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 device_definition.h 19 * \brief The structure definitions in this file are exported based on the 20 * peripheral definitions from device_cfg.h. 21 * This file is meant to be used as a helper for baremetal 22 * applications and/or as an example of how to configure the generic 23 * driver structures. 24 */ 25 26 #ifndef __HOST_DEVICE_DEFINITION_H__ 27 #define __HOST_DEVICE_DEFINITION_H__ 28 29 #include "host_device_cfg.h" 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 /* UART PL011 driver structures */ 36 #ifdef UART0_PL011_S 37 #include "uart_pl011_drv.h" 38 extern struct uart_pl011_dev_t UART0_PL011_DEV_S; 39 #endif 40 #ifdef UART0_PL011_NS 41 #include "uart_pl011_drv.h" 42 extern struct uart_pl011_dev_t UART0_PL011_DEV_NS; 43 #endif 44 45 #if (defined(SPI_STRATAFLASHJ3_S) && defined(CFI_S)) 46 #include "spi_strataflashj3_flash_lib.h" 47 extern struct cfi_strataflashj3_dev_t SPI_STRATAFLASHJ3_DEV; 48 #endif 49 50 /* Message Handling Units (MHU) */ 51 #ifdef MHU_AP_MONITOR_TO_RSE 52 #include "mhu_v2_x.h" 53 extern struct mhu_v2_x_dev_t MHU_AP_MONITOR_TO_RSE_DEV; 54 #endif 55 56 #ifdef MHU_RSE_TO_AP_MONITOR 57 #include "mhu_v2_x.h" 58 extern struct mhu_v2_x_dev_t MHU_RSE_TO_AP_MONITOR_DEV; 59 #endif 60 61 #ifdef MHU_AP_NS_TO_RSE 62 #include "mhu_v2_x.h" 63 extern struct mhu_v2_x_dev_t MHU_AP_NS_TO_RSE_DEV; 64 #endif 65 66 #ifdef MHU_RSE_TO_AP_NS 67 #include "mhu_v2_x.h" 68 extern struct mhu_v2_x_dev_t MHU_RSE_TO_AP_NS_DEV; 69 #endif 70 71 #ifdef MHU_SCP_TO_RSE 72 #include "mhu_v2_x.h" 73 extern struct mhu_v2_x_dev_t MHU_SCP_TO_RSE_DEV; 74 #endif 75 76 #ifdef MHU_RSE_TO_SCP 77 #include "mhu_v2_x.h" 78 extern struct mhu_v2_x_dev_t MHU_RSE_TO_SCP_DEV; 79 #endif 80 81 #ifdef __cplusplus 82 } 83 #endif 84 85 #endif /* __DEVICE_DEFINITION_H__ */ 86