pintos/src/devices/timer.h File Reference

#include <round.h>
#include <stdint.h>

Go to the source code of this file.

Defines

#define TIMER_FREQ   100

Functions

void timer_init (void)
void timer_calibrate (void)
int64_t timer_ticks (void)
int64_t timer_elapsed (int64_t)
void timer_sleep (int64_t ticks)
void timer_msleep (int64_t milliseconds)
void timer_usleep (int64_t microseconds)
void timer_nsleep (int64_t nanoseconds)
void timer_mdelay (int64_t milliseconds)
void timer_udelay (int64_t microseconds)
void timer_ndelay (int64_t nanoseconds)
void timer_print_stats (void)


Define Documentation

#define TIMER_FREQ   100


Function Documentation

void timer_calibrate ( void   ) 

Definition at line 45 of file timer.c.

References ASSERT, intr_get_level(), INTR_ON, loops_per_tick, printf(), PRIu64, TIMER_FREQ, and too_many_loops().

Referenced by main().

int64_t timer_elapsed ( int64_t   ) 

void timer_init ( void   ) 

Definition at line 37 of file timer.c.

References intr_register_ext(), pit_configure_channel(), TIMER_FREQ, and timer_interrupt.

Referenced by main().

void timer_mdelay ( int64_t  milliseconds  ) 

Definition at line 133 of file timer.c.

References real_time_delay().

void timer_msleep ( int64_t  milliseconds  ) 

void timer_ndelay ( int64_t  nanoseconds  ) 

Definition at line 159 of file timer.c.

References real_time_delay().

void timer_nsleep ( int64_t  nanoseconds  ) 

Definition at line 120 of file timer.c.

References real_time_sleep().

Referenced by select_device().

void timer_print_stats ( void   ) 

Definition at line 166 of file timer.c.

References PRId64, printf(), and timer_ticks().

Referenced by print_stats().

void timer_sleep ( int64_t  ticks  ) 

int64_t timer_ticks ( void   ) 

void timer_udelay ( int64_t  microseconds  ) 

Definition at line 146 of file timer.c.

References real_time_delay().

Referenced by reboot().

void timer_usleep ( int64_t  microseconds  ) 

Definition at line 112 of file timer.c.

References real_time_sleep().

Referenced by reset_channel(), uhci_enable_port(), uhci_init(), and wait_until_idle().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6