skgehwt.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. * (C)Copyright 1998,1999 SysKonnect,
  13. * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
  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. *
  25. * History:
  26. *
  27. * $Log: skgehwt.h,v $
  28. * Revision 1.5 1999/11/22 13:54:24 cgoos
  29. * Changed license header to GPL.
  30. *
  31. * Revision 1.4 1998/08/19 09:50:58 gklug
  32. * fix: remove struct keyword from c-code (see CCC) add typedefs
  33. *
  34. * Revision 1.3 1998/08/14 07:09:29 gklug
  35. * fix: chg pAc -> pAC
  36. *
  37. * Revision 1.2 1998/08/07 12:54:21 gklug
  38. * fix: first compiled version
  39. *
  40. * Revision 1.1 1998/08/07 09:32:58 gklug
  41. * first version
  42. *
  43. *
  44. *
  45. *
  46. *
  47. ******************************************************************************/
  48. /*
  49. * SKGEHWT.H contains all defines and types for the timer functions
  50. */
  51. #ifndef _SKGEHWT_H_
  52. #define _SKGEHWT_H_
  53. /*
  54. * SK Hardware Timer
  55. * - needed wherever the HWT module is used
  56. * - use in Adapters context name pAC->Hwt
  57. */
  58. typedef struct s_Hwt {
  59. SK_U32 TStart ; /* HWT start */
  60. SK_U32 TStop ; /* HWT stop */
  61. int TActive ; /* HWT: flag : active/inactive */
  62. } SK_HWT;
  63. extern void SkHwtInit(SK_AC *pAC, SK_IOC Ioc);
  64. extern void SkHwtStart(SK_AC *pAC, SK_IOC Ioc, SK_U32 Time);
  65. extern void SkHwtStop(SK_AC *pAC, SK_IOC Ioc);
  66. extern SK_U32 SkHwtRead(SK_AC *pAC,SK_IOC Ioc);
  67. extern void SkHwtIsr(SK_AC *pAC, SK_IOC Ioc);
  68. #endif /* _SKGEHWT_H_ */