diff options
Diffstat (limited to 'include/linux/serial_core.h')
| -rw-r--r-- | include/linux/serial_core.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index f6fca8f2f3ca..9b12fe731612 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -142,8 +142,8 @@ struct uart_ops { | |||
| 142 | unsigned int (*tx_empty)(struct uart_port *); | 142 | unsigned int (*tx_empty)(struct uart_port *); |
| 143 | void (*set_mctrl)(struct uart_port *, unsigned int mctrl); | 143 | void (*set_mctrl)(struct uart_port *, unsigned int mctrl); |
| 144 | unsigned int (*get_mctrl)(struct uart_port *); | 144 | unsigned int (*get_mctrl)(struct uart_port *); |
| 145 | void (*stop_tx)(struct uart_port *, unsigned int tty_stop); | 145 | void (*stop_tx)(struct uart_port *); |
| 146 | void (*start_tx)(struct uart_port *, unsigned int tty_start); | 146 | void (*start_tx)(struct uart_port *); |
| 147 | void (*send_xchar)(struct uart_port *, char ch); | 147 | void (*send_xchar)(struct uart_port *, char ch); |
| 148 | void (*stop_rx)(struct uart_port *); | 148 | void (*stop_rx)(struct uart_port *); |
| 149 | void (*enable_ms)(struct uart_port *); | 149 | void (*enable_ms)(struct uart_port *); |
| @@ -360,8 +360,6 @@ struct tty_driver *uart_console_device(struct console *co, int *index); | |||
| 360 | */ | 360 | */ |
| 361 | int uart_register_driver(struct uart_driver *uart); | 361 | int uart_register_driver(struct uart_driver *uart); |
| 362 | void uart_unregister_driver(struct uart_driver *uart); | 362 | void uart_unregister_driver(struct uart_driver *uart); |
| 363 | void __deprecated uart_unregister_port(struct uart_driver *reg, int line); | ||
| 364 | int __deprecated uart_register_port(struct uart_driver *reg, struct uart_port *port); | ||
| 365 | int uart_add_one_port(struct uart_driver *reg, struct uart_port *port); | 363 | int uart_add_one_port(struct uart_driver *reg, struct uart_port *port); |
| 366 | int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port); | 364 | int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port); |
| 367 | int uart_match_port(struct uart_port *port1, struct uart_port *port2); | 365 | int uart_match_port(struct uart_port *port1, struct uart_port *port2); |
| @@ -387,11 +385,11 @@ int uart_resume_port(struct uart_driver *reg, struct uart_port *port); | |||
| 387 | /* | 385 | /* |
| 388 | * The following are helper functions for the low level drivers. | 386 | * The following are helper functions for the low level drivers. |
| 389 | */ | 387 | */ |
| 390 | #ifdef SUPPORT_SYSRQ | ||
| 391 | static inline int | 388 | static inline int |
| 392 | uart_handle_sysrq_char(struct uart_port *port, unsigned int ch, | 389 | uart_handle_sysrq_char(struct uart_port *port, unsigned int ch, |
| 393 | struct pt_regs *regs) | 390 | struct pt_regs *regs) |
| 394 | { | 391 | { |
| 392 | #ifdef SUPPORT_SYSRQ | ||
| 395 | if (port->sysrq) { | 393 | if (port->sysrq) { |
| 396 | if (ch && time_before(jiffies, port->sysrq)) { | 394 | if (ch && time_before(jiffies, port->sysrq)) { |
| 397 | handle_sysrq(ch, regs, NULL); | 395 | handle_sysrq(ch, regs, NULL); |
| @@ -400,11 +398,9 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch, | |||
| 400 | } | 398 | } |
| 401 | port->sysrq = 0; | 399 | port->sysrq = 0; |
| 402 | } | 400 | } |
| 401 | #endif | ||
| 403 | return 0; | 402 | return 0; |
| 404 | } | 403 | } |
| 405 | #else | ||
| 406 | #define uart_handle_sysrq_char(port,ch,regs) (0) | ||
| 407 | #endif | ||
| 408 | 404 | ||
| 409 | /* | 405 | /* |
| 410 | * We do the SysRQ and SAK checking like this... | 406 | * We do the SysRQ and SAK checking like this... |
| @@ -468,13 +464,13 @@ uart_handle_cts_change(struct uart_port *port, unsigned int status) | |||
| 468 | if (tty->hw_stopped) { | 464 | if (tty->hw_stopped) { |
| 469 | if (status) { | 465 | if (status) { |
| 470 | tty->hw_stopped = 0; | 466 | tty->hw_stopped = 0; |
| 471 | port->ops->start_tx(port, 0); | 467 | port->ops->start_tx(port); |
| 472 | uart_write_wakeup(port); | 468 | uart_write_wakeup(port); |
| 473 | } | 469 | } |
| 474 | } else { | 470 | } else { |
| 475 | if (!status) { | 471 | if (!status) { |
| 476 | tty->hw_stopped = 1; | 472 | tty->hw_stopped = 1; |
| 477 | port->ops->stop_tx(port, 0); | 473 | port->ops->stop_tx(port); |
| 478 | } | 474 | } |
| 479 | } | 475 | } |
| 480 | } | 476 | } |
