1 /* 2 * Copyright (c) 2015 Travis Geiselbrecht 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #pragma once 9 10 #include <stdbool.h> 11 12 void sifive_uart_write(int c); 13 int sifive_uart_read(char *c, bool wait); 14 void sifive_uart_early_init(void); 15 void sifive_uart_init(void); 16 17 void plic_early_init(void); 18 void plic_init(void); 19 20 void gpio_early_init(void); 21 void gpio_init(void); 22 23 24