diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/usb/serial.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index e2938fd179e2..e29ebcf3287b 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | #include <linux/kref.h> | 16 | #include <linux/kref.h> |
| 17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
| 18 | #include <linux/sysrq.h> | ||
| 18 | 19 | ||
| 19 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ | 20 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ |
| 20 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ | 21 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ |
| @@ -99,6 +100,7 @@ struct usb_serial_port { | |||
| 99 | char throttled; | 100 | char throttled; |
| 100 | char throttle_req; | 101 | char throttle_req; |
| 101 | char console; | 102 | char console; |
| 103 | unsigned long sysrq; /* sysrq timeout */ | ||
| 102 | struct device dev; | 104 | struct device dev; |
| 103 | }; | 105 | }; |
| 104 | #define to_usb_serial_port(d) container_of(d, struct usb_serial_port, dev) | 106 | #define to_usb_serial_port(d) container_of(d, struct usb_serial_port, dev) |
| @@ -301,6 +303,12 @@ extern void usb_serial_generic_unthrottle(struct tty_struct *tty); | |||
| 301 | extern void usb_serial_generic_shutdown(struct usb_serial *serial); | 303 | extern void usb_serial_generic_shutdown(struct usb_serial *serial); |
| 302 | extern int usb_serial_generic_register(int debug); | 304 | extern int usb_serial_generic_register(int debug); |
| 303 | extern void usb_serial_generic_deregister(void); | 305 | extern void usb_serial_generic_deregister(void); |
| 306 | extern void usb_serial_generic_resubmit_read_urb(struct usb_serial_port *port, | ||
| 307 | gfp_t mem_flags); | ||
| 308 | extern int usb_serial_handle_sysrq_char(struct usb_serial_port *port, | ||
| 309 | unsigned int ch); | ||
| 310 | extern int usb_serial_handle_break(struct usb_serial_port *port); | ||
| 311 | |||
| 304 | 312 | ||
| 305 | extern int usb_serial_bus_register(struct usb_serial_driver *device); | 313 | extern int usb_serial_bus_register(struct usb_serial_driver *device); |
| 306 | extern void usb_serial_bus_deregister(struct usb_serial_driver *device); | 314 | extern void usb_serial_bus_deregister(struct usb_serial_driver *device); |
