summaryrefslogtreecommitdiffstats
path: root/drivers/char/mxser_new.h
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2007-02-10 10:45:21 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 19:51:29 +0100
commitf64c84a1668930d1ca2b7dbaa92146c2139cb508 (patch)
tree960eaf06918350edc5bf4757e6942b149e3cdfa8 /drivers/char/mxser_new.h
parent[PATCH] Char: mxser_new, do not put pdev (diff)
downloadlinux-f64c84a1668930d1ca2b7dbaa92146c2139cb508.tar.xz
linux-f64c84a1668930d1ca2b7dbaa92146c2139cb508.zip
[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 @@
#define MOXA_ASPP_LSTATUS (MOXA + 74)
#define MOXA_ASPP_MON_EXT (MOXA + 75)
#define MOXA_SET_BAUD_METHOD (MOXA + 76)
+#define MOXA_SET_SPECIAL_BAUD_RATE (MOXA + 77)
+#define MOXA_GET_SPECIAL_BAUD_RATE (MOXA + 78)
/* --------------------------------------------------- */
@@ -212,6 +214,18 @@
outb(__oldlcr, (info)->ioaddr+UART_LCR); \
} while (0)
+#define SET_MOXA_MUST_ENUM_VALUE(baseio, Value) do { \
+ u8 __oldlcr, __efr; \
+ __oldlcr = inb((baseio)+UART_LCR); \
+ outb(MOXA_MUST_ENTER_ENCHANCE, (baseio)+UART_LCR); \
+ __efr = inb((baseio)+MOXA_MUST_EFR_REGISTER); \
+ __efr &= ~MOXA_MUST_EFR_BANK_MASK; \
+ __efr |= MOXA_MUST_EFR_BANK2; \
+ outb(__efr, (baseio)+MOXA_MUST_EFR_REGISTER); \
+ outb((u8)(Value), (baseio)+MOXA_MUST_ENUM_REGISTER); \
+ outb(__oldlcr, (baseio)+UART_LCR); \
+} while (0)
+
#define GET_MOXA_MUST_HARDWARE_ID(baseio, pId) do { \
u8 __oldlcr, __efr; \
__oldlcr = inb((baseio)+UART_LCR); \