• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3  * All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  *
20  * File: int.h
21  *
22  * Purpose:
23  *
24  * Author: Jerry Chen
25  *
26  * Date: Apr. 2, 2004
27  *
28  */
29 
30 #ifndef __INT_H__
31 #define __INT_H__
32 
33 #include "device.h"
34 
35 struct vnt_interrupt_data {
36 	u8 tsr0;
37 	u8 pkt0;
38 	u16 time0;
39 	u8 tsr1;
40 	u8 pkt1;
41 	u16 time1;
42 	u8 tsr2;
43 	u8 pkt2;
44 	u16 time2;
45 	u8 tsr3;
46 	u8 pkt3;
47 	u16 time3;
48 	__le64 tsf;
49 	u8 isr0;
50 	u8 isr1;
51 	u8 rts_success;
52 	u8 rts_fail;
53 	u8 ack_fail;
54 	u8 fcs_err;
55 	u8 sw[2];
56 } __packed;
57 
58 void vnt_int_start_interrupt(struct vnt_private *);
59 void vnt_int_process_data(struct vnt_private *);
60 
61 #endif /* __INT_H__ */
62