aboutsummaryrefslogtreecommitdiff
path: root/machine/uart_litex.h
diff options
context:
space:
mode:
Diffstat (limited to 'machine/uart_litex.h')
-rw-r--r--machine/uart_litex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/machine/uart_litex.h b/machine/uart_litex.h
new file mode 100644
index 0000000..a10dc57
--- /dev/null
+++ b/machine/uart_litex.h
@@ -0,0 +1,14 @@
+// See LICENSE for license details.
+
+#ifndef _RISCV_UARTLR_H
+#define _RISCV_UARTLR_H
+
+#include <stdint.h>
+
+extern volatile unsigned int *uart_litex;
+
+void uart_litex_putchar(uint8_t ch);
+int uart_litex_getchar();
+void query_uart_litex(uintptr_t dtb);
+
+#endif