summaryrefslogtreecommitdiff
path: root/src/uart_16550.h
blob: 2e20eff5574cd294f09d5083aedecc7f8a36bb2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 */