diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-07 17:39:20 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-07 17:39:20 -0500 |
| commit | 56b85f32d530d09d6805488ad00775d4e0e3baab (patch) | |
| tree | e7fbe69e338ef775d3b2dd822aa915d259b4bc94 /include/linux | |
| parent | 3e5b08cbbf78bedd316904ab0cf3b27119433ee5 (diff) | |
| parent | 568389c257fa7d74ce36c2f78bad31965fded4cf (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: (36 commits)
serial: apbuart: Fixup apbuart_console_init()
TTY: Add tty ioctl to figure device node of the system console.
tty: add 'active' sysfs attribute to tty0 and console device
drivers: serial: apbuart: Handle OF failures gracefully
Serial: Avoid unbalanced IRQ wake disable during resume
tty: fix typos/errors in tty_driver.h comments
pch_uart : fix warnings for 64bit compile
8250: fix uninitialized FIFOs
ip2: fix compiler warning on ip2main_pci_tbl
specialix: fix compiler warning on specialix_pci_tbl
rocket: fix compiler warning on rocket_pci_ids
8250: add a UPIO_DWAPB32 for 32 bit accesses
8250: use container_of() instead of casting
serial: omap-serial: Add support for kernel debugger
serial: fix pch_uart kconfig & build
drivers: char: hvc: add arm JTAG DCC console support
RS485 documentation: add 16C950 UART description
serial: ifx6x60: fix memory leak
serial: ifx6x60: free IRQ on error
Serial: EG20T: add PCH_UART driver
...
Fixed up conflicts in drivers/serial/apbuart.c with evil merge that
makes the code look fairly sane (unlike either side).
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/console.h | 8 | ||||
| -rw-r--r-- | include/linux/serial_core.h | 7 | ||||
| -rw-r--r-- | include/linux/spi/ifx_modem.h | 14 | ||||
| -rw-r--r-- | include/linux/tty_driver.h | 9 |
4 files changed, 32 insertions, 6 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index 95cf6f08a59d..9774fe6a1a97 100644 --- a/include/linux/console.h +++ b/include/linux/console.h | |||
| @@ -126,6 +126,12 @@ struct console { | |||
| 126 | struct console *next; | 126 | struct console *next; |
| 127 | }; | 127 | }; |
| 128 | 128 | ||
| 129 | /* | ||
| 130 | * for_each_console() allows you to iterate on each console | ||
| 131 | */ | ||
| 132 | #define for_each_console(con) \ | ||
| 133 | for (con = console_drivers; con != NULL; con = con->next) | ||
| 134 | |||
| 129 | extern int console_set_on_cmdline; | 135 | extern int console_set_on_cmdline; |
| 130 | 136 | ||
| 131 | extern int add_preferred_console(char *name, int idx, char *options); | 137 | extern int add_preferred_console(char *name, int idx, char *options); |
| @@ -145,7 +151,7 @@ extern int is_console_locked(void); | |||
| 145 | extern int braille_register_console(struct console *, int index, | 151 | extern int braille_register_console(struct console *, int index, |
| 146 | char *console_options, char *braille_options); | 152 | char *console_options, char *braille_options); |
| 147 | extern int braille_unregister_console(struct console *); | 153 | extern int braille_unregister_console(struct console *); |
| 148 | 154 | extern void console_sysfs_notify(void); | |
| 149 | extern int console_suspend_enabled; | 155 | extern int console_suspend_enabled; |
| 150 | 156 | ||
| 151 | /* Suspend and resume console messages over PM events */ | 157 | /* Suspend and resume console messages over PM events */ |
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 212eb4c67797..a23fa29d4eb0 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -95,7 +95,7 @@ | |||
| 95 | /* PPC CPM type number */ | 95 | /* PPC CPM type number */ |
| 96 | #define PORT_CPM 58 | 96 | #define PORT_CPM 58 |
| 97 | 97 | ||
| 98 | /* MPC52xx type numbers */ | 98 | /* MPC52xx (and MPC512x) type numbers */ |
| 99 | #define PORT_MPC52xx 59 | 99 | #define PORT_MPC52xx 59 |
| 100 | 100 | ||
| 101 | /* IBM icom */ | 101 | /* IBM icom */ |
| @@ -199,6 +199,9 @@ | |||
| 199 | /* TI OMAP-UART */ | 199 | /* TI OMAP-UART */ |
| 200 | #define PORT_OMAP 96 | 200 | #define PORT_OMAP 96 |
| 201 | 201 | ||
| 202 | /* VIA VT8500 SoC */ | ||
| 203 | #define PORT_VT8500 97 | ||
| 204 | |||
| 202 | #ifdef __KERNEL__ | 205 | #ifdef __KERNEL__ |
| 203 | 206 | ||
| 204 | #include <linux/compiler.h> | 207 | #include <linux/compiler.h> |
| @@ -311,6 +314,7 @@ struct uart_port { | |||
| 311 | #define UPIO_TSI (5) /* Tsi108/109 type IO */ | 314 | #define UPIO_TSI (5) /* Tsi108/109 type IO */ |
| 312 | #define UPIO_DWAPB (6) /* DesignWare APB UART */ | 315 | #define UPIO_DWAPB (6) /* DesignWare APB UART */ |
| 313 | #define UPIO_RM9000 (7) /* RM9000 type IO */ | 316 | #define UPIO_RM9000 (7) /* RM9000 type IO */ |
| 317 | #define UPIO_DWAPB32 (8) /* DesignWare APB UART (32 bit accesses) */ | ||
| 314 | 318 | ||
| 315 | unsigned int read_status_mask; /* driver specific */ | 319 | unsigned int read_status_mask; /* driver specific */ |
| 316 | unsigned int ignore_status_mask; /* driver specific */ | 320 | unsigned int ignore_status_mask; /* driver specific */ |
| @@ -361,6 +365,7 @@ struct uart_port { | |||
| 361 | struct device *dev; /* parent device */ | 365 | struct device *dev; /* parent device */ |
| 362 | unsigned char hub6; /* this should be in the 8250 driver */ | 366 | unsigned char hub6; /* this should be in the 8250 driver */ |
| 363 | unsigned char suspended; | 367 | unsigned char suspended; |
| 368 | unsigned char irq_wake; | ||
| 364 | unsigned char unused[2]; | 369 | unsigned char unused[2]; |
| 365 | void *private_data; /* generic platform data pointer */ | 370 | void *private_data; /* generic platform data pointer */ |
| 366 | }; | 371 | }; |
diff --git a/include/linux/spi/ifx_modem.h b/include/linux/spi/ifx_modem.h new file mode 100644 index 000000000000..a68f3b19d112 --- /dev/null +++ b/include/linux/spi/ifx_modem.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #ifndef LINUX_IFX_MODEM_H | ||
| 2 | #define LINUX_IFX_MODEM_H | ||
| 3 | |||
| 4 | struct ifx_modem_platform_data { | ||
| 5 | unsigned short rst_out; /* modem reset out */ | ||
| 6 | unsigned short pwr_on; /* power on */ | ||
| 7 | unsigned short rst_pmu; /* reset modem */ | ||
| 8 | unsigned short tx_pwr; /* modem power threshold */ | ||
| 9 | unsigned short srdy; /* SRDY */ | ||
| 10 | unsigned short mrdy; /* MRDY */ | ||
| 11 | unsigned short is_6160; /* Modem type */ | ||
| 12 | }; | ||
| 13 | |||
| 14 | #endif | ||
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index db2d227694da..c3d43eb4150c 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h | |||
| @@ -102,7 +102,7 @@ | |||
| 102 | * unsigned int cmd, unsigned long arg); | 102 | * unsigned int cmd, unsigned long arg); |
| 103 | * | 103 | * |
| 104 | * This routine allows the tty driver to implement | 104 | * This routine allows the tty driver to implement |
| 105 | * device-specific ioctl's. If the ioctl number passed in cmd | 105 | * device-specific ioctls. If the ioctl number passed in cmd |
| 106 | * is not recognized by the driver, it should return ENOIOCTLCMD. | 106 | * is not recognized by the driver, it should return ENOIOCTLCMD. |
| 107 | * | 107 | * |
| 108 | * Optional | 108 | * Optional |
| @@ -167,12 +167,12 @@ | |||
| 167 | * | 167 | * |
| 168 | * void (*hangup)(struct tty_struct *tty); | 168 | * void (*hangup)(struct tty_struct *tty); |
| 169 | * | 169 | * |
| 170 | * This routine notifies the tty driver that it should hangup the | 170 | * This routine notifies the tty driver that it should hang up the |
| 171 | * tty device. | 171 | * tty device. |
| 172 | * | 172 | * |
| 173 | * Optional: | 173 | * Optional: |
| 174 | * | 174 | * |
| 175 | * int (*break_ctl)(struct tty_stuct *tty, int state); | 175 | * int (*break_ctl)(struct tty_struct *tty, int state); |
| 176 | * | 176 | * |
| 177 | * This optional routine requests the tty driver to turn on or | 177 | * This optional routine requests the tty driver to turn on or |
| 178 | * off BREAK status on the RS-232 port. If state is -1, | 178 | * off BREAK status on the RS-232 port. If state is -1, |
| @@ -235,6 +235,7 @@ | |||
| 235 | #include <linux/fs.h> | 235 | #include <linux/fs.h> |
| 236 | #include <linux/list.h> | 236 | #include <linux/list.h> |
| 237 | #include <linux/cdev.h> | 237 | #include <linux/cdev.h> |
| 238 | #include <linux/termios.h> | ||
| 238 | 239 | ||
| 239 | struct tty_struct; | 240 | struct tty_struct; |
| 240 | struct tty_driver; | 241 | struct tty_driver; |
| @@ -357,7 +358,7 @@ static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) | |||
| 357 | * overruns, either.) | 358 | * overruns, either.) |
| 358 | * | 359 | * |
| 359 | * TTY_DRIVER_DYNAMIC_DEV --- if set, the individual tty devices need | 360 | * TTY_DRIVER_DYNAMIC_DEV --- if set, the individual tty devices need |
| 360 | * to be registered with a call to tty_register_driver() when the | 361 | * to be registered with a call to tty_register_device() when the |
| 361 | * device is found in the system and unregistered with a call to | 362 | * device is found in the system and unregistered with a call to |
| 362 | * tty_unregister_device() so the devices will be show up | 363 | * tty_unregister_device() so the devices will be show up |
| 363 | * properly in sysfs. If not set, driver->num entries will be | 364 | * properly in sysfs. If not set, driver->num entries will be |
