diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-04-30 11:53:43 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 19:29:42 +0400 |
commit | 74d7d97b9e2a090a4b1812b5074ac6c539234ebb (patch) | |
tree | 912c68a877a5004f1d2926934837dbb512ce606e /drivers/char/moxa.h | |
parent | 0bcc4caadc8f5396b52950ee03c67b76875602df (diff) | |
download | linux-74d7d97b9e2a090a4b1812b5074ac6c539234ebb.tar.xz |
Char: moxa, ioctl cleanup
- allow stats only for sys_admin
- move TCSBRK* processing to .break_ctl tty op
- let TIOCGSOFTCAR and TIOCSSOFTCAR be processed by ldisc
- remove MOXA_GET_MAJOR, MOXA_GET_CUMAJOR
- fix jiffies subtraction by time_after
- move moxa ioctl numbers into the header; still not exported to userspace,
needs _IOC and 32/64 compat cleanup anyways
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/char/moxa.h b/drivers/char/moxa.h index 2a38d17cbc1c..49e926dea195 100644 --- a/drivers/char/moxa.h +++ b/drivers/char/moxa.h @@ -1,6 +1,14 @@ #ifndef MOXA_H_FILE #define MOXA_H_FILE +#define MOXA 0x400 +#define MOXA_GET_IQUEUE (MOXA + 1) /* get input buffered count */ +#define MOXA_GET_OQUEUE (MOXA + 2) /* get output buffered count */ +#define MOXA_GETDATACOUNT (MOXA + 23) +#define MOXA_GET_IOQUEUE (MOXA + 27) +#define MOXA_FLUSH_QUEUE (MOXA + 28) +#define MOXA_GETMSTATUS (MOXA + 65) + /* * System Configuration */ |