blob: 08db868e1d07c6afcc326aac92d63275c2181b95 [file] [log] [blame]
Forest Bond92b96792009-06-13 07:38:31 -04001/*
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
Forest Bond92b96792009-06-13 07:38:31 -040030#ifndef __INT_H__
31#define __INT_H__
32
Forest Bond92b96792009-06-13 07:38:31 -040033#include "device.h"
Forest Bond92b96792009-06-13 07:38:31 -040034
Malcolm Priestley864ace82014-02-16 19:09:20 +000035struct 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;
Malcolm Priestleydbb18cb2014-02-16 19:08:21 +000048 __le64 tsf;
Malcolm Priestley864ace82014-02-16 19:09:20 +000049 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;
Forest Bond92b96792009-06-13 07:38:31 -040057
Malcolm Priestleyfe5d00e2012-12-10 22:14:36 +000058void INTvWorkItem(struct vnt_private *);
59void INTnsProcessData(struct vnt_private *);
Forest Bond92b96792009-06-13 07:38:31 -040060
Andres Moree7b07d12010-05-01 19:12:26 -030061#endif /* __INT_H__ */