clock.h
991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright (C) 1996-1998 by the Board of Trustees
* of Leland Stanford Junior University.
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
#ifndef CLOCK_H
#define CLOCK_H
#include "simmisc.h"
void Embra_Clock_Init(int cpuNum);
extern void EmbraClosePeriodicCallbacks(void);
void EmIntrBitsChanged(int cpuNum);
int Update_And_Check_Interrupts( int cpuNum, VA targetPC );
extern void (*EmEventPoll)(void);
void EmbraMakeProcExit( int cpuNum);
SimTime EmbraReadTime( void );
SimTime EmbraCpuCycleCount( int cpuNum);
C_LINK void Embra_Send_Interrupt( int cpuNum, IEC, SimTime delay );
C_LINK void Embra_Deliver_SIPS( int cpuNum, int chan, SimTime delay );
/* Make the .cycleCount field the actual current time. Yes this is a */
/* wierd call */
void EmbraFixCycleCounts(void );
/* This checks for interrupts and increments a time count */
C_LINK void Periodic_Callout( int cpuNum );
void EmbraClockInit(void);
#endif