summaryrefslogtreecommitdiffstats
path: root/private/inc/sys/snet/timer.h
blob: f8868d1d10e3c452d3e169d8611529a2492204fb (plain) (blame)
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
38
39
40
41


/********************************************************/
/*							*/
/*	 /redknee10/projects/spare/PBRAIN/SCCS/pbrainG/dev/src/include/sys/snet/0/s.timer.h						*/
/*	@(#)timer.h	1.2						*/
/*							*/
/*	Copyright (c) 1991 Spider Systems Limited	*/
/*							*/
/*	TIMER.H -   Multiple timer module heade		*/
/*							*/
/*	Last delta created	12:22:12 3/12/91			*/
/*	This file extracted	09:26:06 3/18/92			*/
/*							*/
/*	Modifications:					*/
/*							*/
/*							*/
/********************************************************/


/* Lock out clock ISR */
#define splclock()   splhi()

/* Timers header, used to process expiries */
typedef struct thead
{
    void         (*th_expfunc)();
    void *        th_exparg;
    struct timer  *th_expired;
} thead_t;

/* Individual timer */
typedef struct timer
{
    unsigned char  tm_id;
    unsigned char  tm_offset;
    unsigned short tm_left;
    struct timer  *tm_next;
    struct timer **tm_back;
} timer_t;