pintos/src/devices/speaker.c File Reference

#include "devices/speaker.h"
#include "devices/pit.h"
#include "threads/io.h"
#include "threads/interrupt.h"
#include "devices/timer.h"

Go to the source code of this file.

Defines

#define SPEAKER_PORT_GATE   0x61
#define SPEAKER_GATE_ENABLE   0x03

Functions

void speaker_on (int frequency)
void speaker_off (void)
void speaker_beep (void)


Define Documentation

#define SPEAKER_GATE_ENABLE   0x03

Definition at line 12 of file speaker.c.

Referenced by speaker_off(), and speaker_on().

#define SPEAKER_PORT_GATE   0x61

Definition at line 9 of file speaker.c.

Referenced by speaker_off(), and speaker_on().


Function Documentation

void speaker_beep ( void   ) 

Definition at line 49 of file speaker.c.

References intr_get_level(), INTR_ON, speaker_off(), speaker_on(), and timer_msleep().

Referenced by vga_putc().

void speaker_off ( void   ) 

Definition at line 40 of file speaker.c.

References inb(), intr_disable(), intr_set_level(), outb(), SPEAKER_GATE_ENABLE, and SPEAKER_PORT_GATE.

Referenced by speaker_beep(), and speaker_on().

void speaker_on ( int  frequency  ) 


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