freebsd-skq/sys/dev/uart
ed cc3116a938 Integrate the new MPSAFE TTY layer to the FreeBSD operating system.
The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

  The old TTY layer has a driver model that is not abstract enough to
  make it friendly to use. A good example is the output path, where the
  device drivers directly access the output buffers. This means that an
  in-kernel PPP implementation must always convert network buffers into
  TTY buffers.

  If a PPP implementation would be built on top of the new TTY layer
  (still needs a hooks layer, though), it would allow the PPP
  implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

  With the old TTY layer, it isn't entirely safe to destroy TTY's from
  the system. This implementation has a two-step destructing design,
  where the driver first abandons the TTY. After all threads have left
  the TTY, the TTY layer calls a routine in the driver, which can be
  used to free resources (unit numbers, etc).

  The pts(4) driver also implements this feature, which means
  posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

  One of the major improvements is the per-TTY mutex, which is expected
  to improve scalability when compared to the old Giant locking.
  Another change is the unbuffered copying to userspace, which is both
  used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from:		//depot/projects/mpsafetty/...
Approved by:		philip (ex-mentor)
Discussed:		on the lists, at BSDCan, at the DevSummit
Sponsored by:		Snow B.V., the Netherlands
dcons(4) fixed by:	kan
2008-08-20 08:31:58 +00:00
..
uart_bus_acpi.c
uart_bus_ebus.c Remove unused variable 'error'. Forgotten in previous commit. 2006-04-02 21:58:09 +00:00
uart_bus_isa.c
uart_bus_ocp.c Initial support for Freescale PowerQUICC III MPC85xx system-on-chip family. 2008-03-03 17:17:00 +00:00
uart_bus_pccard.c
uart_bus_pci.c The HP Diva RMP3 uses BAR 0x14. 2007-05-17 04:07:19 +00:00
uart_bus_puc.c Rewrite of puc(4). Significant changes are: 2006-04-28 21:21:53 +00:00
uart_bus_scc.c Support for Freescale QUad Integrated Communications Controller. 2008-03-03 18:20:17 +00:00
uart_bus.h Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_core.c Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
uart_cpu_amd64.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_cpu_i386.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_cpu_ia64.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_cpu_pc98.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_cpu_powerpc.c Initial support for Freescale PowerQUICC III MPC85xx system-on-chip family. 2008-03-03 17:17:00 +00:00
uart_cpu_sparc64.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_cpu.h Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_dbg.c Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used. 2006-05-26 11:54:32 +00:00
uart_dev_ns8250.c The XScale PXA255 has three generally ns16x50 compatible UARTs. One of the 2008-05-30 01:57:13 +00:00
uart_dev_quicc.c Support for Freescale QUad Integrated Communications Controller. 2008-03-03 18:20:17 +00:00
uart_dev_sab82532.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_dev_z8530.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_if.m
uart_kbd_sun_tables.h
uart_kbd_sun.c Fix bugs in the Sun -> AT keycode translation table which caused the 2007-05-01 14:14:52 +00:00
uart_kbd_sun.h - In sunkbd_probe_keyboard() don't bother to determine the keyboard layout 2006-11-02 00:01:15 +00:00
uart_subr.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_tty.c Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
uart.h add device hints to control the rx FIFO interrupt level on 16550A parts 2008-03-12 19:09:20 +00:00