source: cmedia/trunk/Sblive/timer.h@ 354

Last change on this file since 354 was 354, checked in by stevenhl, 17 years ago

Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.

File size: 1.8 KB
Line 
1/* $Id: timer.h,v 1.1 2000/04/23 14:55:46 ktk Exp $ */
2
3/*
4 **********************************************************************
5 * timer.h
6 * Copyright (C) 1999, 2000 Creative Labs, Inc.
7 *
8 **********************************************************************
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this program; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
23 * USA.
24 *
25 **********************************************************************
26 */
27
28
29#ifndef _TIMER_H
30#define _TIMER_H
31
32struct emu_timer
33{
34 struct list_head list;
35 struct tasklet_struct tasklet;
36 int active;
37 u32 count; /* current number of interrupts */
38 u32 count_max; /* number of interrupts needed to schedule the bh */
39 u32 delay; /* timer delay */
40};
41
42struct emu_timer *emu10k1_timer_install(struct emu10k1_card *, void (*)(unsigned long), unsigned long, u32);
43void emu10k1_timer_uninstall(struct emu10k1_card *, struct emu_timer *);
44void emu10k1_timer_enable(struct emu10k1_card *, struct emu_timer *);
45void emu10k1_timer_disable(struct emu10k1_card *, struct emu_timer *);
46
47#define TIMER_STOPPED 0xffffffff
48
49#endif /* _TIMER_H */
Note: See TracBrowser for help on using the repository browser.