Aller à la documentation de ce fichier.
30 #ifndef _SERIAL_MASKS_H_
31 #define _SERIAL_MASKS_H_
40 #define INTERRUPT_PENDING 0x01
41 #define INTERRUPT_ID(reg) (reg&0x0F)
45 #define INT_RX_LINE_STATUS 0x6
46 #define INT_DATA_AVAILABLE 0x4
47 #define INT_CHAR_TIMEOUT 0xC
48 #define INT_THR_EMPTY 0x2
49 #define INT_MODEM_STATUS 0x0
52 #define FIFO_ENABLE 0x01
53 #define RCVR_FIFO_RESET 0x02
54 #define XMIT_FIFO_RESET 0x04
55 #define DMA_MODE_SELECT 0x08
57 #define RCVR_TRIGGER 0xC0
58 #define RCVR_TRIGGER_1 0x00
59 #define RCVR_TRIGGER_4 0x40
60 #define RCVR_TRIGGER_8 0x80
61 #define RCVR_TRIGGER_14 0xC0
64 #define WORD_LENGTH 0x03
67 #define PARITY_BIT 0x38
68 #define NO_PARITY 0x00
69 #define EVEN_PARITY 0x08
70 #define ODD_PARITY 0x18
71 #define MARK_PARITY 0x28
72 #define SPACE_PARITY 0x38
74 #define SET_BREAK 0x40
85 #define DATA_READY 0x01
86 #define OVERRUN_ERROR 0x02
87 #define PARITY_ERROR 0x04
88 #define FRAMING_ERROR 0x08
89 #define BREAK_INTERRUPT 0x10
90 #define THR_EMPTY 0x20
92 #define RCVR_FIFO_ERROR 0x80