skgehwt.h 1.6 KB

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