]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - drivers/net/sk98lin/h/skgehwt.h
Linux-2.6.12-rc2
[mirror_ubuntu-bionic-kernel.git] / drivers / net / sk98lin / h / skgehwt.h
1 /******************************************************************************
2 *
3 * Name: skhwt.h
4 * Project: Gigabit Ethernet Adapters, Event Scheduler Module
5 * Version: $Revision: 1.7 $
6 * Date: $Date: 2003/09/16 12:55:08 $
7 * Purpose: Defines for the hardware timer functions
8 *
9 ******************************************************************************/
10
11 /******************************************************************************
12 *
13 * (C)Copyright 1998-2002 SysKonnect GmbH.
14 * (C)Copyright 2002-2003 Marvell.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * The information in this file is provided "AS IS" without warranty.
22 *
23 ******************************************************************************/
24
25 /*
26 * SKGEHWT.H contains all defines and types for the timer functions
27 */
28
29 #ifndef _SKGEHWT_H_
30 #define _SKGEHWT_H_
31
32 /*
33 * SK Hardware Timer
34 * - needed wherever the HWT module is used
35 * - use in Adapters context name pAC->Hwt
36 */
37 typedef struct s_Hwt {
38 SK_U32 TStart; /* HWT start */
39 SK_U32 TStop; /* HWT stop */
40 int TActive; /* HWT: flag : active/inactive */
41 } SK_HWT;
42
43 extern void SkHwtInit(SK_AC *pAC, SK_IOC Ioc);
44 extern void SkHwtStart(SK_AC *pAC, SK_IOC Ioc, SK_U32 Time);
45 extern void SkHwtStop(SK_AC *pAC, SK_IOC Ioc);
46 extern SK_U32 SkHwtRead(SK_AC *pAC, SK_IOC Ioc);
47 extern void SkHwtIsr(SK_AC *pAC, SK_IOC Ioc);
48 #endif /* _SKGEHWT_H_ */