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