2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers
Alan Cox 5f519d7281 tty: expose new methods needed for drivers to get termios right
This adds three new functions (or in one case to be more exact makes it
always available)

tty_termios_copy_hw

Copies all the hardware settings from one termios structure to the other.
This is intended for drivers that support little or no hardware setting

tty_termios_encode_baud_rate

Allows you to set the input and output baud rate in a termios structure.  A
driver is supposed to set the resulting baud rate from a request so most
will want to use this function to set the resulting input and output rates
to match the hardware values.  Internally it knows about keeping Bxxx
encoding when possible to maximise compatibility.

tty_encode_baud_rate

As above but for the tty's own current termios structure

I suspect this will initially need some tweaking as it gets enabled by
driver patches over the next few mm cycles so consider this lot -mm only
for the moment so it can stabilize and end up neat before it goes to base.

I've tried not to break any obscure architectures - if you get a speed you
can't represent the code will print warnings on non updated termios systems
but not break.

Once this is merged and seems sane I've got a growing pile of driver
updates to use it - notably for USB serial drivers.

[akpm@linux-foundation.org: cleanups]
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:42:58 -07:00
..
acorn/char unicode diacritics support 2007-10-17 08:42:52 -07:00
acpi
amba
ata Merge branch 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block 2007-10-16 10:09:16 -07:00
atm Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-10-16 11:23:06 -07:00
auxdisplay
base make dmapool code use __set_current_state() 2007-10-17 08:42:56 -07:00
block Remove final traces of long-deprecated "ramdisk" kernel parm 2007-10-17 08:42:56 -07:00
bluetooth
cdrom
char tty: expose new methods needed for drivers to get termios right 2007-10-17 08:42:58 -07:00
clocksource
connector
cpufreq
crypto
dca
dio
dma Remove "unsafe" from module struct 2007-10-17 08:42:49 -07:00
edac
eisa
fc4
firewire firewire: fw-cdev: reorder wakeup vs. spinlock 2007-10-17 00:00:10 +02:00
firmware
hid
hwmon
i2c Make the pr_*() family of macros in kernel.h complete 2007-10-17 08:42:57 -07:00
ide amd74xx: remove /proc/ide/amd74xx 2007-10-16 22:29:58 +02:00
ieee1394 ieee1394: ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition 2007-10-16 23:59:59 +02:00
infiniband
input Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-10-16 11:23:06 -07:00
isdn
kvm
leds Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-10-16 11:23:06 -07:00
lguest
macintosh fix adbhid mismerge 2007-10-16 19:04:49 -07:00
mca
md
media
message I2O: Fix "defined but not used" build warnings 2007-10-17 08:42:56 -07:00
mfd
misc Driver for the Atmel on-chip SSC on AT32AP and AT91 2007-10-17 08:42:47 -07:00
mmc missing include in mmc 2007-10-16 19:05:30 -07:00
mtd Slab API: remove useless ctor parameter and reorder parameters 2007-10-17 08:42:45 -07:00
net Make the pr_*() family of macros in kernel.h complete 2007-10-17 08:42:57 -07:00
nubus
of
oprofile
parisc
parport
pci
pcmcia pcmcia: CompactFlash driver for PA Semi Electra boards 2007-10-17 08:42:48 -07:00
pnp pnp: avoid a small unlikely memory leak in proc_read_escd() 2007-10-17 08:42:51 -07:00
power
ps3 ps3fb: default to 480p on DVI-D/HDMI if video=safe 2007-10-16 09:43:22 -07:00
rapidio
rtc rtc: allow validated RTC_PIE_ON for non-root 2007-10-16 09:43:13 -07:00
s390 unicode diacritics support 2007-10-17 08:42:52 -07:00
sbus
scsi Merge branch 'for-linus' of git://git.kernel.dk/data/git/linux-2.6-block 2007-10-16 10:09:16 -07:00
serial jsm: Remove further unneeded crud 2007-10-17 08:42:52 -07:00
sh
sn
spi
ssb
tc lk201: remove obsolete driver 2007-10-17 08:42:57 -07:00
telephony
uio
usb kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
video Make the pr_*() family of macros in kernel.h complete 2007-10-17 08:42:57 -07:00
w1 Clean up duplicate includes in drivers/w1/ 2007-10-17 08:42:48 -07:00
xen
zorro
Kconfig
Makefile