diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
commit | e6bee325e49f17c65c1fd66e9e8b348c85788341 (patch) | |
tree | bcc9e5d8e82efa9009edd481a837cc3626360091 /include | |
parent | a5e6b135bdff649e4330f98e2e80dbb1984f7e77 (diff) | |
parent | 6ae705b23be8da52d3163be9d81e9b767876aaf9 (diff) |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (76 commits)
pch_uart: reference clock on CM-iTC
pch_phub: add new device ML7213
n_gsm: fix UIH control byte : P bit should be 0
n_gsm: add a documentation
serial: msm_serial_hs: Add MSM high speed UART driver
tty_audit: fix tty_audit_add_data live lock on audit disabled
tty: move cd1865.h to drivers/staging/tty/
Staging: tty: fix build with epca.c driver
pcmcia: synclink_cs: fix prototype for mgslpc_ioctl()
Staging: generic_serial: fix double locking bug
nozomi: don't use flush_scheduled_work()
tty/serial: Relax the device_type restriction from of_serial
MAINTAINERS: Update HVC file patterns
tty: phase out of ioctl file pointer for tty3270 as well
tty: forgot to remove ipwireless from drivers/char/pcmcia/Makefile
pch_uart: Fix DMA channel miss-setting issue.
pch_uart: fix exclusive access issue
pch_uart: fix auto flow control miss-setting issue
pch_uart: fix uart clock setting issue
pch_uart : Use dev_xxx not pr_xxx
...
Fix up trivial conflicts in drivers/misc/pch_phub.c (same patch applied
twice, then changes to the same area in one branch)
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/ioctls.h | 1 | ||||
-rw-r--r-- | include/linux/kbd_kern.h | 3 | ||||
-rw-r--r-- | include/linux/kd.h | 1 | ||||
-rw-r--r-- | include/linux/platform_data/msm_serial_hs.h | 49 | ||||
-rw-r--r-- | include/linux/spi/ifx_modem.h | 19 | ||||
-rw-r--r-- | include/linux/tty.h | 5 | ||||
-rw-r--r-- | include/linux/tty_driver.h | 13 | ||||
-rw-r--r-- | include/linux/usb/serial.h | 6 | ||||
-rw-r--r-- | include/linux/vt_kern.h | 8 | ||||
-rw-r--r-- | include/net/irda/ircomm_tty.h | 6 |
10 files changed, 80 insertions, 31 deletions
diff --git a/include/asm-generic/ioctls.h b/include/asm-generic/ioctls.h index 3f3f2d189fb8..199975fac395 100644 --- a/include/asm-generic/ioctls.h +++ b/include/asm-generic/ioctls.h | |||
@@ -73,6 +73,7 @@ | |||
73 | #define TCSETXF 0x5434 | 73 | #define TCSETXF 0x5434 |
74 | #define TCSETXW 0x5435 | 74 | #define TCSETXW 0x5435 |
75 | #define TIOCSIG _IOW('T', 0x36, int) /* pty: generate signal */ | 75 | #define TIOCSIG _IOW('T', 0x36, int) /* pty: generate signal */ |
76 | #define TIOCVHANGUP 0x5437 | ||
76 | 77 | ||
77 | #define FIONCLEX 0x5450 | 78 | #define FIONCLEX 0x5450 |
78 | #define FIOCLEX 0x5451 | 79 | #define FIOCLEX 0x5451 |
diff --git a/include/linux/kbd_kern.h b/include/linux/kbd_kern.h index 506ad20c18f8..4b0761cc7dd9 100644 --- a/include/linux/kbd_kern.h +++ b/include/linux/kbd_kern.h | |||
@@ -50,11 +50,12 @@ struct kbd_struct { | |||
50 | #define VC_CAPSLOCK 2 /* capslock mode */ | 50 | #define VC_CAPSLOCK 2 /* capslock mode */ |
51 | #define VC_KANALOCK 3 /* kanalock mode */ | 51 | #define VC_KANALOCK 3 /* kanalock mode */ |
52 | 52 | ||
53 | unsigned char kbdmode:2; /* one 2-bit value */ | 53 | unsigned char kbdmode:3; /* one 3-bit value */ |
54 | #define VC_XLATE 0 /* translate keycodes using keymap */ | 54 | #define VC_XLATE 0 /* translate keycodes using keymap */ |
55 | #define VC_MEDIUMRAW 1 /* medium raw (keycode) mode */ | 55 | #define VC_MEDIUMRAW 1 /* medium raw (keycode) mode */ |
56 | #define VC_RAW 2 /* raw (scancode) mode */ | 56 | #define VC_RAW 2 /* raw (scancode) mode */ |
57 | #define VC_UNICODE 3 /* Unicode mode */ | 57 | #define VC_UNICODE 3 /* Unicode mode */ |
58 | #define VC_OFF 4 /* disabled mode */ | ||
58 | 59 | ||
59 | unsigned char modeflags:5; | 60 | unsigned char modeflags:5; |
60 | #define VC_APPLIC 0 /* application key mode */ | 61 | #define VC_APPLIC 0 /* application key mode */ |
diff --git a/include/linux/kd.h b/include/linux/kd.h index 15f2853ea58f..c36d8476db55 100644 --- a/include/linux/kd.h +++ b/include/linux/kd.h | |||
@@ -81,6 +81,7 @@ struct unimapinit { | |||
81 | #define K_XLATE 0x01 | 81 | #define K_XLATE 0x01 |
82 | #define K_MEDIUMRAW 0x02 | 82 | #define K_MEDIUMRAW 0x02 |
83 | #define K_UNICODE 0x03 | 83 | #define K_UNICODE 0x03 |
84 | #define K_OFF 0x04 | ||
84 | #define KDGKBMODE 0x4B44 /* gets current keyboard mode */ | 85 | #define KDGKBMODE 0x4B44 /* gets current keyboard mode */ |
85 | #define KDSKBMODE 0x4B45 /* sets current keyboard mode */ | 86 | #define KDSKBMODE 0x4B45 /* sets current keyboard mode */ |
86 | 87 | ||
diff --git a/include/linux/platform_data/msm_serial_hs.h b/include/linux/platform_data/msm_serial_hs.h new file mode 100644 index 000000000000..98a2046f8b31 --- /dev/null +++ b/include/linux/platform_data/msm_serial_hs.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 Google, Inc. | ||
3 | * Author: Nick Pelly <npelly@google.com> | ||
4 | * | ||
5 | * This software is licensed under the terms of the GNU General Public | ||
6 | * License version 2, as published by the Free Software Foundation, and | ||
7 | * may be copied, distributed, and modified under those terms. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_MSM_SERIAL_HS_H | ||
16 | #define __ASM_ARCH_MSM_SERIAL_HS_H | ||
17 | |||
18 | #include <linux/serial_core.h> | ||
19 | |||
20 | /* API to request the uart clock off or on for low power management | ||
21 | * Clients should call request_clock_off() when no uart data is expected, | ||
22 | * and must call request_clock_on() before any further uart data can be | ||
23 | * received. */ | ||
24 | extern void msm_hs_request_clock_off(struct uart_port *uport); | ||
25 | extern void msm_hs_request_clock_on(struct uart_port *uport); | ||
26 | |||
27 | /** | ||
28 | * struct msm_serial_hs_platform_data | ||
29 | * @rx_wakeup_irq: Rx activity irq | ||
30 | * @rx_to_inject: extra character to be inserted to Rx tty on wakeup | ||
31 | * @inject_rx: 1 = insert rx_to_inject. 0 = do not insert extra character | ||
32 | * @exit_lpm_cb: function called before every Tx transaction | ||
33 | * | ||
34 | * This is an optional structure required for UART Rx GPIO IRQ based | ||
35 | * wakeup from low power state. UART wakeup can be triggered by RX activity | ||
36 | * (using a wakeup GPIO on the UART RX pin). This should only be used if | ||
37 | * there is not a wakeup GPIO on the UART CTS, and the first RX byte is | ||
38 | * known (eg., with the Bluetooth Texas Instruments HCILL protocol), | ||
39 | * since the first RX byte will always be lost. RTS will be asserted even | ||
40 | * while the UART is clocked off in this mode of operation. | ||
41 | */ | ||
42 | struct msm_serial_hs_platform_data { | ||
43 | int rx_wakeup_irq; | ||
44 | unsigned char inject_rx_on_wakeup; | ||
45 | char rx_to_inject; | ||
46 | void (*exit_lpm_cb)(struct uart_port *); | ||
47 | }; | ||
48 | |||
49 | #endif | ||
diff --git a/include/linux/spi/ifx_modem.h b/include/linux/spi/ifx_modem.h index a68f3b19d112..394fec9e7722 100644 --- a/include/linux/spi/ifx_modem.h +++ b/include/linux/spi/ifx_modem.h | |||
@@ -2,13 +2,18 @@ | |||
2 | #define LINUX_IFX_MODEM_H | 2 | #define LINUX_IFX_MODEM_H |
3 | 3 | ||
4 | struct ifx_modem_platform_data { | 4 | struct ifx_modem_platform_data { |
5 | unsigned short rst_out; /* modem reset out */ | 5 | unsigned short rst_out; /* modem reset out */ |
6 | unsigned short pwr_on; /* power on */ | 6 | unsigned short pwr_on; /* power on */ |
7 | unsigned short rst_pmu; /* reset modem */ | 7 | unsigned short rst_pmu; /* reset modem */ |
8 | unsigned short tx_pwr; /* modem power threshold */ | 8 | unsigned short tx_pwr; /* modem power threshold */ |
9 | unsigned short srdy; /* SRDY */ | 9 | unsigned short srdy; /* SRDY */ |
10 | unsigned short mrdy; /* MRDY */ | 10 | unsigned short mrdy; /* MRDY */ |
11 | unsigned short is_6160; /* Modem type */ | 11 | unsigned char modem_type; /* Modem type */ |
12 | unsigned long max_hz; /* max SPI frequency */ | ||
13 | unsigned short use_dma:1; /* spi protocol driver supplies | ||
14 | dma-able addrs */ | ||
12 | }; | 15 | }; |
16 | #define IFX_MODEM_6160 1 | ||
17 | #define IFX_MODEM_6260 2 | ||
13 | 18 | ||
14 | #endif | 19 | #endif |
diff --git a/include/linux/tty.h b/include/linux/tty.h index 54e4eaaa0561..4e53d4641b38 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -448,6 +448,7 @@ extern void tty_encode_baud_rate(struct tty_struct *tty, | |||
448 | speed_t ibaud, speed_t obaud); | 448 | speed_t ibaud, speed_t obaud); |
449 | extern void tty_termios_copy_hw(struct ktermios *new, struct ktermios *old); | 449 | extern void tty_termios_copy_hw(struct ktermios *new, struct ktermios *old); |
450 | extern int tty_termios_hw_change(struct ktermios *a, struct ktermios *b); | 450 | extern int tty_termios_hw_change(struct ktermios *a, struct ktermios *b); |
451 | extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt); | ||
451 | 452 | ||
452 | extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *); | 453 | extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *); |
453 | extern void tty_ldisc_deref(struct tty_ldisc *); | 454 | extern void tty_ldisc_deref(struct tty_ldisc *); |
@@ -584,10 +585,10 @@ extern int pcxe_open(struct tty_struct *tty, struct file *filp); | |||
584 | 585 | ||
585 | /* vt.c */ | 586 | /* vt.c */ |
586 | 587 | ||
587 | extern int vt_ioctl(struct tty_struct *tty, struct file *file, | 588 | extern int vt_ioctl(struct tty_struct *tty, |
588 | unsigned int cmd, unsigned long arg); | 589 | unsigned int cmd, unsigned long arg); |
589 | 590 | ||
590 | extern long vt_compat_ioctl(struct tty_struct *tty, struct file * file, | 591 | extern long vt_compat_ioctl(struct tty_struct *tty, |
591 | unsigned int cmd, unsigned long arg); | 592 | unsigned int cmd, unsigned long arg); |
592 | 593 | ||
593 | /* tty_mutex.c */ | 594 | /* tty_mutex.c */ |
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index c3d43eb4150c..9deeac855240 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h | |||
@@ -98,8 +98,7 @@ | |||
98 | * | 98 | * |
99 | * Note: Do not call this function directly, call tty_write_room | 99 | * Note: Do not call this function directly, call tty_write_room |
100 | * | 100 | * |
101 | * int (*ioctl)(struct tty_struct *tty, struct file * file, | 101 | * int (*ioctl)(struct tty_struct *tty, unsigned int cmd, unsigned long arg); |
102 | * unsigned int cmd, unsigned long arg); | ||
103 | * | 102 | * |
104 | * This routine allows the tty driver to implement | 103 | * This routine allows the tty driver to implement |
105 | * device-specific ioctls. If the ioctl number passed in cmd | 104 | * device-specific ioctls. If the ioctl number passed in cmd |
@@ -107,7 +106,7 @@ | |||
107 | * | 106 | * |
108 | * Optional | 107 | * Optional |
109 | * | 108 | * |
110 | * long (*compat_ioctl)(struct tty_struct *tty, struct file * file, | 109 | * long (*compat_ioctl)(struct tty_struct *tty,, |
111 | * unsigned int cmd, unsigned long arg); | 110 | * unsigned int cmd, unsigned long arg); |
112 | * | 111 | * |
113 | * implement ioctl processing for 32 bit process on 64 bit system | 112 | * implement ioctl processing for 32 bit process on 64 bit system |
@@ -256,9 +255,9 @@ struct tty_operations { | |||
256 | void (*flush_chars)(struct tty_struct *tty); | 255 | void (*flush_chars)(struct tty_struct *tty); |
257 | int (*write_room)(struct tty_struct *tty); | 256 | int (*write_room)(struct tty_struct *tty); |
258 | int (*chars_in_buffer)(struct tty_struct *tty); | 257 | int (*chars_in_buffer)(struct tty_struct *tty); |
259 | int (*ioctl)(struct tty_struct *tty, struct file * file, | 258 | int (*ioctl)(struct tty_struct *tty, |
260 | unsigned int cmd, unsigned long arg); | 259 | unsigned int cmd, unsigned long arg); |
261 | long (*compat_ioctl)(struct tty_struct *tty, struct file * file, | 260 | long (*compat_ioctl)(struct tty_struct *tty, |
262 | unsigned int cmd, unsigned long arg); | 261 | unsigned int cmd, unsigned long arg); |
263 | void (*set_termios)(struct tty_struct *tty, struct ktermios * old); | 262 | void (*set_termios)(struct tty_struct *tty, struct ktermios * old); |
264 | void (*throttle)(struct tty_struct * tty); | 263 | void (*throttle)(struct tty_struct * tty); |
@@ -271,8 +270,8 @@ struct tty_operations { | |||
271 | void (*set_ldisc)(struct tty_struct *tty); | 270 | void (*set_ldisc)(struct tty_struct *tty); |
272 | void (*wait_until_sent)(struct tty_struct *tty, int timeout); | 271 | void (*wait_until_sent)(struct tty_struct *tty, int timeout); |
273 | void (*send_xchar)(struct tty_struct *tty, char ch); | 272 | void (*send_xchar)(struct tty_struct *tty, char ch); |
274 | int (*tiocmget)(struct tty_struct *tty, struct file *file); | 273 | int (*tiocmget)(struct tty_struct *tty); |
275 | int (*tiocmset)(struct tty_struct *tty, struct file *file, | 274 | int (*tiocmset)(struct tty_struct *tty, |
276 | unsigned int set, unsigned int clear); | 275 | unsigned int set, unsigned int clear); |
277 | int (*resize)(struct tty_struct *tty, struct winsize *ws); | 276 | int (*resize)(struct tty_struct *tty, struct winsize *ws); |
278 | int (*set_termiox)(struct tty_struct *tty, struct termiox *tnew); | 277 | int (*set_termiox)(struct tty_struct *tty, struct termiox *tnew); |
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 45f3b9db4258..b29f70b2ecae 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -261,7 +261,7 @@ struct usb_serial_driver { | |||
261 | const unsigned char *buf, int count); | 261 | const unsigned char *buf, int count); |
262 | /* Called only by the tty layer */ | 262 | /* Called only by the tty layer */ |
263 | int (*write_room)(struct tty_struct *tty); | 263 | int (*write_room)(struct tty_struct *tty); |
264 | int (*ioctl)(struct tty_struct *tty, struct file *file, | 264 | int (*ioctl)(struct tty_struct *tty, |
265 | unsigned int cmd, unsigned long arg); | 265 | unsigned int cmd, unsigned long arg); |
266 | void (*set_termios)(struct tty_struct *tty, | 266 | void (*set_termios)(struct tty_struct *tty, |
267 | struct usb_serial_port *port, struct ktermios *old); | 267 | struct usb_serial_port *port, struct ktermios *old); |
@@ -269,8 +269,8 @@ struct usb_serial_driver { | |||
269 | int (*chars_in_buffer)(struct tty_struct *tty); | 269 | int (*chars_in_buffer)(struct tty_struct *tty); |
270 | void (*throttle)(struct tty_struct *tty); | 270 | void (*throttle)(struct tty_struct *tty); |
271 | void (*unthrottle)(struct tty_struct *tty); | 271 | void (*unthrottle)(struct tty_struct *tty); |
272 | int (*tiocmget)(struct tty_struct *tty, struct file *file); | 272 | int (*tiocmget)(struct tty_struct *tty); |
273 | int (*tiocmset)(struct tty_struct *tty, struct file *file, | 273 | int (*tiocmset)(struct tty_struct *tty, |
274 | unsigned int set, unsigned int clear); | 274 | unsigned int set, unsigned int clear); |
275 | int (*get_icount)(struct tty_struct *tty, | 275 | int (*get_icount)(struct tty_struct *tty, |
276 | struct serial_icounter_struct *icount); | 276 | struct serial_icounter_struct *icount); |
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 6625cc1ab758..4d05e14ea60c 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
@@ -142,14 +142,6 @@ static inline bool vt_force_oops_output(struct vc_data *vc) | |||
142 | return false; | 142 | return false; |
143 | } | 143 | } |
144 | 144 | ||
145 | /* | ||
146 | * vc_screen.c shares this temporary buffer with the console write code so that | ||
147 | * we can easily avoid touching user space while holding the console spinlock. | ||
148 | */ | ||
149 | |||
150 | #define CON_BUF_SIZE (CONFIG_BASE_SMALL ? 256 : PAGE_SIZE) | ||
151 | extern char con_buf[CON_BUF_SIZE]; | ||
152 | extern struct mutex con_buf_mtx; | ||
153 | extern char vt_dont_switch; | 145 | extern char vt_dont_switch; |
154 | extern int default_utf8; | 146 | extern int default_utf8; |
155 | extern int global_cursor_default; | 147 | extern int global_cursor_default; |
diff --git a/include/net/irda/ircomm_tty.h b/include/net/irda/ircomm_tty.h index eea2e6152389..59ba38bc400f 100644 --- a/include/net/irda/ircomm_tty.h +++ b/include/net/irda/ircomm_tty.h | |||
@@ -120,10 +120,10 @@ struct ircomm_tty_cb { | |||
120 | void ircomm_tty_start(struct tty_struct *tty); | 120 | void ircomm_tty_start(struct tty_struct *tty); |
121 | void ircomm_tty_check_modem_status(struct ircomm_tty_cb *self); | 121 | void ircomm_tty_check_modem_status(struct ircomm_tty_cb *self); |
122 | 122 | ||
123 | extern int ircomm_tty_tiocmget(struct tty_struct *tty, struct file *file); | 123 | extern int ircomm_tty_tiocmget(struct tty_struct *tty); |
124 | extern int ircomm_tty_tiocmset(struct tty_struct *tty, struct file *file, | 124 | extern int ircomm_tty_tiocmset(struct tty_struct *tty, |
125 | unsigned int set, unsigned int clear); | 125 | unsigned int set, unsigned int clear); |
126 | extern int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file, | 126 | extern int ircomm_tty_ioctl(struct tty_struct *tty, |
127 | unsigned int cmd, unsigned long arg); | 127 | unsigned int cmd, unsigned long arg); |
128 | extern void ircomm_tty_set_termios(struct tty_struct *tty, | 128 | extern void ircomm_tty_set_termios(struct tty_struct *tty, |
129 | struct ktermios *old_termios); | 129 | struct ktermios *old_termios); |