summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/console.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-02-01Correct run-time selection of console port.Jennifer Averett1-543/+0
This was broken by conversion of console driver to libchip style.
2011-03-142011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-50/+28
PR 1762/cpukit * Makefile.am, preinstall.am, console/console.c, console/keyboard.c, console/keyboard.h, console/pc_keyb.c, console/ps2_mouse.c, console/vgainit.c: Made mouse parser engine generic. Now use generic serial mouse driver. Moved many externs from C to .h. * console/kbd_parser.c, console/serial_mouse_config.c: New files. * console/mouse_parser.c, console/mouse_parser.h, console/serial_mouse.c, console/serial_mouse.h: Removed.
2011-01-282011-01-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+1
* clock/rtc.c, console/console.c, console/inch.c, console/outch.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, startup/bspcmdline.c, startup/bspstart.c, startup/ldsegs.S, timer/timer.c, timer/timerisr.S: Fix typo where license said found in found in.
2010-10-112010-10-11 Chris Johns <chrisj@rtems.org>Chris Johns1-12/+14
* console/console.c: Fix the baudrate command line support.
2010-08-272010-08-27 Chris Johns <chrisj@rtems.org>Chris Johns1-15/+35
* console/console.c: Add baudrate support to the --console command line option. You can now do '--console=com1,115200'.
2010-04-12Reflect termios API changes.Ralf Corsepius1-4/+4
2009-11-30Whitespace removal.Ralf Corsepius1-2/+2
2009-11-062009-11-05 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-1/+1
* console/console.c: Fixed compiler warning.
2009-11-062009-11-05 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-39/+58
* start/start.S, console/console.c: Separated code that switched console and printk port based on info gathered from the commandline and/or a BSP provided routine into new BSP_console_select() which is called from 'start.S' so that early messages make it to the redirected printk port.
2009-10-282009-12-27 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-0/+7
* include/bsp.h, console/console.c: Provide weak-alias hook so that the application may choose the console.
2009-09-302009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* console/console.c, console/serial_mouse.c: Reflect termios_baud_to_number having been renamed to rtems_termios_baud_to_number.
2009-05-062009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
* console/console.c, console/inch.c, ide/ide.c: Fixed warnings.
2009-04-282009-04-28 Chris Johns <chrisj@rtems.org>Chris Johns1-0/+27
* Makefile.am: Add bspcmdline.c. * include/bsp.h: Add boot command line interfaces. * start/start.c: Save the multiboot command line. Pass the command line to boot_card. * start/start.S: Update for boot_card command line change. * startup/bspstart.c: Initialise the command line. * startup/bspcmdline.c: New. * console/console.c, ide/idecfg.c: Add boot command line support.
2008-11-032008-11-03 Till Straumann <strauman@slac.stanford.edu>Till Straumann1-9/+16
PR 1332: call BSP_uart_termios_set()/BSP_uart_intr_ctrl() only from 'firstOpen' and only if this is a serial console.
2008-09-05Remove bogus decl.Ralf Corsepius1-1/+0
2008-05-232008-05-23 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-57/+3
* console/console.c, console/serial_mouse.c: Eliminate copies of switches to convert termios Bxxx constants to xxx as an integer. Use the shared termios_baud_to_number() routine to do the same conversion.
2007-05-282007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-40/+0
PR 1244/bsps * console/console.c: Remove definition of __assert.
2006-02-012006-02-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+5
* configure.ac, console/console.c: Add USE_COM1_AS_CONSOLE BSP option. This makes it easy to build the pc386 BSP in a configuration that corresponds to qemu with COM1 redirected to stdio.
2005-05-062005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-1/+1
* 3c509/3c509.c, clock/ckinit.c, console/console.c, console/fb_vga.c, console/inch.c, console/ps2_mouse.c, console/serial_mouse.c, ne2000/ne2000.c, timer/timer.c, wd8003/wd8003.c: Moved irq.h to bsp subdirectory.
2005-05-032005-05-03 Jennifer Averett <jennifer.averett@oarcorp.com>Jennifer Averett1-2/+7
* 3c509/3c509.c, ne2000/ne2000.c: Modified parameters to remove warnings. * console/console.c, wd8003/wd8003.c: Added support for addition of parameter in ISRs.
2005-04-182005-04-18 Eric Valette <eric.valette@free.fr>Jennifer Averett1-4/+5
* clock/ckinit.c, console/console.c, console/ps2_mouse.c, console/serial_mouse.c, timer/timer.c: Added parameter to irq handler
2004-04-21Remove duplicate white lines.Ralf Corsepius1-8/+0
2004-04-21Remove stray white spaces.Ralf Corsepius1-42/+42
2004-04-15Remove stray white spaces.Ralf Corsepius1-2/+0
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* clock/ckinit.c, clock/rtc.c, console/console.c, console/inch.c, console/outch.c, ide/ide.c, include/bsp.h, include/crt.h, ne2000/ne2000.c, start/start.S, startup/bspstart.c, startup/exit.c, startup/ldsegs.S, startup/linkcmds, timer/timer.c, timer/timerisr.S: URL for license changed.
2003-07-082003-07-08 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* console/console.c: Correct typo.
2002-07-162002-07-16 Eric Norum <eric.norum@usask.ca>Joel Sherrill1-0/+13
* console/console.c: Others on the rtems-users list have expressed concern about this run-time selection, so I've enclosed the changes in a #ifdef RTEMS_RUNTIME_CONSOLE_SELECT conditional.
2000-12-052000-12-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+1
* pc386/console/console.c, pc386/console/serial_mouse.c, pc386/console/vgainit.c, shared/comm/tty_drv.c: Remove warnings.
2000-10-182000-10-18 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>Joel Sherrill1-4/+35
* console/console.c, console/serial_mouse.c, include/bsp.h: Add the ability to set parity, number of data bits and number of stop bits to the existing i386 serial drivers.
2000-08-302000-08-26 Rosimildo da Silva <rdasilva@connecttel.com>Joel Sherrill1-81/+106
* Major rework of the "/dev/console" driver. * Added termios support for stdin ( keyboard ). * Added ioctls() to support modes similar to Linux( XLATE, RAW, MEDIUMRAW ). * Added Keyboard mapping and handling of the keyboard's leds. * Added Micro FrameBuffer driver ( "/dev/fb0" ) for bare VGA controller ( 16 colors ). * Added PS/2 and Serial mouse support for PC386 BSP. * console/defkeymap.c: New file. * console/fb_vga.c: New file. * console/fb_vga.h: New file. * console/i386kbd.h: New file. * console/kd.h: New file. * console/keyboard.c: New file. * console/keyboard.h: New file. * console/mouse_parser.c: New file. * console/mouse_parser.h: New file. * console/pc_keyb.c: New file. * console/ps2_drv.h: New file. * console/ps2_mouse.c: New file. * console/ps2_mouse.h: New file. * console/serial_mouse.c: New file. * console/serial_mouse.h: New file. * console/vgainit.c: New file. * console/vt.c: New file. * console/Makefile.am: Reflect new files. * console/console.c, console/inch.c, console/outch.c: Console functionality modifications. * startup/Makefile.am: Pick up tty_drv.c and gdb_glue.c
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill1-10/+0
1999-12-13Removed warnings.Joel Sherrill1-1/+2
1999-12-13Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.Joel Sherrill1-1/+1
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1999-10-27Patch from Aleksey (Quality Quorum <qqi@world.std.com>) toJoel Sherrill1-18/+28
increase ease of application configuration of the pc386 BSP. This patch allows switching the printk console to a serial port and overriding bsp_start by making it a weak alias.
1999-01-20Changed call to __rtems_close() to close().Joel Sherrill1-3/+3
1998-10-05Large patch from Erik Ivanenko <erik.ivanenko@utoronto.ca> whichJoel Sherrill1-40/+49
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.
1998-09-24Removed superfluous initialization of PC video.Joel Sherrill1-3/+4
1998-09-23Patch from Aleksey (Quality Quorum <qqi@world.std.com>):Joel Sherrill1-19/+34
1. Finally fixes raw interrupts for pc386 2. Makes some minor cleanup in console and startup 3. Makes rtems_termios_dequeue_characters() to return count of outstanding chars - it allows to simplify console isrs a little bit. 4. pc386 uart modified to be friendlier to termios parameter changes, to have minor performance improvement and to take advantage of of above termios modification.
1998-09-20Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-1/+1
Compiled and booted without problem. However console was set on COM2. At least for 4.0 it should be video :-)
1998-09-10Patch from Eric Valette <valette@crf.canon.fr>. Most of this was includedJoel Sherrill1-1/+8
in a previous patch. Comments from Eric: patch_com2 was before your own fixes of raw IDT vector management routine. It mainly use human readable constants for the serial line driver code + the patch you gave me for com2 write routine. I applied your patch for raw IDT mngt on top of that. Then made minor cleaning in patch_idt_mngt. I hope this helps.
1998-08-31Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-4/+23
Eric> NB : there is still a bug on PC386 serial line : exit does not Eric> flush the remaining output queue. As this is not a bug in the Eric> driver itself but somewhere in PC386 initialization/termios Eric> relationship it will be part of another patch. Eric> NB2 : As Emmanuel excerced the exception hanlder code, while Eric> porting the SMC driver to the new BSD stack, we found a bug Eric> in the exception handler : it shall not delete the current Eric> thread in case we are running at interrupt level. This will Eric> be part of another patch... So here is the patch. This patch fixes the two problems mentionned above + it use vpath mechanism intead of copying the irq related files in the right directory. This avoid to compile them each time and is more homogenous with other Makefiles.
1998-08-31Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-14/+16
Here is a brief description of the attached patch : 1) There was a bug in the code for the COM2 serial line driver. Aleksey gave me a fix that fixes the driver code itself. I would like to thank him again publicly, 2) I introduced constants in the serial driver code because I had a hard time reading the meanning of hexadecimal values in the NS data book :) 3)You can now mix printk and printf on serial line (tested on COM2). There is a #ifdef PRINTK_ON_SERIAL in console.c that enables to have printk on console while printf on serial line, 4) Removed call to displayCpuInfo because anyway if was at the wrong place for serial line console (too early). It can anyway be called at application level, 5) The original printk was unable to display negative integer values and was also recursive. It now works corectly, All the modifications have been tested here on the COM2 port from a PC running RTEMS to a PC running linux, NB : there is still a bug on PC386 serial line : exit does not flush the remaining output queue. As this is not a bug in the driver itself but somewhere in PC386 initialization/termios relationship it will be part of another patch. NB2 : As Emmanuel excerced the exception hanlder code, while porting the SMC driver to the new BSD stack, we found a bug in the exception handler : it shall not delete the current thread in case we are running at interrupt level. This will be part of another patch...
1998-08-24Patch from Eric Valette <valette@crf.canon.fr>:Joel Sherrill1-63/+16
Celso Labinaz <labinaz@tin.it> pointed to me thatthe console on serial line was not working. After spending quite a time to find the right cable and software, I confirm this. I'm going to debug this in the next days because I want to use the serial line for debugging. In the meantime, in order to be sure that this was a driver initialization/bug, I made printk work on the serial line in order to be sure the receiver part and configuration was OK. Here is the for printk on serial line. BTW, does anyone else use the serial line facilities for PC? printf seems to output nothing (hello.exe output everything that has a printk but application printf seems to be broken).
1998-08-19Patch from Aleksey <qqi@world.std.com>:Joel Sherrill1-6/+10
It fixes netboot build problem, KA9Q configuration for pc386, some compiler wardning, it also removed some stuff ifdef'ed with '#if 0'.
1998-08-05Patch from Eric Valette <valette@crf.canon.fr> which brings the i386ex BSPJoel Sherrill1-0/+12
inline with the new IRQ structure.
1998-08-05Automatic CPU type detection code from Eric Valette <valette@crf.canon.fr>.Joel Sherrill1-1/+5
Enabled on the pc386.
1998-07-23Patch from Eric VALETTE <valette@crf.canon.fr>:Joel Sherrill1-19/+27
Here is a enhanced version of my previous patch. This patch enables to potentially share the new interrupt management code for all Intel targets (pc386, go32 and force386) bsp. Note : this patch is complete only for pc386. It still needs to be completed for go32 and force386. I carrefully checked that anything needed is in for force386 (only some function name changes for IDT manipulation and GDT segment manipulation). But anyway I will not be able to test any of theses targets...
1998-07-10Patch from Quality Quorum <qqi@world.std.com>. Comments:Joel Sherrill1-6/+73
c/src/lib/libbsp/i386/pc386/console/console.c __assert() modified so it prints on selected console instead of PC console c/src/lib/libbsp/i386/pc386/console/inch.c inch_sleep() modified, so it does not depend upon tmacros.h c/src/lib/libbsp/i386/pc386/pc386dev/GDB.HOWTO description updated c/src/lib/libbsp/i386/pc386/startup/exit.c last output before call to exit() will be printed properly on serial console c/src/lib/libbsp/i386/pc386/startup/irq.c re-submitted bug fix for problem in irqs over 7.
1998-06-27PC386 BSP enhancements from Aleksey Romanov (Quality QuorumJoel Sherrill1-96/+250
<qqi@world.std.com>). Unfortunately after merging these, the pc386 will not boot using grub for for. It still does not work using netboot for me. Here is his summary of changes: rtems/c/src/lib/libbsp/i386/pc386/Makefile.in Added support for new sub-directory rtems/c/src/lib/libbsp/i386/pc386/bsp_specs Made possible to build COFF image rtems/c/src/lib/libbsp/i386/pc386/console/console.c Added support for serial consoles, selectable by patching binary image, added __assert(), use _IBMPC_inch_sleep() instaed of _IMBPC_inch() rtems/c/src/lib/libbsp/i386/pc386/console/inch.c Added _IMBPC_inch_sleep() rtems/c/src/lib/libbsp/i386/pc386/console/outch.c Oops - just formatting rtems/c/src/lib/libbsp/i386/pc386/include/Makefile.in Added support for new files rtems/c/src/lib/libbsp/i386/pc386/include/bsp.h Added support for new features rtems/c/src/lib/libbsp/i386/pc386/include/pc386uart.h New file: definitions for serial ports rtems/c/src/lib/libbsp/i386/pc386/include/pcibios.h New file: definitions for PCI BIOS rtems/c/src/lib/libbsp/i386/pc386/pc386dev/Makefile.in New file: makefile in new directory rtems/c/src/lib/libbsp/i386/pc386/pc386dev/i386-stub-glue.c New file: i386-stub interface rtems/c/src/lib/libbsp/i386/pc386/pc386dev/i386-stub.c New file: i386-stub itself rtems/c/src/lib/libbsp/i386/pc386/pc386dev/pc386uart.c New file: serial ports rtems/c/src/lib/libbsp/i386/pc386/pc386dev/pcibios.c New file: PCI BIOS support rtems/c/src/lib/libbsp/i386/pc386/start/start.s Commented out DEBUG_EARLY stuff, everything is working fine rtems/c/src/lib/libbsp/i386/pc386/start/start16.s Cleaned up rtems/c/src/lib/libbsp/i386/pc386/startup/bspstart.c Added call to console_resereve_resources rtems/c/src/lib/libbsp/i386/pc386/startup/exit.c Added support for serial console rtems/c/src/lib/libbsp/i386/pc386/startup/ldsegs.s Fixed typo in comments rtems/c/src/lib/libbsp/i386/pc386/tools/Makefile.in Changed to reflect cnages in code rtems/c/src/lib/libbsp/i386/pc386/tools/bin2boot.c Trivialized, problem - I do not know how to make patch remove obsolete files - there are a lot of them there rtems/c/src/lib/libbsp/i386/pc386/tools/binpatch.c New file: utility to do binary patches rtems/c/src/lib/libbsp/i386/pc386/wrapup/Makefile.in Added support for new directory rtems/make/custom/pc386.cfg Add COFF image building