blob: 8aa9edd71c8d343d59d52101cf36c8816b6ae675 [file] [log] [blame]
wdenk7152b1d2003-09-05 23:19:14 +00001/******************************************************************************
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 *
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: skgehwt.h,v $
30 * Revision 1.5 1999/11/22 13:54:24 cgoos
31 * Changed license header to GPL.
wdenk42d1f032003-10-15 23:53:47 +000032 *
wdenk7152b1d2003-09-05 23:19:14 +000033 * Revision 1.4 1998/08/19 09:50:58 gklug
34 * fix: remove struct keyword from c-code (see CCC) add typedefs
wdenk42d1f032003-10-15 23:53:47 +000035 *
wdenk7152b1d2003-09-05 23:19:14 +000036 * Revision 1.3 1998/08/14 07:09:29 gklug
37 * fix: chg pAc -> pAC
wdenk42d1f032003-10-15 23:53:47 +000038 *
wdenk7152b1d2003-09-05 23:19:14 +000039 * Revision 1.2 1998/08/07 12:54:21 gklug
40 * fix: first compiled version
wdenk42d1f032003-10-15 23:53:47 +000041 *
wdenk7152b1d2003-09-05 23:19:14 +000042 * Revision 1.1 1998/08/07 09:32:58 gklug
43 * first version
wdenk42d1f032003-10-15 23:53:47 +000044 *
45 *
46 *
47 *
wdenk7152b1d2003-09-05 23:19:14 +000048 *
49 ******************************************************************************/
50
51/*
52 * SKGEHWT.H contains all defines and types for the timer functions
53 */
54
55#ifndef _SKGEHWT_H_
56#define _SKGEHWT_H_
57
58/*
59 * SK Hardware Timer
60 * - needed wherever the HWT module is used
61 * - use in Adapters context name pAC->Hwt
62 */
63typedef struct s_Hwt {
64 SK_U32 TStart ; /* HWT start */
65 SK_U32 TStop ; /* HWT stop */
66 int TActive ; /* HWT: flag : active/inactive */
67} SK_HWT;
68
69extern void SkHwtInit(SK_AC *pAC, SK_IOC Ioc);
70extern void SkHwtStart(SK_AC *pAC, SK_IOC Ioc, SK_U32 Time);
71extern void SkHwtStop(SK_AC *pAC, SK_IOC Ioc);
72extern SK_U32 SkHwtRead(SK_AC *pAC,SK_IOC Ioc);
73extern void SkHwtIsr(SK_AC *pAC, SK_IOC Ioc);
74#endif /* _SKGEHWT_H_ */