Lines Matching refs:mec_uart_regs

137 struct mec_uart_regs;
139 int mec_hal_uart_init(struct mec_uart_regs *base, uint32_t baud_rate,
142 int mec_hal_uart_activate(struct mec_uart_regs *regs, uint8_t enable);
144 int mec_hal_uart_power_on(struct mec_uart_regs *regs, uint32_t cfg_flags);
146 int mec_hal_uart_girq_ctrl(struct mec_uart_regs *regs, uint8_t enable);
147 int mec_hal_uart_girq_clear(struct mec_uart_regs *regs);
148 bool mec_hal_uart_is_girq_status(struct mec_uart_regs *regs);
149 bool mec_hal_uart_is_girq_result(struct mec_uart_regs *regs);
151 int mec_hal_uart_clock_freq_get(struct mec_uart_regs *base, uint32_t *clock_freq);
153 int mec_hal_uart_baud_rate_set(struct mec_uart_regs *base, uint32_t baud, uint32_t extclk_hz);
155 int mec_hal_uart_word_len_set(struct mec_uart_regs *base, uint8_t word_len);
156 int mec_hal_uart_word_len_get(struct mec_uart_regs *base, uint8_t *word_len);
158 int mec_hal_uart_stop_bits_set(struct mec_uart_regs *base, uint8_t stop_bits);
159 int mec_hal_uart_stop_bits_get(struct mec_uart_regs *base, uint8_t *stop_bits);
161 int mec_hal_uart_parity_set(struct mec_uart_regs *base, uint8_t parity);
162 int mec_hal_uart_parity_get(struct mec_uart_regs *base, uint8_t *parity);
164 int mec_hal_uart_fifo_control(struct mec_uart_regs *base, uint8_t fifo_cfg);
166 int mec_hal_uart_intr_control(struct mec_uart_regs *base, uint8_t enmask);
168 int mec_hal_uart_intr_mask(struct mec_uart_regs *base, uint8_t msk, uint8_t val);
171 int mec_hal_uart_raw_status(struct mec_uart_regs *base, enum mec_uart_sts_reg regid,
174 int mec_hal_uart_pending_status(struct mec_uart_regs *base, enum mec_uart_ipend *ipend);
176 int mec_hal_uart_is_rx_data(struct mec_uart_regs *base);
178 int mec_hal_uart_is_tx_fifo_empty(struct mec_uart_regs *base);
179 int mec_hal_uart_is_tx_empty(struct mec_uart_regs *base);
181 int mec_hal_uart_tx_fifo_size(struct mec_uart_regs *base);
182 int mec_hal_uart_rx_fifo_size(struct mec_uart_regs *base);
189 int mec_hal_uart_tx_byte(struct mec_uart_regs *base, uint8_t data);
192 int mec_hal_uart_tx(struct mec_uart_regs *base, const uint8_t *data, size_t datasz);
199 int mec_hal_uart_rx_byte(struct mec_uart_regs *base, uint8_t *data);
205 int mec_hal_uart_dtr_rts_set(struct mec_uart_regs *base, uint8_t sel_rts,