summaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_subr.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r279723, r279724:Ian Lepore2015-05-231-1/+0
| | | | | | | | | | | | Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART class only. Move the uart_class definitions and fdt compat data into the individual uart implementations, and export them using the new linker-set mechanism. Notes: svn path=/stable/10/; revision=283327
* Teach UART to attach Exynos/s3/s5 class driver.Aleksandr Rybalko2013-06-291-0/+1
| | | | | | | | Submitted by: Ruslan Bukin <br@bsdpad.com> Reviewed by: gonzo Notes: svn path=/head/; revision=252394
* Build uart_dev_lpc.c on arm only. This fixes pc98 build.Yoshihiro Takahashi2013-04-221-0/+2
| | | | Notes: svn path=/head/; revision=249765
* Merging of projects/armv6, part 8Oleksandr Tymoshenko2012-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | r235162: Initial LPC32x0 support. Includes DTS file for Embedded Artists EA3250 board. Peripherals currently supported: - Serial ports - Interrupt controller - Timers - Ethernet - USB host - Framebuffer (in conjunction with SSD1289 LCD controller) - RTC - SPI - GPIO Submitted by: Jakub Wojciech Klama <jceel@freebsd.org> Notes: svn path=/head/; revision=239278
* Replace __const by const in all non-contributed source code.Ed Schouten2011-12-131-6/+6
| | | | | | | | | As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well. Notes: svn path=/head/; revision=228468
* Fix typos.Rebecca Cran2010-11-091-2/+2
| | | | | | | | PR: bin/148894 Submitted by: olgeni Notes: svn path=/head/; revision=215034
* Don't expose the uart_ops structure directly, but instead haveMarcel Moolenaar2007-04-021-6/+44
| | | | | | | | | | | | | | | it obtained through the uart_class structure. This allows us to declare the uart_class structure as weak and as such allows us to reference it even when it's not compiled-in. It also allows is to get the uart_ops structure by name, which makes it possible to implement the dt tag handling in uart_getenv(). The side-effect of all this is that we're using the uart_class structure more consistently which means that we now also have access to the size of the bus space block needed by the hardware when we map the bus space, eliminating any hardcoding. Notes: svn path=/head/; revision=168281
* Make uart_getenv() not be ns8250 dependent. This will allow, in the future,Warner Losh2005-12-121-1/+0
| | | | | | | | | compilation of kernels without ns8250 support but using the uart framework. These kernels will be for machines where size matters more, so including code that can never be executed is undesriable... Notes: svn path=/head/; revision=153363
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Make sure the baudrate specified with the BR tag is somewhat sane.Marcel Moolenaar2004-11-141-0/+20
| | | | | | | | | | | A baudrate we consider insane is silently replaced with 0. When the baudrate is 0, we will not try to program the hardware. Instead we leave the communication speed unaltered, maximizing the chance to have a working console. Obviously this means we allow specifying a 0 baudrate for exactly that purpose. Notes: svn path=/head/; revision=137704
* Fix braino in previous commit: getenv() can return NULL.Marcel Moolenaar2004-03-201-0/+2
| | | | Notes: svn path=/head/; revision=127226
* Introduce the hw.uart.console and hw.uart.dbgport environment variablesMarcel Moolenaar2004-03-201-0/+247
to select a serial console and debug port (resp). On ia64 these replace the use of hints completely and take precedence over hints on alpha, amd64 and i386. On sparc64 these variables are not yet recognised. The reasons for introducing these variables are: 1. Hints have side-effects. They reserve the unit number for use by isa or acpi devices and therefore cannot be used to select a pci device. Also, the use of a unit number to select a device prior to bus enumeration is nonsense. The new variables have no side- effects and are not based on unit numbers. 2. Hints don't have the expression power to allow the sysadmin to select UARTs that are not legacy PC devices and need the support of compile-time constants to give the sysadmin some level of flexibility. The hw.uart.console and hw.uart.dbgport variables specify a list of attributes. An attribute is a tag-value pair, seperated by a colon. Attributes are seperated by a comma. Where possible, tags are the same as those in /etc/remote (only br and pa in practice). Details can be found in the manpage (not part of this commit). Not tested on: amd64, pc98 Notes: svn path=/head/; revision=127215