summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/timer/timer.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-20bsps: Move benchmark timer to bspsSebastian Huber1-552/+0
This patch is a part of the BSP source reorganization. Update #3285.
2017-06-20bsps: Improve interrupt vector enable/disable APISebastian Huber1-6/+1
Change bsp_interrupt_vector_enable() and bsp_interrupt_vector_disable() to not return a status code. Add bsp_interrupt_assert() and use it to validate the vector number in the vector enable/disable implementations.
2016-10-17bsps/i386: replace global interrupt disable by SMP build supporting locking.Pavel Pisa1-6/+39
2016-05-11bsp/pc386: Use irq-generic.Chris Johns1-5/+5
2014-10-10i386/pc386: Eliminate multiple warningsJoel Sherrill1-18/+21
2014-09-16Use correct prototype of benchmark_timer_read()Joel Sherrill1-3/+3
This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
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.
2011-03-042011-03-04 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-8/+23
* timer/timer.c: Retry up to 5 times when the calibration loop fails.
2011-02-092011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* timer/timer.c: Include <rtems/btimer.h>. Fix benchmark_timer_read() definition.
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-07-212010-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
* timer/timer.c: Do not do the indirect call if NULL.
2010-05-102010-05-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-277/+219
* timer/timer.c: Now runs on 486 and below again. Reformatted.
2008-12-032008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-21/+6
Michael South <msouth@msouth.org> PR 1344/bsps * configure.ac, clock/ckinit.c, timer/timer.c: Add use of TSC for nanoseconds granularity. i8254 is very slow on some systems. TSC use is auto-detected by default.
2008-09-05Convert to "bool".Ralf Corsepius1-3/+3
2008-09-02Eliminate rtems_boolean.Ralf Corsepius1-1/+1
2008-09-02Eliminate rtems_boolean.Ralf Corsepius1-4/+4
2008-08-312008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-38/+26
* timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
2008-08-312008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-28/+28
* timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
2008-08-18Add missing prototypes.Ralf Corsepius1-5/+5
2005-11-06Remove C++-style comments.Ralf Corsepius1-2/+2
2005-08-312005-08-23 Karel Gardas <kgardas@objectsecurity.com>>Joel Sherrill1-13/+62
* timer/timer.c: Enhance to use either interupt-based timer functions on older CPUs or to use TSC-based timer functions on more recent (Pentium and above) CPUs. The decision is made in Timer_initialize function when it is called for the first time based on a result obtained from cpuid instruction during the BSP initialization phase. During the first call, there are also late bindings to the implementation functions initialized to appropriate values.
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-04-182005-04-18 Eric Valette <eric.valette@free.fr>Jennifer Averett1-1/+2
* 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-10/+0
2004-04-21Remove stray white spaces.Ralf Corsepius1-33/+33
2004-04-15Remove stray white spaces.Ralf Corsepius1-6/+0
2004-03-312004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-8/+8
* clock/ckinit.c, clock/rtc.c, console/inch.c, ide/ide.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
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.
2000-12-052000-12-05 Eric Valette <valette@crf.canon.fr>Joel Sherrill1-100/+198
* console/inch.c, console/keyboard.c, console/pc_keyb.c, console/vt.c, include/bsp.h: Correct incorrect interrupt level handling in new keyboard management code. Correct BSP_poll_char initialization routine. * start/start.S, startup/bspstart.c: Correct when the video is initialized. * timer/timer.c (Calibrate_1ms_loop): Address problem where this did not work correctly on all PC speeds. The new calibrate routine has been tested on Pentium 166, pentium II 200, pentium III 300 Mhz and does work as expected.
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1999-03-31Removed warnings.Joel Sherrill1-4/+1
1999-03-26Patch from Rosimildo DaSilva <rdasilva@connecttel.com> andJoel Sherrill1-45/+115
Emmanuel Raguet <raguet@crf.canon.fr> to eliminate a problem during the boot process on the pc386 BSP. On fast PC's the calibration routine would hand.
1998-10-05Large patch from Erik Ivanenko <erik.ivanenko@utoronto.ca> whichJoel Sherrill1-4/+4
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-10Patch from Emmanuel Raguet <raguet@crf.canon.fr>:Joel Sherrill1-0/+99
After some good comments from Eric Norum [thanks, Eric !], I have added some modifications to my previous driver patch : - wait for transmitter ready before sending a packet, - new delay management in case of ring-overwritting.
1998-08-19Patch from Aleksey <qqi@world.std.com>:Joel Sherrill1-5/+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-1/+1
inline with the new IRQ structure.
1998-07-23Patch from Eric VALETTE <valette@crf.canon.fr>:Joel Sherrill1-20/+52
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-02-17updated copyright to 1998Joel Sherrill1-1/+1
1998-01-16Ralf Corsepius reported a number of missing CVS Id's:Joel Sherrill1-7/+9
> RTEMS is under CVS control and has been since rtems 3.1.16 which was > around May 1995. So I just to add the $Id$. If you notice other files > with missing $Id$'s let me know. I try to keep w\up with it. Now that you have asked -- I'll attach a list of files lacking an RCS-Id to this mail. This list has been generated by a little sh-script I'll also enclose.
1997-12-01Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto RomanoJoel Sherrill1-0/+256
<pmcnr@camoes.rnl.ist.utl.pt> and Jose Rufino <ruf@asterix.ist.utl.pt> of NavIST (http://pandora.ist.utl.pt/).