diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2008-02-07 03:15:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:24 -0500 |
commit | 54c0f37e9a200d74ec43cffa6526d9ad17a388a7 (patch) | |
tree | be288402e111b2b20350c296ccc325eda660f616 /drivers/serial/dz.h | |
parent | 43d46ab1cdeb12b8d072cfdf84956073a1fa8866 (diff) |
dz: handle special conditions on reception correctly
Handle the read and ignore status masks correctly. Handle the BREAK condition
as expected: a framing error with a null character is a BREAK, any other
framing error is a framing error indeed.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/dz.h')
-rw-r--r-- | drivers/serial/dz.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/dz.h b/drivers/serial/dz.h index 6b34d50bf42..1e836c3411d 100644 --- a/drivers/serial/dz.h +++ b/drivers/serial/dz.h | |||
@@ -33,6 +33,8 @@ | |||
33 | #define DZ_FERR 0x2000 /* Frame error indicator */ | 33 | #define DZ_FERR 0x2000 /* Frame error indicator */ |
34 | #define DZ_PERR 0x1000 /* Parity error indicator */ | 34 | #define DZ_PERR 0x1000 /* Parity error indicator */ |
35 | 35 | ||
36 | #define DZ_BREAK 0x0800 /* BREAK event software flag */ | ||
37 | |||
36 | #define LINE(x) ((x & DZ_LINE_MASK) >> 8) /* Get the line number | 38 | #define LINE(x) ((x & DZ_LINE_MASK) >> 8) /* Get the line number |
37 | from the input buffer */ | 39 | from the input buffer */ |
38 | #define UCHAR(x) ((unsigned char)(x & DZ_RBUF_MASK)) | 40 | #define UCHAR(x) ((unsigned char)(x & DZ_RBUF_MASK)) |