Fix uart address definition on thinpad

Signed-off-by: Harry Chen <i@harrychen.xyz>
master
Harry Chen 6 years ago
parent 96caa80914
commit 6e2947ac56

@ -8,8 +8,8 @@ pub struct SerialPort {
base: usize base: usize
} }
const UART_STATUS: usize = 0; const UART_STATUS: usize = 0x0;
const UART_DATA: usize = 0; const UART_DATA: usize = 0x4;
const UART_STATUS_CTS: u8 = 0x1; // clear to send signal const UART_STATUS_CTS: u8 = 0x1; // clear to send signal
const UART_STATUS_DR: u8 = 0x2; // data ready signal const UART_STATUS_DR: u8 = 0x2; // data ready signal

Loading…
Cancel
Save