summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/console/uart.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move console drivers to bspsSebastian Huber2018-04-201-781/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* Simplify and unify BSP_output_charSebastian Huber2017-09-121-1/+0
| | | | | | | | The BSP_output_char should output a char and not mingle with high level processing, e.g. '\n' to '\r\n' translation. Move this translation to rtems_putc(). Remove it from all the BSP_output_char implementations. Close #3122.
* Use fixed-width C99 types for PowerPC in_be16() and co.Nick Withers2014-12-231-2/+3
| | | | | | Also use the const qualifier on the address pointer's target in in_*() Closes #2128
* powerpc/shared/console: Fix warningsJoel Sherrill2014-10-131-24/+11
|
* termios: Update due to API changesSebastian Huber2013-06-251-3/+0
| | | | | Termios notifies now the driver about an inactive transmit with the length argument set to zero.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* adapted to new prototype for *_write functionThomas Doerfler2009-12-171-4/+4
|
* Whitespace removal.Ralf Corsepius2009-11-301-2/+2
|
* added haleakala BSP contributed by Michael HamelThomas Doerfler2008-07-141-4/+2
|
* 2008-03-21 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-03-211-2/+2
| | | | | | * shared/console/uart.c: In IRQ driven mode also keep reading chars while they are available (fifo could be enabled).
* 2008-03-19 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-03-201-5/+52
| | | | | | * shared/console/console.c, shared/console/uart.c, shared/console/uart.h: added support for task-driven console.
* 2007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-11-261-6/+6
| | | | * shared/console/uart.c: Fix typo and spacing.
* 2007-11-21 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-11-221-1/+7
| | | | | | | | | | | | | | | * shared/console/uart.c: when draining UART during initialization (wait for possible printk() activity to finish) look at TEMT (fifo, holding-reg and shift-reg) rather than THRE (fifo, holding-reg only). This resolved some scrambled output issues for me. Enhanced semantics: if BSP initializes BSPBaseBaud to a negative value then the driver interprets the modulus as a speed value and uses the current setting of the divisor to compute the clock speed (BSPBaseBaud). This is useful if you have a board that you know is initialized e.g., to 9600 but you don't know the clock speed.
* 2007-11-06 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-11-061-1/+1
| | | | * shared/console/uart.c: removed #define UARTDEBUG
* 2005-11-03 <strauman@slac.stanford.edu>Till Straumann2005-11-041-11/+22
| | | | | | | | | * mvme5500/irq/irq.h, psim/irq/irq.h, shared/console/uart.c, shared/irq/irq.h: Renamed BSP_ISA_UART_COMx_IRQ -> BSP_UART_COMx_IRQ (uart driver is ISA independent). Removed ugly #ifdef mvme2100. Added test for BSP_UART_USE_SHARED_IRQS symbol which a BSP can define to request that the serial interrupt be shared.
* 2005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett2005-04-151-2/+6
| | | | | | | PR 779/bsp * clock/p_clock.c, console/console.c, console/uart.c, console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c: powerpc: add parameter to new exception interrupt handlers
* 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>Joel Sherrill2004-11-101-4/+29
| | | | | | | | | | | | * Makefile.am, bootloader/misc.c, bootloader/pci.c, bootloader/pci.h, console/console.c, console/inch.c, console/reboot.c, console/uart.c, console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c, motorola/motorola.c, motorola/motorola.h, openpic/openpic.c, openpic/openpic.h, pci/detect_raven_bridge.c, pci/pci.c, start/start.S, startup/bspstart.c, vectors/vectors_init.c, vme/vmeconfig.c: Add MVME2100 BSP and MPC8240 support. There was also a significant amount of spelling and whitespace cleanup. * tod/todcfg.c: New file.
* Remove duplicate white lines.Ralf Corsepius2004-04-211-4/+0
|
* Remove stray white spaces.Ralf Corsepius2004-04-211-50/+50
|
* 2003-04-10 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2003-04-101-1/+1
| | | | | | | | | | | | | | | | | | PR 379/bsps * console/polled_io.c: libcpu provides 'printk' already. Therefore, the implementation in this file was removed (still used for the bootloader, though). It now provides BSP_output_char() for libcpu's printk(). * console/uart.c, console/uart.h: BSP_output_char_via_serial() prototype changed to match the BSP_output_char_function_type. Note that the motorola BSPs use polled-io for the output_char routine, not the uart.c version. The latter can be used be other BSPs however (e.g. SVGM). * console/console.c, console/consoleIo.h, console/polled_io.c, irq/irq_init.c, openpic/openpic.c, pci/detect_raven_bridge.c: Unfortunately, the supported 'printk' format string subset of the polled-io and libcpu implementations are different - hence, a few format strings in the ppc/shared BSP were changed.
* 2003-02-20 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2003-02-201-10/+54
| | | | | | | | | | | PR 349/bsps * console/console.c, console/uart.c, console/uart.h: implement IOCTLs for the serial (UART) console to install/retrieve a BREAK-IRQ callback. The callback routine (if installed) is invoked from the UART ISR when a BREAK interrupt is detected. This can be used e.g. to enforce a "hotkey" reboot a la vxWorks Ctrl-X (although we use the serial line break condition) NOTE: The callback runs in ISR context.
* 2001-05-14 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2002-05-141-248/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootloader/misc.c, console/Makefile.am, console/console.c, console/consoleIo.h, console/inch.c, console/polled_io.c, console/uart.c, console/uart.h, include/bsp.h, irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_init.c, openpic/openpic.c, openpic/openpic.h, pci/Makefile.am, pci/pci.c, pci/pci.h, residual/Makefile.am, start/start.S, startup/bspstart.c, vectors/vectors.S, vectors/vectors.h, vectors/vectors_init.c: Per PR216, "libbsp/powerpc/shared" BSP has been modified considerably with the goal to make it more flexible and reusable by other BSPs. The main strategies were: - eliminate hardcoded base addresses; devices use offsets and a BSP defined base address. - separate functionality into different files (e.g. reboot from inch.c to reboot.c) which can be overridden by a 'derived' BSP. - separate initialization code into separate files (e.g. PCI bridge detection/initialization was separated from the more generic PCI access routines), also to make it easier for 'derived' BSPs to substitute their own initialization code. There are also a couple of enhancements and fixes: - IRQ handling code now has a hook for attaching a VME bridge. - OpenPIC is now explicitely initialized (polarities, senses). Eliminated the implicit assumption on the presence of an ISA PIC. - UART and console driver now supports more than 1 port. The current maximum of 2 can easily be extended by enlarging a table (it would even be easier if the ISR API was not broken by design). - fixed polled_io.c so it correctly supports console on COM2 - fixed TLB invalidation code (start.S). - exception handler prints a stack backtrace. - added BSP_pciFindDevice() to scan the pci bus for a particular vendor/device/instance.
* Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.Joel Sherrill1999-12-021-0/+778
As part of this effort, the mpc750 libcpu code is now shared with the ppc6xx.