aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser_new.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-02-10 04:45:21 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 13:51:29 -0500
commitf64c84a1668930d1ca2b7dbaa92146c2139cb508 (patch)
tree960eaf06918350edc5bf4757e6942b149e3cdfa8 /drivers/char/mxser_new.h
parent1a221026c3de9e6c05e6343e37205b0369ebbeff (diff)
[PATCH] Char: mxser_new, upgrade to 1.9.15
- allow special rates - break when bad status Signed-off-by: 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/char/mxser_new.h')
-rw-r--r--drivers/char/mxser_new.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/char/mxser_new.h b/drivers/char/mxser_new.h
index 04fa5fc9226d..d42f7766c652 100644
--- a/drivers/char/mxser_new.h
+++ b/drivers/char/mxser_new.h
@@ -35,6 +35,8 @@
35#define MOXA_ASPP_LSTATUS (MOXA + 74) 35#define MOXA_ASPP_LSTATUS (MOXA + 74)
36#define MOXA_ASPP_MON_EXT (MOXA + 75) 36#define MOXA_ASPP_MON_EXT (MOXA + 75)
37#define MOXA_SET_BAUD_METHOD (MOXA + 76) 37#define MOXA_SET_BAUD_METHOD (MOXA + 76)
38#define MOXA_SET_SPECIAL_BAUD_RATE (MOXA + 77)
39#define MOXA_GET_SPECIAL_BAUD_RATE (MOXA + 78)
38 40
39/* --------------------------------------------------- */ 41/* --------------------------------------------------- */
40 42
@@ -212,6 +214,18 @@
212 outb(__oldlcr, (info)->ioaddr+UART_LCR); \ 214 outb(__oldlcr, (info)->ioaddr+UART_LCR); \
213} while (0) 215} while (0)
214 216
217#define SET_MOXA_MUST_ENUM_VALUE(baseio, Value) do { \
218 u8 __oldlcr, __efr; \
219 __oldlcr = inb((baseio)+UART_LCR); \
220 outb(MOXA_MUST_ENTER_ENCHANCE, (baseio)+UART_LCR); \
221 __efr = inb((baseio)+MOXA_MUST_EFR_REGISTER); \
222 __efr &= ~MOXA_MUST_EFR_BANK_MASK; \
223 __efr |= MOXA_MUST_EFR_BANK2; \
224 outb(__efr, (baseio)+MOXA_MUST_EFR_REGISTER); \
225 outb((u8)(Value), (baseio)+MOXA_MUST_ENUM_REGISTER); \
226 outb(__oldlcr, (baseio)+UART_LCR); \
227} while (0)
228
215#define GET_MOXA_MUST_HARDWARE_ID(baseio, pId) do { \ 229#define GET_MOXA_MUST_HARDWARE_ID(baseio, pId) do { \
216 u8 __oldlcr, __efr; \ 230 u8 __oldlcr, __efr; \
217 __oldlcr = inb((baseio)+UART_LCR); \ 231 __oldlcr = inb((baseio)+UART_LCR); \