]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/sk98lin/h/skgehwt.h
* Patches by Xianghua Xiao, 15 Oct 2003:
[karo-tx-uboot.git] / drivers / sk98lin / h / skgehwt.h
1 /******************************************************************************
2  *
3  * Name:        skhwt.h
4  * Project:     GEnesis, PCI Gigabit Ethernet Adapter
5  * Version:     $Revision: 1.5 $
6  * Date:        $Date: 1999/11/22 13:54:24 $
7  * Purpose:     Defines for the hardware timer functions
8  *
9  ******************************************************************************/
10
11 /******************************************************************************
12  *
13  *      (C)Copyright 1998,1999 SysKonnect,
14  *      a business unit of Schneider & Koch & Co. Datensysteme GmbH.
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  *
27  * History:
28  *
29  *      $Log: skgehwt.h,v $
30  *      Revision 1.5  1999/11/22 13:54:24  cgoos
31  *      Changed license header to GPL.
32  *
33  *      Revision 1.4  1998/08/19 09:50:58  gklug
34  *      fix: remove struct keyword from c-code (see CCC) add typedefs
35  *
36  *      Revision 1.3  1998/08/14 07:09:29  gklug
37  *      fix: chg pAc -> pAC
38  *
39  *      Revision 1.2  1998/08/07 12:54:21  gklug
40  *      fix: first compiled version
41  *
42  *      Revision 1.1  1998/08/07 09:32:58  gklug
43  *      first version
44  *
45  *
46  *
47  *
48  *
49  ******************************************************************************/
50
51 /*
52  * SKGEHWT.H    contains all defines and types for the timer functions
53  */
54
55 #ifndef _SKGEHWT_H_
56 #define _SKGEHWT_H_
57
58 /*
59  * SK Hardware Timer
60  * - needed wherever the HWT module is used
61  * - use in Adapters context name pAC->Hwt
62  */
63 typedef struct s_Hwt {
64         SK_U32          TStart ;        /* HWT start */
65         SK_U32          TStop ;         /* HWT stop */
66         int             TActive ;       /* HWT: flag : active/inactive */
67 } SK_HWT;
68
69 extern void SkHwtInit(SK_AC *pAC, SK_IOC Ioc);
70 extern void SkHwtStart(SK_AC *pAC, SK_IOC Ioc, SK_U32 Time);
71 extern void SkHwtStop(SK_AC *pAC, SK_IOC Ioc);
72 extern SK_U32 SkHwtRead(SK_AC *pAC,SK_IOC Ioc);
73 extern void SkHwtIsr(SK_AC *pAC, SK_IOC Ioc);
74 #endif  /* _SKGEHWT_H_ */