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