Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 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 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 30 | #ifndef __INT_H__ |
| 31 | #define __INT_H__ |
| 32 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 33 | #include "device.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 34 | |
Malcolm Priestley | 864ace8 | 2014-02-16 19:09:20 +0000 | [diff] [blame] | 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; |
Malcolm Priestley | dbb18cb | 2014-02-16 19:08:21 +0000 | [diff] [blame] | 48 | __le64 tsf; |
Malcolm Priestley | 864ace8 | 2014-02-16 19:09:20 +0000 | [diff] [blame] | 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; |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 57 | |
Malcolm Priestley | 6200193 | 2014-07-15 19:54:35 +0100 | [diff] [blame] | 58 | void vnt_int_start_interrupt(struct vnt_private *); |
Malcolm Priestley | e360d2b | 2014-07-15 19:54:34 +0100 | [diff] [blame] | 59 | void vnt_int_process_data(struct vnt_private *); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 60 | |
Andres More | e7b07d1 | 2010-05-01 19:12:26 -0300 | [diff] [blame] | 61 | #endif /* __INT_H__ */ |