/hal_microchip-latest/mec5/drivers/ |
D | mec_i3c_pvt.c | 23 uint32_t _i3c_intr_sts_get(struct mec_i3c_host_regs *regs) in _i3c_intr_sts_get() 33 void _i3c_intr_sts_clear(struct mec_i3c_host_regs *regs, uint32_t mask) in _i3c_intr_sts_clear() 43 void _i3c_intr_sts_enable(struct mec_i3c_host_regs *regs, uint32_t mask) in _i3c_intr_sts_enable() 53 void _i3c_intr_IBI_enable(struct mec_i3c_host_regs *regs) in _i3c_intr_IBI_enable() 65 void _i3c_intr_IBI_disable(struct mec_i3c_host_regs *regs) in _i3c_intr_IBI_disable() 77 void _i3c_intr_thresholds_tx_enable(struct mec_i3c_host_regs *regs) in _i3c_intr_thresholds_tx_enable() 89 void _i3c_intr_thresholds_tx_disable(struct mec_i3c_host_regs *regs) in _i3c_intr_thresholds_tx_disable() 101 void _i3c_intr_thresholds_rx_enable(struct mec_i3c_host_regs *regs) in _i3c_intr_thresholds_rx_enable() 113 void _i3c_intr_thresholds_rx_disable(struct mec_i3c_host_regs *regs) in _i3c_intr_thresholds_rx_disable() 125 void _i3c_intr_sgnl_enable(struct mec_i3c_host_regs *regs, uint32_t mask) in _i3c_intr_sgnl_enable() [all …]
|
D | mec_vci.c | 41 uint32_t mec_hal_vci_in_pin_states(struct mec_vci_regs *regs) in mec_hal_vci_in_pin_states() 50 uint8_t mec_hal_vci_out_get(struct mec_vci_regs *regs) in mec_hal_vci_out_get() 59 uint8_t mec_hal_vci_ovrd_in_get(struct mec_vci_regs *regs) in mec_hal_vci_ovrd_in_get() 69 int mec_hal_vci_in_filter_enable(struct mec_vci_regs *regs, uint8_t enable) in mec_hal_vci_in_filter_enable() 87 int mec_hal_vci_sw_vci_out_set(struct mec_vci_regs *regs, uint8_t pin_state) in mec_hal_vci_sw_vci_out_set() 103 int mec_hal_vci_sw_vci_out_enable(struct mec_vci_regs *regs, uint8_t enable) in mec_hal_vci_sw_vci_out_enable() 118 uint32_t mec_hal_vci_in_latched_get(struct mec_vci_regs *regs) in mec_hal_vci_in_latched_get() 127 int mec_hal_vci_in_latch_enable(struct mec_vci_regs *regs, uint32_t latch_bitmap) in mec_hal_vci_in_latch_enable() 138 int mec_hal_vci_in_latch_disable(struct mec_vci_regs *regs, uint32_t latch_bitmap) in mec_hal_vci_in_latch_disable() 149 uint32_t mec_hal_vci_in_latch_enable_get(struct mec_vci_regs *regs) in mec_hal_vci_in_latch_enable_get() [all …]
|
D | mec_bbled.c | 83 static uint8_t bbled_get_pwm_size(struct mec_bbled_regs *regs) in bbled_get_pwm_size() 88 static void bbled_set_pwm_size(struct mec_bbled_regs *regs, uint8_t pwm_width) in bbled_set_pwm_size() 94 static void bbled_set_clk_src(struct mec_bbled_regs *regs, uint8_t use_sys_clk) in bbled_set_clk_src() 103 static void bbled_set_wdt_reload(struct mec_bbled_regs *regs, uint32_t bbcfg) in bbled_set_wdt_reload() 111 static void bbled_set_mode(struct mec_bbled_regs *regs, uint8_t mode) in bbled_set_mode() 117 static uint8_t bbled_get_mode(struct mec_bbled_regs *regs) in bbled_get_mode() 124 bool mec_hal_bbled_is_valid(struct mec_bbled_regs *regs) in mec_hal_bbled_is_valid() 133 void mec_hal_bbled_synchronize_enable(struct mec_bbled_regs *regs, uint8_t enable) in mec_hal_bbled_synchronize_enable() 142 bool mec_hal_bbled_is_off(struct mec_bbled_regs *regs) in mec_hal_bbled_is_off() 151 void mec_hal_bbled_asym_enable(struct mec_bbled_regs *regs, uint8_t enable) in mec_hal_bbled_asym_enable() [all …]
|
D | mec_i3c.c | 58 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Controller_Clk_I2C_Init() local 113 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Controller_Clk_Cfg() local 138 struct mec_i3c_sec_regs *regs = (struct mec_i3c_sec_regs *)ctx->base; in MEC_HAL_I3C_Target_Init() local 187 struct mec_i3c_sec_regs *regs = (struct mec_i3c_sec_regs *)ctx->base; in MEC_HAL_I3C_Target_MRL_MWL_update() local 206 struct mec_i3c_sec_regs *regs = (struct mec_i3c_sec_regs *)ctx->base; in MEC_HAL_I3C_Target_MRL_MWL_set() local 218 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Target_Interrupts_Init() local 251 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Controller_Interrupts_Init() local 284 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Thresholds_Init() local 328 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Thresholds_Response_buf_set() local 340 struct mec_i3c_host_regs *regs = (struct mec_i3c_host_regs *)ctx->base; in MEC_HAL_I3C_Host_Config() local [all …]
|
D | mec_peci.c | 29 static void peci_reset(struct mec_peci_regs *regs) in peci_reset() 46 static void peci_intr_en(struct mec_peci_regs *regs, uint16_t ien_bitmap) in peci_intr_en() 59 int mec_hal_peci_init(struct mec_peci_regs *regs, struct mec_peci_config *cfg, uint32_t flags) in mec_hal_peci_init() 113 int mec_hal_peci_enable(struct mec_peci_regs *regs, uint8_t enable) in mec_hal_peci_enable() 130 int mec_hal_peci_ctrl_reset(struct mec_peci_regs *regs, uint8_t assert_reset) in mec_hal_peci_ctrl_reset() 147 int mec_hal_peci_fifo_reset(struct mec_peci_regs *regs, uint8_t assert_reset) in mec_hal_peci_fifo_reset() 167 int mec_hal_peci_global_ien(struct mec_peci_regs *regs, uint8_t enable) in mec_hal_peci_global_ien() 187 int mec_hal_peci_intr_ctrl(struct mec_peci_regs *regs, uint8_t enable, uint16_t intr_bitmap) in mec_hal_peci_intr_ctrl() 206 int mec_hal_peci_set_opt_bit_time(struct mec_peci_regs *regs, uint16_t opt_bit_time) in mec_hal_peci_set_opt_bit_time() 231 int mec_hal_peci_tx_enable(struct mec_peci_regs *regs, uint8_t enable) in mec_hal_peci_tx_enable() [all …]
|
D | mec_wdt.c | 38 int mec_hal_wdt_init(struct mec_wdt_regs *regs, uint16_t n32k_ticks, uint32_t flags) in mec_hal_wdt_init() 78 bool mec_hal_wdt_is_enabled(struct mec_wdt_regs *regs) in mec_hal_wdt_is_enabled() 87 void mec_hal_wdt_enable(struct mec_wdt_regs *regs) in mec_hal_wdt_enable() 92 void mec_hal_wdt_disable(struct mec_wdt_regs *regs) in mec_hal_wdt_disable() 97 void mec_hal_wdt_intr_ctrl(struct mec_wdt_regs *regs, uint8_t enable) in mec_hal_wdt_intr_ctrl() 109 uint8_t mec_hal_wdt_intr_get_status(struct mec_wdt_regs *regs) in mec_hal_wdt_intr_get_status() 114 void mec_hal_wdt_intr_clear_status(struct mec_wdt_regs *regs) in mec_hal_wdt_intr_clear_status() 120 void mec_hal_wdt_girq_enable(struct mec_wdt_regs *regs, uint8_t enable) in mec_hal_wdt_girq_enable() 127 void mec_hal_wdt_intr_helper(struct mec_wdt_regs *regs, uint16_t counts_before_reset) in mec_hal_wdt_intr_helper() 146 void mec_hal_wdt_restart(struct mec_wdt_regs *regs) in mec_hal_wdt_restart() [all …]
|
D | mec_btimer.c | 59 static inline uint32_t btimer_fast_idx(struct mec_btmr_regs *regs) in btimer_fast_idx() 98 int mec_hal_btimer_init(struct mec_btmr_regs *regs, uint32_t freq_div, in mec_hal_btimer_init() 138 int mec_hal_btimer_has_counter32(struct mec_btmr_regs *regs) in mec_hal_btimer_has_counter32() 151 int mec_hal_btimer_reset(struct mec_btmr_regs *regs, uint32_t flags) in mec_hal_btimer_reset() 178 bool mec_hal_btimer_is_enabled(struct mec_btmr_regs *regs) in mec_hal_btimer_is_enabled() 187 uint32_t mec_hal_btimer_freq(struct mec_btmr_regs *regs) in mec_hal_btimer_freq() 199 int mec_hal_btimer_girq_ctrl(struct mec_btmr_regs *regs, uint8_t enable) in mec_hal_btimer_girq_ctrl() 212 int mec_hal_btimer_girq_status_clr(struct mec_btmr_regs *regs) in mec_hal_btimer_girq_status_clr() 225 void mec_hal_btimer_pre_and_reload(struct mec_btmr_regs *regs, uint32_t preload, in mec_hal_btimer_pre_and_reload() 240 void mec_hal_btimer_start_load(struct mec_btmr_regs *regs, uint32_t initial_count, in mec_hal_btimer_start_load() [all …]
|
D | mec_eeprom.c | 28 int mec_hal_eeprom_init(struct mec_eeprom_ctrl_regs *regs, uint32_t flags, uint32_t password) in mec_hal_eeprom_init() 73 int mec_hal_eeprom_girq_ctrl(struct mec_eeprom_ctrl_regs *regs, uint8_t enable) in mec_hal_eeprom_girq_ctrl() 84 int mec_hal_eeprom_girq_status_clr(struct mec_eeprom_ctrl_regs *regs) in mec_hal_eeprom_girq_status_clr() 95 int mec_hal_eeprom_activate(struct mec_eeprom_ctrl_regs *regs, uint8_t enable) in mec_hal_eeprom_activate() 110 uint32_t mec_hal_eeprom_status(struct mec_eeprom_ctrl_regs *regs) in mec_hal_eeprom_status() 119 int mec_hal_eeprom_status_clr(struct mec_eeprom_ctrl_regs *regs, uint32_t clrmsk) in mec_hal_eeprom_status_clr() 130 bool mec_hal_eeprom_is_busy(struct mec_eeprom_ctrl_regs *regs) in mec_hal_eeprom_is_busy() 143 int mec_hal_eeprom_intr_en(struct mec_eeprom_ctrl_regs *regs, uint8_t enable, uint32_t flags) in mec_hal_eeprom_intr_en() 172 int mec_hal_eeprom_set_password(struct mec_eeprom_ctrl_regs *regs, uint32_t password) in mec_hal_eeprom_set_password() 183 int mec_hal_eeprom_lock(struct mec_eeprom_ctrl_regs *regs) in mec_hal_eeprom_lock() [all …]
|
D | mec_pwm.c | 73 static void pwm_disable(struct mec_pwm_regs *regs) in pwm_disable() 78 static void pwm_enable(struct mec_pwm_regs *regs) in pwm_enable() 84 static void pwm_off(struct mec_pwm_regs *regs) in pwm_off() 91 static void pwm_on(struct mec_pwm_regs *regs) in pwm_on() 149 static int prog_pwm_fd(struct mec_pwm_regs *regs, uint32_t period_cycles, uint32_t pulse_cycles) in prog_pwm_fd() 197 static int prog_pwm(struct mec_pwm_regs *regs, uint32_t period_cycles, uint32_t pulse_cycles) in prog_pwm() 240 int mec_hal_pwm_off(struct mec_pwm_regs *regs) in mec_hal_pwm_off() 252 int mec_hal_pwm_on(struct mec_pwm_regs *regs) in mec_hal_pwm_on() 280 int mec_hal_pwm_init(struct mec_pwm_regs *regs, uint32_t period_cycles, in mec_hal_pwm_init() 313 int mec_hal_pwm_reset(struct mec_pwm_regs *regs) in mec_hal_pwm_reset() [all …]
|
D | mec_acpi_ec.c | 99 int mec_hal_acpi_ec_init(struct mec_acpi_ec_regs *regs, uint32_t flags) in mec_hal_acpi_ec_init() 161 int mec_hal_acpi_ec_girq_en(struct mec_acpi_ec_regs *regs, uint32_t flags) in mec_hal_acpi_ec_girq_en() 178 int mec_hal_acpi_ec_girq_dis(struct mec_acpi_ec_regs *regs, uint32_t flags) in mec_hal_acpi_ec_girq_dis() 194 int mec_hal_acpi_ec_girq_clr(struct mec_acpi_ec_regs *regs, uint32_t flags) in mec_hal_acpi_ec_girq_clr() 210 uint32_t mec_hal_acpi_ec_girq_result(struct mec_acpi_ec_regs *regs) in mec_hal_acpi_ec_girq_result() 237 int mec_hal_acpi_ec_is_enabled(struct mec_acpi_ec_regs *regs) in mec_hal_acpi_ec_is_enabled() 260 int mec_hal_acpi_ec_is_4byte_mode(struct mec_acpi_ec_regs *regs) in mec_hal_acpi_ec_is_4byte_mode() 274 uint8_t mec_hal_acpi_ec_status(struct mec_acpi_ec_regs *regs) in mec_hal_acpi_ec_status() 284 void mec_hal_acpi_ec_status_wr(struct mec_acpi_ec_regs *regs, uint8_t val) in mec_hal_acpi_ec_status_wr() 294 void mec_hal_acpi_ec_status_set(struct mec_acpi_ec_regs *regs, uint8_t val) in mec_hal_acpi_ec_status_set() [all …]
|
D | mec_btimer_api.h | 79 static inline uint32_t mec_hal_btimer_count(struct mec_btmr_regs *regs) in mec_hal_btimer_count() 84 static inline uint32_t mec_hal_btimer_preload(struct mec_btmr_regs *regs) in mec_hal_btimer_preload() 89 static inline void mec_hal_btimer_preload_set(struct mec_btmr_regs *regs, uint32_t preload) in mec_hal_btimer_preload_set() 94 static inline void mec_hal_btimer_count_set(struct mec_btmr_regs *regs, uint32_t cnt) in mec_hal_btimer_count_set() 99 static inline uint32_t mec_hal_btimer_status(struct mec_btmr_regs *regs) in mec_hal_btimer_status() 104 static inline void mec_hal_btimer_enable(struct mec_btmr_regs *regs) in mec_hal_btimer_enable() 109 static inline void mec_hal_btimer_disable(struct mec_btmr_regs *regs) in mec_hal_btimer_disable() 114 static inline void mec_hal_btimer_start(struct mec_btmr_regs *regs) in mec_hal_btimer_start() 119 static inline void mec_hal_btimer_stop(struct mec_btmr_regs *regs) in mec_hal_btimer_stop() 124 static inline void mec_hal_btimer_halt(struct mec_btmr_regs *regs) in mec_hal_btimer_halt() [all …]
|
D | mec_bclink.c | 78 int mec_hal_bcl_soft_reset(struct mec_bcl_regs *regs, uint8_t enable) in mec_hal_bcl_soft_reset() 95 int mec_hal_bcl_get_freq(struct mec_bcl_regs *regs, uint32_t *freq_hz) in mec_hal_bcl_get_freq() 113 bool mec_hal_bcl_is_busy(struct mec_bcl_regs *regs) in mec_hal_bcl_is_busy() 129 int mec_hal_bcl_set_freq(struct mec_bcl_regs *regs, uint32_t freq_hz) in mec_hal_bcl_set_freq() 157 bool mec_hal_bcl_is_error(struct mec_bcl_regs *regs) in mec_hal_bcl_is_error() 172 int mec_hal_bcl_clear_error(struct mec_bcl_regs *regs) in mec_hal_bcl_clear_error() 190 int mec_hal_bcl_clear_not_busy(struct mec_bcl_regs *regs) in mec_hal_bcl_clear_not_busy() 205 int mec_hal_bcl_intr_ctrl(struct mec_bcl_regs *regs, uint8_t msk, uint8_t enable) in mec_hal_bcl_intr_ctrl() 238 int mec_hal_bcl_get_target_address(struct mec_bcl_regs *regs, uint8_t *target_address) in mec_hal_bcl_get_target_address() 253 int mec_hal_bcl_set_target_address(struct mec_bcl_regs *regs, uint8_t target_address) in mec_hal_bcl_set_target_address() [all …]
|
D | mec_rtimer_api.h | 51 static inline void mec_hal_rtimer_auto_reload(struct mec_rtmr_regs *regs, uint8_t enable) in mec_hal_rtimer_auto_reload() 60 static inline void mec_hal_rtimer_stop(struct mec_rtmr_regs *regs) in mec_hal_rtimer_stop() 65 static inline void mec_hal_rtimer_start(struct mec_rtmr_regs *regs) in mec_hal_rtimer_start() 70 static inline bool mec_hal_rtimer_is_started(struct mec_rtmr_regs *regs) in mec_hal_rtimer_is_started() 75 static inline uint32_t mec_hal_rtimer_count(struct mec_rtmr_regs *regs) in mec_hal_rtimer_count() 80 static inline uint32_t mec_hal_rtimer_preload(struct mec_rtmr_regs *regs) in mec_hal_rtimer_preload() 89 static inline void mec_hal_rtimer_preload_set(struct mec_rtmr_regs *regs, uint32_t preload) in mec_hal_rtimer_preload_set() 94 static inline void mec_hal_rtimer_halt(struct mec_rtmr_regs *regs) in mec_hal_rtimer_halt() 99 static inline void mec_hal_rtimer_unhalt(struct mec_rtmr_regs *regs) in mec_hal_rtimer_unhalt() 104 static inline bool mec_hal_rtimer_is_counting(struct mec_rtmr_regs *regs) in mec_hal_rtimer_is_counting() [all …]
|
D | mec_adc.c | 39 int mec_hal_adc_init(struct mec_adc_regs *regs, struct mec_adc_config *cfg) in mec_hal_adc_init() 110 int mec_hal_adc_activate(struct mec_adc_regs *regs, uint8_t enable) in mec_hal_adc_activate() 137 int mec_hal_adc_repeat_delay_set(struct mec_adc_regs *regs, uint16_t start_delay, in mec_hal_adc_repeat_delay_set() 152 int mec_hal_adc_repeat_mode_chan_set(struct mec_adc_regs *regs, uint32_t rpt_chan_bm) in mec_hal_adc_repeat_mode_chan_set() 163 int mec_hal_adc_chan_vref_select(struct mec_adc_regs *regs, uint8_t chan_id, in mec_hal_adc_chan_vref_select() 183 int mec_hal_adc_differential_input_enable(struct mec_adc_regs *regs, uint8_t enable) in mec_hal_adc_differential_input_enable() 198 int mec_hal_adc_resolution_set(struct mec_adc_regs *regs, uint8_t resolution_bits) in mec_hal_adc_resolution_set() 223 int mec_hal_adc_girq_ctrl(struct mec_adc_regs *regs, uint32_t flags, uint8_t enable) in mec_hal_adc_girq_ctrl() 237 int mec_hal_adc_girq_status_clr(struct mec_adc_regs *regs, uint32_t flags) in mec_hal_adc_girq_status_clr() 251 uint32_t mec_hal_adc_channels_done(struct mec_adc_regs *regs) in mec_hal_adc_channels_done() [all …]
|
D | mec_espi_taf.c | 59 static inline bool taf_regs_valid(struct mec_espi_taf_regs *regs) in taf_regs_valid() 67 static inline bool taf_regs_valid(struct mec_espi_taf_regs *regs) { return true; } in taf_regs_valid() 83 static bool pr_is_dirty(struct mec_espi_taf_regs *regs, uint8_t pridx) in pr_is_dirty() 91 static void taf_disable_clear_intr(struct mec_espi_taf_regs *regs) in taf_disable_clear_intr() 164 struct mec_espi_taf_regs *regs = (struct mec_espi_taf_regs *)(MEC_ESPI_TAF_BASE); in mec_hal_espi_taf_is_activated() local 178 struct mec_espi_taf_regs *regs = (struct mec_espi_taf_regs *)(MEC_ESPI_TAF_BASE); in mec_hal_espi_taf_activate() local 187 int mec_hal_espi_taf_init(struct mec_espi_taf_regs *regs, uint32_t initflags) in mec_hal_espi_taf_init() 305 bool mec_hal_espi_taf_pr_is_dirty(struct mec_espi_taf_regs *regs, uint8_t pr_idx) in mec_hal_espi_taf_pr_is_dirty() 314 int mec_hal_espi_taf_pr_dirty_clr(struct mec_espi_taf_regs *regs, uint8_t pr_idx) in mec_hal_espi_taf_pr_dirty_clr() 326 int mec_hal_espi_taf_pr_dirty_clr_mask(struct mec_espi_taf_regs *regs, uint32_t mask) in mec_hal_espi_taf_pr_dirty_clr_mask() [all …]
|
D | mec_kscan.c | 36 static void kscan_default(struct mec_kscan_regs *regs) in kscan_default() 53 int mec_hal_kscan_init(struct mec_kscan_regs *regs, uint32_t flags, uint8_t ksi_in_intr_mask) in mec_hal_kscan_init() 95 int mec_hal_kscan_enable(struct mec_kscan_regs *regs, uint8_t enable) in mec_hal_kscan_enable() 112 bool mec_hal_kscan_is_enabled(struct mec_kscan_regs *regs) in mec_hal_kscan_is_enabled() 127 int mec_hal_kscan_kso_pre_drive_enable(struct mec_kscan_regs *regs, uint8_t enable) in mec_hal_kscan_kso_pre_drive_enable() 144 int mec_hal_kscan_girq_en(struct mec_kscan_regs *regs) in mec_hal_kscan_girq_en() 159 int mec_hal_kscan_girq_dis(struct mec_kscan_regs *regs) in mec_hal_kscan_girq_dis() 174 int mec_hal_kscan_girq_clr(struct mec_kscan_regs *regs) in mec_hal_kscan_girq_clr() 189 uint32_t mec_hal_kscan_girq_result(struct mec_kscan_regs *regs) in mec_hal_kscan_girq_result()
|
D | mec_bdp.c | 41 int mec_hal_bdp_init(struct mec_bdp_regs *regs, uint32_t cfg_flags) in mec_hal_bdp_init() 88 int mec_hal_bdp_activate(struct mec_bdp_regs *regs, uint8_t enable, uint8_t is_alias) in mec_hal_bdp_activate() 111 int mec_hal_bdp_girq_ctrl(struct mec_bdp_regs *regs, uint8_t enable) in mec_hal_bdp_girq_ctrl() 122 int mec_hal_bdp_girq_status_clr(struct mec_bdp_regs *regs) in mec_hal_bdp_girq_status_clr() 133 int mec_hal_bdp_fifo_thresh_set(struct mec_bdp_regs *regs, uint32_t cfg_thrh) in mec_hal_bdp_fifo_thresh_set() 152 uint32_t mec_hal_bdp_fifo_thresh_get(struct mec_bdp_regs *regs) in mec_hal_bdp_fifo_thresh_get() 165 void mec_hal_bdp_intr_en(struct mec_bdp_regs *regs, uint8_t enable) in mec_hal_bdp_intr_en() 183 uint32_t mec_hal_bdp_status(struct mec_bdp_regs *regs) in mec_hal_bdp_status() 188 uint32_t mec_hal_bdp_snapshot(struct mec_bdp_regs *regs) in mec_hal_bdp_snapshot() 227 int mec_hal_bdp_get_host_io(struct mec_bdp_regs *regs, struct mec_bdp_io *capio) in mec_hal_bdp_get_host_io()
|
D | mec_tach.c | 38 static struct mec_tach_info const *tach_get_info(struct mec_tach_regs *regs) in tach_get_info() 51 int mec_hal_tach_init(struct mec_tach_regs *regs, uint32_t limits, uint32_t flags) in mec_hal_tach_init() 119 void mec_hal_tach_enable(struct mec_tach_regs *regs, uint8_t enable) in mec_hal_tach_enable() 128 bool mec_hal_tach_is_enabled(struct mec_tach_regs *regs) in mec_hal_tach_is_enabled() 142 uint32_t mec_hal_tach_counter(struct mec_tach_regs *regs) in mec_hal_tach_counter() 153 uint32_t mec_hal_tach_status(struct mec_tach_regs *regs) in mec_hal_tach_status() 158 void mec_hal_tach_status_clr(struct mec_tach_regs *regs, uint32_t status) in mec_hal_tach_status_clr() 163 int mec_hal_tach_intr_enable(struct mec_tach_regs *regs, uint32_t intr_events, uint8_t enable) in mec_hal_tach_intr_enable() 194 void mec_hal_tach_girq_status_clr(struct mec_tach_regs *regs) in mec_hal_tach_girq_status_clr() 205 void mec_hal_tach_girq_enable(struct mec_tach_regs *regs, uint8_t enable) in mec_hal_tach_girq_enable()
|
D | mec_ps2.c | 71 static void ps2_clear_all_status(struct mec_ps2_regs *regs) in ps2_clear_all_status() 92 static bool ps2_is_enabled(struct mec_ps2_regs *regs) in ps2_is_enabled() 103 int mec_hal_ps2_init(struct mec_ps2_regs *regs, uint32_t flags) in mec_hal_ps2_init() 143 int mec_hal_ps2_control(struct mec_ps2_regs *regs, uint8_t operand, uint8_t opmask) in mec_hal_ps2_control() 156 bool mec_hal_ps2_is_enabled(struct mec_ps2_regs *regs) in mec_hal_ps2_is_enabled() 259 void mec_hal_ps2_direction(struct mec_ps2_regs *regs, uint8_t dir_tx) in mec_hal_ps2_direction() 268 uint32_t mec_hal_ps2_get_status(struct mec_ps2_regs *regs) in mec_hal_ps2_get_status() 273 void mec_hal_ps2_clr_status(struct mec_ps2_regs *regs, uint32_t clrmsk) in mec_hal_ps2_clr_status() 278 uint8_t mec_hal_ps2_read_data(struct mec_ps2_regs *regs) in mec_hal_ps2_read_data() 283 void mec_hal_ps2_send_data(struct mec_ps2_regs *regs, uint8_t data) in mec_hal_ps2_send_data() [all …]
|
D | mec_emi.c | 107 int mec_hal_emi_init(struct mec_emi_regs *regs, uint32_t flags) in mec_hal_emi_init() 153 int mec_hal_emi_mem_region_config(struct mec_emi_regs *regs, uint8_t region, in mec_hal_emi_mem_region_config() 190 int mec_hal_emi_mbox_wr(struct mec_emi_regs *regs, uint8_t host_to_ec, uint8_t val) in mec_hal_emi_mbox_wr() 205 uint8_t mec_hal_emi_mbox_rd(struct mec_emi_regs *regs, uint8_t host_to_ec) in mec_hal_emi_mbox_rd() 221 int mec_hal_emi_swi_set_one(struct mec_emi_regs *regs, uint8_t swi_pos) in mec_hal_emi_swi_set_one() 233 int mec_hal_emi_swi_set(struct mec_emi_regs *regs, uint16_t swi_bit_map) in mec_hal_emi_swi_set() 250 int mec_hal_emi_swi_host_clear_enable(struct mec_emi_regs *regs, uint16_t mask, uint16_t enable) in mec_hal_emi_swi_host_clear_enable() 293 int mec_hal_emi_is_appid(struct mec_emi_regs *regs, uint8_t appid) in mec_hal_emi_is_appid() 310 int mec_hal_emi_clear_appid(struct mec_emi_regs *regs, uint8_t appid) in mec_hal_emi_clear_appid() 324 int mec_hal_emi_clear_all_appid(struct mec_emi_regs *regs) in mec_hal_emi_clear_all_appid()
|
D | mec_uart.c | 69 static struct mec_uart_info const *get_uart_info(struct mec_uart_regs *regs) in get_uart_info() 285 static void prog_cfg1(struct mec_uart_regs *regs, uint32_t config, uint32_t extclk_hz) in prog_cfg1() 307 static int prog_baud_rate(struct mec_uart_regs *regs, uint32_t baud_rate, uint32_t extclk_hz) in prog_baud_rate() 339 static void prog_word_len(struct mec_uart_regs *regs, uint32_t config) in prog_word_len() 347 static void prog_parity(struct mec_uart_regs *regs, uint32_t config) in prog_parity() 355 static void prog_stop_bits(struct mec_uart_regs *regs, uint32_t config) in prog_stop_bits() 365 static void prog_fifo(struct mec_uart_regs *regs, uint32_t config) in prog_fifo() 384 static void uart_activate(struct mec_uart_regs *regs, uint8_t enable) in uart_activate() 393 static void uart_intr_out_enable(struct mec_uart_regs *regs, uint8_t enable) in uart_intr_out_enable() 402 int mec_hal_uart_power_on(struct mec_uart_regs *regs, uint32_t cfg_flags) in mec_hal_uart_power_on() [all …]
|
D | mec_kscan_api.h | 90 static inline void mec_hal_kscan_kso_drive_all(struct mec_kscan_regs *regs) in mec_hal_kscan_kso_drive_all() 96 static inline void mec_hal_kscan_kso_disable_keyscan(struct mec_kscan_regs *regs) in mec_hal_kscan_kso_disable_keyscan() 102 static inline void mec_hal_kscan_kso_invert(struct mec_kscan_regs *regs, uint8_t invert) in mec_hal_kscan_kso_invert() 113 void mec_hal_kscan_kso_select(struct mec_kscan_regs *regs, uint8_t kso_sel, uint8_t val) in mec_hal_kscan_kso_select() 121 static inline uint8_t mec_hal_kscan_ksi_state(struct mec_kscan_regs *regs) in mec_hal_kscan_ksi_state() 126 static inline uint8_t mec_hal_kscan_ksi_status(struct mec_kscan_regs *regs) in mec_hal_kscan_ksi_status() 131 static inline void mec_hal_kscan_ksi_status_clr(struct mec_kscan_regs *regs, uint8_t clrmsk) in mec_hal_kscan_ksi_status_clr() 136 static inline void mec_hal_kscan_ksi_intr_en_set(struct mec_kscan_regs *regs, uint8_t enmsk) in mec_hal_kscan_ksi_intr_en_set() 141 static inline uint8_t mec_hal_kscan_ksi_intr_en_get(struct mec_kscan_regs *regs) in mec_hal_kscan_ksi_intr_en_get()
|
D | mec_rtimer.c | 21 int mec_hal_rtimer_init(struct mec_rtmr_regs *regs, uint32_t rtmr_config, uint32_t preload) in mec_hal_rtimer_init() 63 uint32_t mec_hal_rtimer_status(struct mec_rtmr_regs *regs) in mec_hal_rtimer_status() 74 void mec_hal_rtimer_status_clear(struct mec_rtmr_regs *regs, uint32_t status) in mec_hal_rtimer_status_clear() 83 void mec_hal_rtimer_status_clear_all(struct mec_rtmr_regs *regs) in mec_hal_rtimer_status_clear_all() 90 void mec_hal_rtimer_intr_ctrl(struct mec_rtmr_regs *regs, uint8_t enable) in mec_hal_rtimer_intr_ctrl() 108 void mec_hal_rtimer_restart(struct mec_rtmr_regs *regs, uint32_t new_count, uint8_t restart) in mec_hal_rtimer_restart()
|
D | mec_i2c.c | 216 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_smb_bus_freq_get() local 304 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_smb_own_addr() local 338 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_smb_clr_target_addr() local 547 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_smb_intr_ctrl() local 637 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_smb_is_idle_ien() local 864 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_nl_cm_cfg_start() local 946 struct mec_i2c_smb_regs *regs = ctx->base; in mec_hal_i2c_nl_cm_event() local 1004 int mec_hal_i2c_nl_state_get(struct mec_i2c_smb_regs *regs, struct mec_i2c_smb_nl_state *state, in mec_hal_i2c_nl_state_get() 1039 uint32_t mec_hal_i2c_nl_cm_xfr_count_get(struct mec_i2c_smb_regs *regs, uint8_t is_read) in mec_hal_i2c_nl_cm_xfr_count_get() 1071 int mec_hal_i2c_nl_cm_xfr_count_set(struct mec_i2c_smb_regs *regs, uint8_t is_read, uint32_t cnt) in mec_hal_i2c_nl_cm_xfr_count_set() [all …]
|
/hal_microchip-latest/mpfs/mpfs_hal/common/ |
D | mss_mtrap.c | 36 void bad_trap(uintptr_t* regs, uintptr_t dummy, uintptr_t mepc) in bad_trap() 46 void misaligned_store_trap(uintptr_t * regs, uintptr_t mcause, uintptr_t mepc) in misaligned_store_trap() 56 void misaligned_load_trap(uintptr_t * regs, uintptr_t mcause, uintptr_t mepc) in misaligned_load_trap() 66 void illegal_insn_trap(uintptr_t * regs, uintptr_t mcause, uintptr_t mepc) in illegal_insn_trap() 76 void pmp_trap(uintptr_t * regs, uintptr_t mcause, uintptr_t mepc) in pmp_trap() 729 void trap_from_machine_mode(uintptr_t * regs, uintptr_t dummy, uintptr_t mepc) in trap_from_machine_mode()
|