summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/console/uart.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-20bsps: Move console drivers to bspsSebastian Huber1-781/+0
This patch is a part of the BSP source reorganization. Update #3285.
2017-09-12Simplify and unify BSP_output_charSebastian Huber1-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.
2014-12-23Use fixed-width C99 types for PowerPC in_be16() and co.Nick Withers1-2/+3
Also use the const qualifier on the address pointer's target in in_*() Closes #2128
2014-10-13powerpc/shared/console: Fix warningsJoel Sherrill1-24/+11
2013-06-25termios: Update due to API changesSebastian Huber1-3/+0
Termios notifies now the driver about an inactive transmit with the length argument set to zero.
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-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.
2009-12-17 adapted to new prototype for *_write functionThomas Doerfler1-4/+4
2009-11-30Whitespace removal.Ralf Corsepius1-2/+2
2008-07-14added haleakala BSP contributed by Michael HamelThomas Doerfler1-4/+2
2008-03-212008-03-21 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-2/+2
* shared/console/uart.c: In IRQ driven mode also keep reading chars while they are available (fifo could be enabled).
2008-03-202008-03-19 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-5/+52
* shared/console/console.c, shared/console/uart.c, shared/console/uart.h: added support for task-driven console.
2007-11-262007-11-26 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-6/+6
* shared/console/uart.c: Fix typo and spacing.
2007-11-222007-11-21 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-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-062007-11-06 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-1/+1
* shared/console/uart.c: removed #define UARTDEBUG
2005-11-042005-11-03 <strauman@slac.stanford.edu>Till Straumann1-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-152005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-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-102004-11-10 Richard Campbell <richard.campbell@oarcorp.com>Joel Sherrill1-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.
2004-04-21Remove duplicate white lines.Ralf Corsepius1-4/+0
2004-04-21Remove stray white spaces.Ralf Corsepius1-50/+50
2003-04-102003-04-10 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill1-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-202003-02-20 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill1-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.
2002-05-142001-05-14 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill1-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.
1999-12-02Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.Joel Sherrill1-165/+8
As part of this effort, the mpc750 libcpu code is now shared with the ppc6xx.
1999-01-04Patch from D. V. Henkel-Wallace <gumby@zembu.com> to mark sav as unused.Joel Sherrill1-1/+1
1998-10-05Large patch from Erik Ivanenko <erik.ivanenko@utoronto.ca> whichJoel Sherrill1-0/+935
moves pieces of the pc386 bsp up to a shared level for all i386 BSPs and modifies the i386ex BSP to use those shared pieces. Serial remote debugging is included for both targets. Erik's notes: There are several workarounds in it: 1) #define NEXT_GAS is hardcoded in pc386/start/start.s 2) #define NEXT_GAS is hardcoded in i386ex/start/start.s 3) #define NEW_GAS is hardcoded in pc386/start16.s 4) #undef __assert and redeclare _assert hardcoded in console.c for both pc386 and i386ex due to my egcs1.1b ~ newlib problem. Should have modified t-rtems.cfg ( no time ) I've tested pc386 with both video and serial consoles and GDB remote. All work fine, except that GDB acts weird. ( re: other posting) I hope this will work for you. It took quite some time to locate the autoconf error. The remainder was just grunt work. Unfortunately, I think I've unwound the removal of the IBMPCInitVideo stuff. Sorry. I REALLY can't spend more time... I've been at this conversion to 4.0 locally and updating the release since Sept. 8th, and have yet to compile my network driver.... This is as much as I can do right now. I look forward to the next patch to really test i368ex. I did make sure that the sample tests worked for pc386.