1 /******************************************************************************
4 * Project: GEnesis, PCI Gigabit Ethernet Adapter
7 * Purpose: Defines for the timer functions
9 ******************************************************************************/
11 /******************************************************************************
13 * (C)Copyright 1998,1999 SysKonnect,
14 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
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.
21 * The information in this file is provided "AS IS" without warranty.
23 ******************************************************************************/
25 /******************************************************************************
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
33 * Revision 1.9 1999/11/22 14:00:29 cgoos
34 * Changed license header to GPL.
36 * Revision 1.8 1998/09/08 08:48:02 gklug
37 * add: init level handling
39 * Revision 1.7 1998/08/20 12:31:29 gklug
40 * fix: SK_TIMCTRL needs to be defined
42 * Revision 1.6 1998/08/19 09:51:00 gklug
43 * fix: remove struct keyword from c-code (see CCC) add typedefs
45 * Revision 1.5 1998/08/17 13:43:21 gklug
46 * chg: Parameter will be union of 64bit para, 2 times SK_U32 or SK_PTR
48 * Revision 1.4 1998/08/14 07:09:31 gklug
51 * Revision 1.3 1998/08/07 12:54:24 gklug
52 * fix: first compiled version
54 * Revision 1.2 1998/08/07 09:35:29 gklug
55 * add: Timer control struct for Adapters context
56 * add: function prototypes
58 * Revision 1.1 1998/08/05 11:27:01 gklug
59 * First version: adapted from SMT
62 ******************************************************************************/
65 * SKTIMER.H contains all defines and types for the timer functions
71 #include "h/skqueue.h"
75 * - needed wherever a timer is used. Put this in your data structure
78 typedef struct s_Timer SK_TIMER;
81 SK_TIMER *TmNext ; /* linked list */
82 SK_U32 TmClass ; /* Timer Event class */
83 SK_U32 TmEvent ; /* Timer Event value */
84 SK_EVPARA TmPara ; /* Timer Event parameter */
85 SK_U32 TmDelta ; /* delta time */
86 int TmActive ; /* flag : active/inactive */
90 * Timer control struct.
91 * - use in Adapters context name pAC->Tim
93 typedef struct s_TimCtrl {
94 SK_TIMER *StQueue ; /* Head of Timer queue */
97 extern void SkTimerInit(SK_AC *pAC,SK_IOC Ioc, int Level);
98 extern void SkTimerStop(SK_AC *pAC,SK_IOC Ioc,SK_TIMER *pTimer);
99 extern void SkTimerStart(SK_AC *pAC,SK_IOC Ioc,SK_TIMER *pTimer,
100 SK_U32 Time,SK_U32 Class,SK_U32 Event,SK_EVPARA Para);
101 extern void SkTimerDone(SK_AC *pAC,SK_IOC Ioc);
102 #endif /* _SKTIMER_H_ */