Switch all MMIO to the new access style

This commit is contained in:
Michael Scire 2018-02-22 17:50:19 -08:00
parent 5d97ac48f2
commit d1d8d3da34
8 changed files with 137 additions and 197 deletions

View file

@ -1,15 +1,5 @@
#include "uart.h"
volatile void *g_uart_registers = NULL;
void set_uart_address(void *uart_base) {
g_uart_registers = uart_base;
}
inline void *get_uart_address(void) {
return g_uart_registers;
}
void uart_initialize(uint16_t divider) {
/* Setup UART in 16450 mode. We assume the relevant UART clock has been enabled. */