summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/console/console.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move console drivers to bspsSebastian Huber2018-04-201-160/+0
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* Include missing <string.h>Sebastian Huber2017-08-251-0/+1
| | | | Update #2133.
* termios: Use IMFS nodes for new Termios devicesSebastian Huber2016-09-191-6/+0
| | | | | | | | This makes the new Termios devices independent of device major/minor numbers. It enables BSP independent Termios device drivers which may reside in the cpukit domain. These drivers require an IMFS and do not work with the device file system. However, the device file system should go away in the future.
* sparc/leon3: Remove include of <rtems/console.h> from <bsp.h> and fix warningsJoel Sherrill2016-03-291-0/+1
|
* bsp/leon3: Fix Termios context usageSebastian Huber2015-10-201-8/+3
| | | | | Only the context of the console device was used and this is wrong in case more than one APBUART device is available.
* LEON: move driver headers to bsp/ directoryDaniel Hellstrom2015-04-171-1/+1
|
* LEON3: implemented BSP DRVMGR startup initializationDaniel Hellstrom2015-04-171-0/+10
|
* termios: Partially hide rtems_termios_ttySebastian Huber2014-10-071-4/+6
| | | | | | | Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
* termios: Separate flow control from normal handlerSebastian Huber2014-10-071-0/+2
|
* bsps/sparc: Add and use shared APBUART consoleSebastian Huber2014-07-091-323/+26
| | | | | | Move the APBUART console driver support to the shared SPARC area so that it can be reused by other BSPs. Only the console driver initialization is now BSP specific.
* bsps/sparc: Reduce copy and pasteSebastian Huber2014-07-011-15/+16
|
* LEON3: fix console close handlingDaniel Hellstrom2014-06-301-3/+3
| | | | | | On SMP rtems_interrupt_lock_context must be used. Most tests fail with a NULL pointer exception when exiting, except on NGMP where main memory is at 0x00000000.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* bsp/leon3: Add and use fatal codesSebastian Huber2014-02-191-2/+3
|
* Revert "bsp/leon3: New BSP variant leon3_qemu"Sebastian Huber2014-02-071-13/+0
| | | | | | This reverts commit 7579e255127ee0cf04901bbab6c1538559053508. Improve QEMU to support AMBA plug and play instead.
* bsp/leon3: New BSP variant leon3_qemuSebastian Huber2014-02-061-0/+13
|
* bsp/leon3: Console driver changesSebastian Huber2014-02-041-58/+15
| | | | | Move declaration of global variables and functions to <leon.h> header file. Make several global variables and functions static.
* bsp/leon3: Avoid copy and paste in console driverSebastian Huber2014-02-041-39/+23
|
* bsp/leon3: Fix interrupt-driven console driverSebastian Huber2014-02-041-72/+98
|
* leon3/console.c: Fix misisng prototype issuesJoel Sherrill2013-09-211-2/+15
|
* termios: Update due to API changesSebastian Huber2013-06-251-16/+13
| | | | | Termios notifies now the driver about an inactive transmit with the length argument set to zero.
* LEON: moved register definitions into grlib header fileDaniel Hellstrom2012-05-161-5/+5
| | | | | | | | | | | | Some register layout definitions for LEON3 reside in ambapp.h which does not really has anything to do with device registers. The register structures has been incorrectly named LEON3_*, the cores are not only used on LEON3 but on LEON4 and perhaps on LEON5 when that day comes. Some structures has been renamed according to the GRLIB core name instead, which CPU that actually use it is not relevant. Drivers has been updated with the new names. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: added TX-wait-complete and CR on NL support for UARTDaniel Hellstrom2012-04-191-4/+7
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: add console interrupt mode supportDaniel Hellstrom2012-04-191-19/+152
| | | | | | | | | The comment in configure.ac is probably inherited from the LEON2 BSP. The LEON3 console driver implements a "flush" mechanism on console_close() in order to solve the problem described with sis/LEON2. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: add console attributes such as parity and baudrateDaniel Hellstrom2012-04-191-3/+68
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: updated console driver for new AMBAPP layerDaniel Hellstrom2012-04-171-7/+44
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: console use register pointers instead of UART indexesDaniel Hellstrom2012-04-051-8/+8
| | | | Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3: cleanup console UART indexing handlingDaniel Hellstrom2012-04-051-38/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UART indexing was rather a mess when MP was enabled. The changes introduces two weak variables syscon_uart_index and debug_uart_index so that the user can override the default system debug console (printk) and system console UART (/dev/console). The two weak variables is updated on boot to reflect the "real" UART index. MINOR DEVICE-FS-NAME UART 0 /dev/console Default /dev/console_a, user selectable 1 /dev/console_a APBUART[0] (missing by default) 2 /dev/console_b APBUART[1] ... /dev/console_a is by default renamed /dev/console and assigned minor=0, but user can select /dev/console_['a'+N] to be renamed to /dev/console by setting syscon_uart_index=N. On a MP system the console renamed to /dev/console is selected by CPU index (LEON3_Cpu_Index). /dev/console_['a' + LEON3_Cpu_Index] is renamed unless overrided. Resource sharing is performed by the user, one should not open/access a console that another OS instance uses. This patch also moves the initialization of the UART to the open() call, note that before APBUART[0] was always enabled as debug uart even on MP systems. The debug UART is initialized at boot time. Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* 2010-05-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-05-241-29/+3
| | | | | | | * Makefile.am, amba/amba.c, console/console.c, console/debugputs.c, startup/bspstart.c: Rework initialization order so AMBA bus is scanned earlier. This lets us look for UARTs earlier and support printk as early as bsp_start() returning.
* 2009-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-12-101-1/+1
| | | | | * console/console.c: Reflect changes to rtems_termios_callbacks->write.
* Whitespace removal.Ralf Corsepius2009-11-291-14/+14
|
* 2009-11-23 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-11-231-11/+0
| | | | | | * Makefile.am, startup/bspstart.c: Use ../../sparc/shared/bsppretaskinghook.c. * console/console.c: Remove sis comment.
* 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-191-1/+0
| | | | * console/console.c: Fix warning.
* 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-191-2/+3
| | | | | | | | * Makefile.am, console/console.c, console/debugputs.c, include/bsp.h, startup/setvec.c: Split idle method into its own file. Properly note to confdefs.h that this BSP has its own idle thread. Also address use of maximum termios constant in debug IO. * startup/bspidle.S: New file.
* Add missing prototypes.Ralf Corsepius2008-08-181-1/+1
|
* 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-111-1/+1
| | | | | * console/console.c, timer/timer.c: Fix typos in previous commit uncovered by MP build.
* 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-12-041-15/+21
| | | | | | | * amba/amba.c, clock/ckinit.c, console/console.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms.
* 2007-09-07 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-09-071-2/+1
| | | | | * console/console.c, leon_greth/leon_greth.c, leon_smc91111/leon_smc91111.c: Remove warnings.
* 2007-09-06 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-09-061-18/+0
| | | | | | | | * Makefile.am, preinstall.am: New files, split of printk. * console/console.c, console/debugputs.c: Split printk support out. * include/spacewire.h: Removed. * Makefile.am, preinstall.am: Use the following new drivers from sparc/shared: PCI, b1553BRM, SpaceWire(GRSPW), CAN (GRCAN), Raw UART.
* 2007-09-05 Daniel Hellstrom <daniel@gaisler.com>Joel Sherrill2007-09-061-24/+39
| | | | | | | | * clock/ckinit.c, console/console.c, leon_greth/leon_greth.c, leon_smc91111/leon_smc91111.c: LEON3 BSP drivers updated to use new AMBA PnP scanning functions. Affected drivers: amba/amba.c,clock/ckinit.c,console/console.c, leon_greth/leon_greth.c, leon_smc9111.c.
* Backport from rtems-4-6-branch.Ralf Corsepius2006-01-091-0/+232