summaryrefslogtreecommitdiff
path: root/firmware/src/os/pit.h
blob: e941aeb6a9613f126a2223786b8d49c71141f9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _PIT_H
#define _PIT_H

#include <sys/types.h>

/* 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 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
personal git repositories of Harald Welte. Your mileage may vary