History log of /freebsd/sys/dev/uart/uart_tty.c (Results 51 – 75 of 117)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0
# dd5b096f 27-Jul-2006 Marcel Moolenaar <marcel@FreeBSD.org>

Properly propagate overrun conditions to the TTY layer.

MFC after: 3 days


# 7672c959 26-May-2006 Poul-Henning Kamp <phk@FreeBSD.org>

Convert to new console api


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 793bcd17 30-Mar-2006 Marcel Moolenaar <marcel@FreeBSD.org>

Don't open if we're going away.


# 2d511805 24-Feb-2006 Marcel Moolenaar <marcel@FreeBSD.org>

MFp4:
Stop using our local UART_IPEND_* and instead use the global SER_INT_*
as defined in <sys/serial.h>.


Revision tags: release/6.0.0_cvs, release/6.0.0
# 284b6708 26-Oct-2005 John Baldwin <jhb@FreeBSD.org>

- Use swi_remove() to teardown swi handlers rather than
intr_event_remove_handler().
- Remove tty: prefix from a couple of swi handler names.


# e0f66ef8 25-Oct-2005 John Baldwin <jhb@FreeBSD.org>

Reorganize the interrupt handling code a bit to make a few things cleaner
and increase flexibility to allow various different approaches to be tried
in the future.
- Split struct ithd up into two pie

Reorganize the interrupt handling code a bit to make a few things cleaner
and increase flexibility to allow various different approaches to be tried
in the future.
- Split struct ithd up into two pieces. struct intr_event holds the list
of interrupt handlers associated with interrupt sources.
struct intr_thread contains the data relative to an interrupt thread.
Currently we still provide a 1:1 relationship of events to threads
with the exception that events only have an associated thread if there
is at least one threaded interrupt handler attached to the event. This
means that on x86 we no longer have 4 bazillion interrupt threads with
no handlers. It also means that interrupt events with only INTR_FAST
handlers no longer have an associated thread either.
- Renamed struct intrhand to struct intr_handler to follow the struct
intr_foo naming convention. This did require renaming the powerpc
MD struct intr_handler to struct ppc_intr_handler.
- INTR_FAST no longer implies INTR_EXCL on all architectures except for
powerpc. This means that multiple INTR_FAST handlers can attach to the
same interrupt and that INTR_FAST and non-INTR_FAST handlers can attach
to the same interrupt. Sharing INTR_FAST handlers may not always be
desirable, but having sio(4) and uhci(4) fight over an IRQ isn't fun
either. Drivers can always still use INTR_EXCL to ask for an interrupt
exclusively. The way this sharing works is that when an interrupt
comes in, all the INTR_FAST handlers are executed first, and if any
threaded handlers exist, the interrupt thread is scheduled afterwards.
This type of layout also makes it possible to investigate using interrupt
filters ala OS X where the filter determines whether or not its companion
threaded handler should run.
- Aside from the INTR_FAST changes above, the impact on MD interrupt code
is mostly just 's/ithread/intr_event/'.
- A new MI ddb command 'show intrs' walks the list of interrupt events
dumping their state. It also has a '/v' verbose switch which dumps
info about all of the handlers attached to each event.
- We currently don't destroy an interrupt thread when the last threaded
handler is removed because it would suck for things like ppbus(8)'s
braindead behavior. The code is present, though, it is just under
#if 0 for now.
- Move the code to actually execute the threaded handlers for an interrrupt
event into a separate function so that ithread_loop() becomes more
readable. Previously this code was all in the middle of ithread_loop()
and indented halfway across the screen.
- Made struct intr_thread private to kern_intr.c and replaced td_ithd
with a thread private flag TDP_ITHREAD.
- In statclock, check curthread against idlethread directly rather than
curthread's proc against idlethread's proc. (Not really related to intr
changes)

Tested on: alpha, amd64, i386, sparc64
Tested on: arm, ia64 (older version of patch by cognet and marcel)

show more ...


# 73363473 16-Oct-2005 Poul-Henning Kamp <phk@FreeBSD.org>

Eliminate two unused arguments to ttycreate().


# 9f0974f9 08-May-2005 Marcel Moolenaar <marcel@FreeBSD.org>

In uart_cnprobe(), fill in the cn_name field of the consdev structure.
The core console code checks this field when a console is added and
emits a warning if it's empty. In practice the warning is ha

In uart_cnprobe(), fill in the cn_name field of the consdev structure.
The core console code checks this field when a console is added and
emits a warning if it's empty. In practice the warning is harmless for
uart(4), because the cn_name is filled in as soon as the device name is
known; which is when the device is enumerated.
To avoid the warning, to avoid possible complications caused by emitting
the warning without there (possibly) being a console selected yet and to
avoid complications when the UART isn't found during bus enumeration, we
just preset the cn_name field here to the name of the driver.

show more ...


Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0
# 098ca2bd 06-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start each of the license/copyright comments with /*-, minor shuffle of lines


Revision tags: release/5.3.0_cvs, release/5.3.0
# fbbec42f 12-Oct-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Remove asserts which are not correct if the port is a tty.


# 79a8d927 12-Oct-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use generic tty code instead of (comparatively little) local copies.


# 9e51d6f1 18-Sep-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use tty->t_sc to find out softc.


# a45b36ad 17-Sep-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use ttyalloc() instead of ttymalloc(NULL)


# 672c05d4 15-Jul-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Preparation commit for the tty cleanups that will follow in the near
future:

rename ttyopen() -> tty_open() and ttyclose() -> tty_close().

We need the ttyopen() and ttyclose() for the new generic c

Preparation commit for the tty cleanups that will follow in the near
future:

rename ttyopen() -> tty_open() and ttyclose() -> tty_close().

We need the ttyopen() and ttyclose() for the new generic cdevsw
functions for tty devices in order to have consistent naming.

show more ...


# b4994e31 30-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Define the tty methods as typedefs.

Change the return type for t_break to void.

Add t_ioctl (more about this later).


# 96df2b0b 25-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use generic support for BREAK and modem control ioctls.


# 28710806 24-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use the new serial port definitions for modemsignals.


# ee531086 23-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

save a few redundant lines by moving the retry loop further backwards.


# 89c9c53d 16-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.


# 2140d01b 04-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Machine generated patch which changes linedisc calls from accessing
linesw[] directly to using the ttyld...() functions

The ttyld...() functions ar inline so there is no performance hit.


# e451f9b7 04-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Make the remaining serial drivers call ttyioctl() rather than calling
the linedisc directly.


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1
# dc08ffec 21-Feb-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Device megapatch 4/6:

Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.

Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT fl

Device megapatch 4/6:

Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.

Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.

show more ...


# 8e1f1df0 21-Feb-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Device megapatch 3/6:

Add missing D_TTY flags to various drivers.

Complete asserts that dev_t's passed to ttyread(), ttywrite(),
ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty
p

Device megapatch 3/6:

Add missing D_TTY flags to various drivers.

Complete asserts that dev_t's passed to ttyread(), ttywrite(),
ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty
pointer.

Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default
cdevsw methods for D_TTY drivers and remove the explicit initializations
in various drivers cdevsw structures.

show more ...


# e618d9ea 14-Feb-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Use standard style for cdevsw initializtion


# b662bdc2 14-Feb-2004 Marcel Moolenaar <marcel@FreeBSD.org>

Test the return value of UART_PARAM(). Invalid line parameters did not
result in an error before.

PR: kern/60284
Submitted by: Thomas Sandford <freebsduser@paradisegreen.co.uk>


12345