#ifndef UART_16550_H #define UART_16550_H #define DATA_WORD_LEN_5 0b00 #define DATA_WORD_LEN_6 0b01 #define DATA_WORD_LEN_7 0b10 #define DATA_WORD_LEN_8 0b11 #define STOP_BIT_1 0b000 #define STOP_BIT_2 0b100 /* 1.5 stop bits for 5 bits words */ #define PARITY_NONE 0b000000 #define PARITY_ODD 0b001000 #define PARITY_EVEN 0b011000 #define PARITY_HIGH 0b101000 #define PARITY_LOW 0b111000 #define BREAK_SIGNAL_DISABLED 0b0000000 #define BREAK_SIGNAL_ENABLED 0b1000000 #define DLAB_ACCESSIBLE_RBR_THR_IER 0b00000000 #define DLAB_ACCESSIBLE_DLL_DLM 0b10000000 #endif /* UART_16550_H */