Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1754
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup ia32  
29
/** @addtogroup ia32   
30
 * @{
30
 * @{
31
 */
31
 */
-
 
32
/**
32
/** @file
33
 * @file
-
 
34
 * @brief   i8254 chip driver.
-
 
35
 *
-
 
36
 * Low level time functions.
33
 */
37
 */
34
 
38
 
35
#include <arch/types.h>
39
#include <arch/types.h>
36
#include <time/clock.h>
40
#include <time/clock.h>
37
#include <time/delay.h>
41
#include <time/delay.h>
Line 45... Line 49...
45
#include <arch/cpuid.h>
49
#include <arch/cpuid.h>
46
#include <arch.h>
50
#include <arch.h>
47
#include <time/delay.h>
51
#include <time/delay.h>
48
#include <interrupt.h>
52
#include <interrupt.h>
49
 
53
 
50
/*
-
 
51
 * i8254 chip driver.
-
 
52
 * Low level time functions.
-
 
53
 */
-
 
54
 
-
 
55
#define CLK_PORT1   0x40
54
#define CLK_PORT1   0x40
56
#define CLK_PORT4   0x43
55
#define CLK_PORT4   0x43
57
 
56
 
58
 
-
 
59
#define CLK_CONST   1193180
57
#define CLK_CONST   1193180
60
#define MAGIC_NUMBER    1194
58
#define MAGIC_NUMBER    1194
61
 
59
 
62
static void i8254_interrupt(int n, istate_t *istate);
60
static void i8254_interrupt(int n, istate_t *istate);
63
 
61
 
Line 135... Line 133...
135
{
133
{
136
    trap_virtual_eoi();
134
    trap_virtual_eoi();
137
    clock();
135
    clock();
138
}
136
}
139
 
137
 
140
 /** @}
138
/** @}
141
 */
139
 */
142
 
-