blob: 4a25cc1c521f72b0ce47a35d9de6c62e4557f7a9 (
plain)
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
|
#ifndef _PIT_H
#define _PIT_H
#include <sys/types.h>
#define HZ 100
/* This API (but not the code) is modelled after the Linux API */
struct timer_list {
struct timer_list *next;
unsigned long expires;
void (*function)(void *data);
void *data;
};
extern volatile unsigned long jiffies;
extern void timer_add(struct timer_list *timer);
extern int timer_del(struct timer_list *timer);
extern void pit_init(void);
extern void pit_mdelay(u_int32_t ms);
#endif
|