| 
    CS318 - Pintos
    
   Pintos source browser for JHU CS318 course 
   | 
 
 
 
 
Go to the documentation of this file.
   11 #define PIT_PORT_CONTROL          0x43                 
   12 #define PIT_PORT_COUNTER(CHANNEL) (0x40 + (CHANNEL))   
   15 #define PIT_HZ 1193180 
   65   else if (frequency > 
PIT_HZ)
 
   75     count = (
PIT_HZ + frequency / 2) / frequency;
 
  
static enum @0 mode
Transmission mode.
 
intr_level
Interrupts on or off?
 
enum intr_level intr_set_level(enum intr_level level)
Enables or disables interrupts as specified by LEVEL and returns the previous interrupt status.
 
unsigned short int uint16_t
 
void pit_configure_channel(int channel, int mode, int frequency)
Configure the given CHANNEL in the PIT.
 
#define PIT_HZ
PIT cycles per second.
 
enum intr_level intr_disable(void)
Disables interrupts and returns the previous interrupt status.
 
#define ASSERT(CONDITION)
This is outside the header guard so that debug.h may be included multiple times with different settin...
 
static void outb(uint16_t port, uint8_t data)
Writes byte DATA to PORT.
 
#define PIT_PORT_CONTROL
Interface to 8254 Programmable Interrupt Timer (PIT).
 
#define PIT_PORT_COUNTER(CHANNEL)
Counter port.
 
An ATA channel (aka controller).