1 /******************************************************************************* 2 * Copyright 2019-2021 Microchip FPGA Embedded Systems Solutions. 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 * MPFS HAL Embedded Software 7 * 8 */ 9 10 /******************************************************************************* 11 * @file mss_hal.h 12 * @author Microchip-FPGA Embedded Systems Solutions 13 * @brief MPFS HAL include file. This is the file intended for application to 14 * include so that all the other MPFS files are then accessible to it. 15 * 16 */ 17 18 #ifndef MSS_HAL_H 19 #define MSS_HAL_H 20 21 #ifndef CONFIG_OPENSBI 22 # include <stddef.h> // for size_t 23 # include <stdbool.h> // for bool, true, false 24 # include <stdint.h> 25 #ifndef ssize_t 26 typedef long ssize_t; 27 #endif 28 #endif 29 30 #include "common/mss_assert.h" 31 #include "common/nwc/mss_ddr_defs.h" 32 #include "common/nwc/mss_ddr_sgmii_regs.h" 33 #include "common/nwc/mss_io_config.h" 34 #include "common/nwc/mss_pll.h" 35 #include "common/nwc/mss_scb_nwc_regs.h" 36 #include "common/nwc/mss_scb_nwc_regs.h" 37 /* 38 * mss_sw_config.h may be edited as required and should be located outside the 39 * mpfs_hal folder 40 */ 41 #include "mpfs_hal_config/mss_sw_config.h" 42 /* 43 * The hw_platform.h is included here only. It must be included after 44 * mss_sw_config.h. This allows defines in hw_platform.h be overload from 45 * mss_sw_config.h if necessary. 46 * */ 47 #include "common/atomic.h" 48 #include "common/bits.h" 49 #include "common/encoding.h" 50 #include "fpga_design_config/fpga_design_config.h" 51 #include "common/nwc/mss_ddr.h" 52 #include "common/mss_clint.h" 53 #include "common/mss_h2f.h" 54 #include "common/mss_hart_ints.h" 55 #include "common/mss_mpu.h" 56 #include "common/mss_pmp.h" 57 #include "common/mss_plic.h" 58 #include "common/mss_seg.h" 59 #include "common/mss_sysreg.h" 60 #include "common/mss_util.h" 61 #include "common/mss_mtrap.h" 62 #include "common/mss_l2_cache.h" 63 #include "common/mss_axiswitch.h" 64 #include "common/mss_peripherals.h" 65 #include "common/nwc/mss_cfm.h" 66 #include "common/nwc/mss_ddr.h" 67 #include "common/nwc/mss_sgmii.h" 68 #include "startup_gcc/system_startup.h" 69 #include "common/nwc/mss_ddr_debug.h" 70 #ifdef SIMULATION_TEST_FEEDBACK 71 #include "nwc/simulation.h" 72 #endif 73 74 #ifdef __cplusplus 75 extern "C" { 76 #endif 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 #endif /* MSS_HAL_H */ 83