diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-04-30 03:53:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:43 -0400 |
commit | 7bcf97d1dd88135b58c7adb7c3bfebab55b21a20 (patch) | |
tree | 0b0001fb83cb512256944d47b62b9d3d3fcfd542 /drivers/char/moxa.h | |
parent | 74d7d97b9e2a090a4b1812b5074ac6c539234ebb (diff) |
Char: moxa, merge 2 poll functions
- merge 2 timers into one -- one can handle the emptywait as good as the other
- merge 2 separated poll functions into one, this allows handle the actions
directly and simplifies the code
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Tested-by: Oyvind Aabling <Oyvind.Aabling@uni-c.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/moxa.h')
-rw-r--r-- | drivers/char/moxa.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/moxa.h b/drivers/char/moxa.h index 49e926dea195..0b1650621a04 100644 --- a/drivers/char/moxa.h +++ b/drivers/char/moxa.h | |||
@@ -165,11 +165,11 @@ | |||
165 | #define HostStat 0x08 /* IRQ flag and general flag */ | 165 | #define HostStat 0x08 /* IRQ flag and general flag */ |
166 | #define FlagStat 0x0A | 166 | #define FlagStat 0x0A |
167 | #define FlowControl 0x0C /* B7 B6 B5 B4 B3 B2 B1 B0 */ | 167 | #define FlowControl 0x0C /* B7 B6 B5 B4 B3 B2 B1 B0 */ |
168 | /* x x x x | | | | */ | 168 | /* x x x x | | | | */ |
169 | /* | | | + CTS flow */ | 169 | /* | | | + CTS flow */ |
170 | /* | | +--- RTS flow */ | 170 | /* | | +--- RTS flow */ |
171 | /* | +------ TX Xon/Xoff */ | 171 | /* | +------ TX Xon/Xoff */ |
172 | /* +--------- RX Xon/Xoff */ | 172 | /* +--------- RX Xon/Xoff */ |
173 | #define Break_cnt 0x0E /* received break count */ | 173 | #define Break_cnt 0x0E /* received break count */ |
174 | #define CD180TXirq 0x10 /* if non-0: enable TX irq */ | 174 | #define CD180TXirq 0x10 /* if non-0: enable TX irq */ |
175 | #define RX_mask 0x12 | 175 | #define RX_mask 0x12 |