diff options
| author | Len Brown <len.brown@intel.com> | 2012-06-04 00:35:19 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2012-06-04 00:35:19 -0400 |
| commit | 7e1bd6e38b1f30860ce25a014c6d6adfb0079f4a (patch) | |
| tree | 65c5898ba93007d4399150c7a127a670bcfbc30d /include/linux/generic_serial.h | |
| parent | 301f33fbcf4ced53b3de114846ecece5d6aafeeb (diff) | |
| parent | f8f5701bdaf9134b1f90e5044a82c66324d2073f (diff) | |
Merge branch 'upstream' into bugfix-video
Update bugfix-video branch to 2.5-rc1
so I don't have to again resolve the
conflict in these patches vs. upstream.
Conflicts:
drivers/gpu/drm/gma500/psb_drv.c
text conflict: add comment vs delete neighboring line
keep just this:
/* igd_opregion_init(&dev_priv->opregion_dev); */
/* acpi_video_register(); */
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/generic_serial.h')
| -rw-r--r-- | include/linux/generic_serial.h | 64 |
1 files changed, 2 insertions, 62 deletions
diff --git a/include/linux/generic_serial.h b/include/linux/generic_serial.h index fadff28505bb..79b3eb37243a 100644 --- a/include/linux/generic_serial.h +++ b/include/linux/generic_serial.h | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | * Copyright (C) 1998 R.E.Wolff@BitWizard.nl | 4 | * Copyright (C) 1998 R.E.Wolff@BitWizard.nl |
| 5 | * | 5 | * |
| 6 | * written for the SX serial driver. | 6 | * written for the SX serial driver. |
| 7 | * Contains the code that should be shared over all the serial drivers. | ||
| 8 | * | 7 | * |
| 9 | * Version 0.1 -- December, 1998. | 8 | * Version 0.1 -- December, 1998. |
| 10 | */ | 9 | */ |
| @@ -12,45 +11,8 @@ | |||
| 12 | #ifndef GENERIC_SERIAL_H | 11 | #ifndef GENERIC_SERIAL_H |
| 13 | #define GENERIC_SERIAL_H | 12 | #define GENERIC_SERIAL_H |
| 14 | 13 | ||
| 15 | #ifdef __KERNEL__ | 14 | #warning Use of this header is deprecated. |
| 16 | #include <linux/mutex.h> | 15 | #warning Since nobody sets the constants defined here for you, you should not, in any case, use them. Including the header is thus pointless. |
| 17 | #include <linux/tty.h> | ||
| 18 | |||
| 19 | struct real_driver { | ||
| 20 | void (*disable_tx_interrupts) (void *); | ||
| 21 | void (*enable_tx_interrupts) (void *); | ||
| 22 | void (*disable_rx_interrupts) (void *); | ||
| 23 | void (*enable_rx_interrupts) (void *); | ||
| 24 | void (*shutdown_port) (void*); | ||
| 25 | int (*set_real_termios) (void*); | ||
| 26 | int (*chars_in_buffer) (void*); | ||
| 27 | void (*close) (void*); | ||
| 28 | void (*hungup) (void*); | ||
| 29 | void (*getserial) (void*, struct serial_struct *sp); | ||
| 30 | }; | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | struct gs_port { | ||
| 35 | int magic; | ||
| 36 | struct tty_port port; | ||
| 37 | unsigned char *xmit_buf; | ||
| 38 | int xmit_head; | ||
| 39 | int xmit_tail; | ||
| 40 | int xmit_cnt; | ||
| 41 | struct mutex port_write_mutex; | ||
| 42 | unsigned long event; | ||
| 43 | unsigned short closing_wait; | ||
| 44 | int close_delay; | ||
| 45 | struct real_driver *rd; | ||
| 46 | int wakeup_chars; | ||
| 47 | int baud_base; | ||
| 48 | int baud; | ||
| 49 | int custom_divisor; | ||
| 50 | spinlock_t driver_lock; | ||
| 51 | }; | ||
| 52 | |||
| 53 | #endif /* __KERNEL__ */ | ||
| 54 | 16 | ||
| 55 | /* Flags */ | 17 | /* Flags */ |
| 56 | /* Warning: serial.h defines some ASYNC_ flags, they say they are "only" | 18 | /* Warning: serial.h defines some ASYNC_ flags, they say they are "only" |
| @@ -60,8 +22,6 @@ struct gs_port { | |||
| 60 | #define GS_RX_INTEN 0x00400000 | 22 | #define GS_RX_INTEN 0x00400000 |
| 61 | #define GS_ACTIVE 0x00200000 | 23 | #define GS_ACTIVE 0x00200000 |
| 62 | 24 | ||
| 63 | |||
| 64 | |||
| 65 | #define GS_TYPE_NORMAL 1 | 25 | #define GS_TYPE_NORMAL 1 |
| 66 | 26 | ||
| 67 | #define GS_DEBUG_FLUSH 0x00000001 | 27 | #define GS_DEBUG_FLUSH 0x00000001 |
| @@ -72,24 +32,4 @@ struct gs_port { | |||
| 72 | #define GS_DEBUG_FLOW 0x00000020 | 32 | #define GS_DEBUG_FLOW 0x00000020 |
| 73 | #define GS_DEBUG_WRITE 0x00000040 | 33 | #define GS_DEBUG_WRITE 0x00000040 |
| 74 | 34 | ||
| 75 | #ifdef __KERNEL__ | ||
| 76 | int gs_put_char(struct tty_struct *tty, unsigned char ch); | ||
| 77 | int gs_write(struct tty_struct *tty, | ||
| 78 | const unsigned char *buf, int count); | ||
| 79 | int gs_write_room(struct tty_struct *tty); | ||
| 80 | int gs_chars_in_buffer(struct tty_struct *tty); | ||
| 81 | void gs_flush_buffer(struct tty_struct *tty); | ||
| 82 | void gs_flush_chars(struct tty_struct *tty); | ||
| 83 | void gs_stop(struct tty_struct *tty); | ||
| 84 | void gs_start(struct tty_struct *tty); | ||
| 85 | void gs_hangup(struct tty_struct *tty); | ||
| 86 | int gs_block_til_ready(void *port, struct file *filp); | ||
| 87 | void gs_close(struct tty_struct *tty, struct file *filp); | ||
| 88 | void gs_set_termios (struct tty_struct * tty, | ||
| 89 | struct ktermios * old_termios); | ||
| 90 | int gs_init_port(struct gs_port *port); | ||
| 91 | int gs_setserial(struct gs_port *port, struct serial_struct __user *sp); | ||
| 92 | int gs_getserial(struct gs_port *port, struct serial_struct __user *sp); | ||
| 93 | void gs_got_break(struct gs_port *port); | ||
| 94 | #endif /* __KERNEL__ */ | ||
| 95 | #endif | 35 | #endif |
