int.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. #ifndef __INT_H__
  30. #define __INT_H__
  31. #include "device.h"
  32. struct vnt_interrupt_data {
  33. u8 tsr0;
  34. u8 pkt0;
  35. u16 time0;
  36. u8 tsr1;
  37. u8 pkt1;
  38. u16 time1;
  39. u8 tsr2;
  40. u8 pkt2;
  41. u16 time2;
  42. u8 tsr3;
  43. u8 pkt3;
  44. u16 time3;
  45. __le64 tsf;
  46. u8 isr0;
  47. u8 isr1;
  48. u8 rts_success;
  49. u8 rts_fail;
  50. u8 ack_fail;
  51. u8 fcs_err;
  52. u8 sw[2];
  53. } __packed;
  54. void vnt_int_start_interrupt(struct vnt_private *);
  55. void vnt_int_process_data(struct vnt_private *);
  56. #endif /* __INT_H__ */