<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/uart/uart_core.c, branch release/12.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-09-08T22:50:24Z</updated>
<entry>
<title>MFC 359900: Export a sysctl count of RX FIFO overrun events.</title>
<updated>2020-09-08T22:50:24Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-09-08T22:50:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13ccf661f6633628bf977612b86b6b638f0b5273'/>
<id>urn:sha1:13ccf661f6633628bf977612b86b6b638f0b5273</id>
<content type='text'>
uart(4) backends currently detect RX FIFO overrun errors and report
them to the uart(4) core layer.  They are then reported to the generic
TTY layer which promptly ignores them.  As a result, there is
currently no good way to determine if a uart is experiencing RX FIFO
overruns.  One could add a generic per-tty counter, but there did not
appear to be a good way to export those.  Instead, add a sysctl under
the uart(4) sysctl tree to export the count of overruns.
</content>
</entry>
<entry>
<title>add snps IP uart support / genaralize UART</title>
<updated>2018-08-19T21:10:21Z</updated>
<author>
<name>Matt Macy</name>
<email>mmacy@FreeBSD.org</email>
</author>
<published>2018-08-19T21:10:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=381388b9c48b07b08199b07b7657d46e8fcb59b0'/>
<id>urn:sha1:381388b9c48b07b08199b07b7657d46e8fcb59b0</id>
<content type='text'>
This is an amalgam of a patch by Doug Ambrisko to
generalize uart_acpi_find_device, imp moving the
ACPI table to uart_dev_ns8250.c and advice by jhb
to work around a bug in the EPYC 3151 BIOS
(the BIOS incorrectly marks the serial ports as
disabled)

Reviewed by: imp
MFC after: 8 weeks
Differential Revision: https://reviews.freebsd.org/D16432
</content>
</entry>
<entry>
<title>sys/dev: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T14:52:40Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T14:52:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=718cf2ccb9956613756ab15d7a0e28f2c8e91cab'/>
<id>urn:sha1:718cf2ccb9956613756ab15d7a0e28f2c8e91cab</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>Allow setting access-width for UART registers.</title>
<updated>2017-02-27T20:08:42Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2017-02-27T20:08:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c214a270f501ce3711165c0d18f55733bcc0ca93'/>
<id>urn:sha1:c214a270f501ce3711165c0d18f55733bcc0ca93</id>
<content type='text'>
This is required for FDT's standard "reg-io-width" property
(similar to "reg-shift" property) found in many DTS files.

This fixes operation on Altera Arria 10 SOC Development Kit,
where standard ns8250 uart allows 4-byte access only.

Reviewed by:	kan, marcel
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D9785
</content>
</entry>
<entry>
<title>Allow uart(4) to use MSI interrupts on single-port PCI instances.</title>
<updated>2017-01-12T16:30:27Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2017-01-12T16:30:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb1d9b7f4113d7aeb72a7313f05a629ad691c627'/>
<id>urn:sha1:fb1d9b7f4113d7aeb72a7313f05a629ad691c627</id>
<content type='text'>
Do this here as puc(4) disallows single-port instances; at least
one multi-port PCIe UART chip (in this case, the ASIX MCS9922)
present separate PCI configuration space (functions) for each UART.

Tested using lrzsz and a null-modem cable. The ExpressCard/34
variants containing the MCS9922 should also use MSI with this change.

Reviewed by:		jhb, imp, rpokala
MFC after:		2 weeks
Differential Revision:	https://reviews.freebsd.org/D9123
</content>
</entry>
<entry>
<title>Do not reallocate driver softc for uart unnecessarily.</title>
<updated>2016-11-17T16:06:53Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2016-11-17T16:06:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5515b0cb39fae7d2951b779b64a7e56823ac44c2'/>
<id>urn:sha1:5515b0cb39fae7d2951b779b64a7e56823ac44c2</id>
<content type='text'>
Do not assume that all uart drivers use uart_softc structure as is.
Some do a sensible thing and do declare their uart class and driver
properly and arrive into uart_bus_attach with suitably sized softc.

Submitted by:	kan
Sponsored by:	DARPA, AFRL
</content>
</entry>
<entry>
<title>Fix UART PPS capture mode printing</title>
<updated>2016-08-28T04:40:27Z</updated>
<author>
<name>Justin Hibbits</name>
<email>jhibbits@FreeBSD.org</email>
</author>
<published>2016-08-28T04:40:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7bd8311dec8365f15c103e17aa236f7ccffb6161'/>
<id>urn:sha1:7bd8311dec8365f15c103e17aa236f7ccffb6161</id>
<content type='text'>
* Add breaks to prevent fallthrough and printing of multiple modes.
* Only check the mode, mask out all other bits.
</content>
</entry>
<entry>
<title>Restore uart PPS signal capture polarity to its historical norm, and add an</title>
<updated>2016-01-12T18:42:00Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2016-01-12T18:42:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdfbb3f5b1b6199051e3421609c783b216cef6e5'/>
<id>urn:sha1:fdfbb3f5b1b6199051e3421609c783b216cef6e5</id>
<content type='text'>
option to invert the polarity in software. Also add an option to capture
very narrow pulses by using the hardware's MSR delta-bit capability of
latching line state changes.

This effectively reverts the mistake I made in r286595 which was based on
empirical measurements made on hardware using TTL-level signaling, in which
the logic levels are inverted from RS-232. Thus, this re-syncs the polarity
with the requirements of RFC 2783, which is writen in terms of RS-232
signaling.

Narrow-pulse mode uses the ability of most ns8250 and similar chips to
provide a delta indication in the modem status register. The hardware is
able to notice and latch the change when the pulse width is shorter than
interrupt latency, which results in the signal no longer being asserted by
time the interrupt service code runs. When running in this mode we get
notified only that "a pulse happened" so the driver synthesizes both an
ASSERT and a CLEAR event (with the same timestamp for each). When the pulse
width is about equal to the interrupt latency the driver may intermittantly
see both edges of the pulse. To prevent generating spurious events, the
driver implements a half-second lockout period after generating an event
before it will generate another.

Differential Revision:	https://reviews.freebsd.org/D4477
</content>
</entry>
<entry>
<title>Use bus_alloc_resource_any(), rather than bus_alloc_resource()</title>
<updated>2015-08-12T04:03:04Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-08-12T04:03:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9def69ec5fdce709902ea961222af87b4934533c'/>
<id>urn:sha1:9def69ec5fdce709902ea961222af87b4934533c</id>
<content type='text'>
with start 0 and end ~0. This avoids confusion WRT to what the
value of length can or should be.
</content>
</entry>
<entry>
<title>Style fix, no functional changes -- do the braces for switches correctly.</title>
<updated>2015-08-11T02:30:54Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2015-08-11T02:30:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dc4aaf6dd1d30f0c77bbca468827a4f54ec1a238'/>
<id>urn:sha1:dc4aaf6dd1d30f0c77bbca468827a4f54ec1a238</id>
<content type='text'>
</content>
</entry>
</feed>
