int.h 679 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
  4. * All rights reserved.
  5. *
  6. * File: int.h
  7. *
  8. * Purpose:
  9. *
  10. * Author: Jerry Chen
  11. *
  12. * Date: Apr. 2, 2004
  13. *
  14. */
  15. #ifndef __INT_H__
  16. #define __INT_H__
  17. #include "device.h"
  18. struct vnt_interrupt_data {
  19. u8 tsr0;
  20. u8 pkt0;
  21. u16 time0;
  22. u8 tsr1;
  23. u8 pkt1;
  24. u16 time1;
  25. u8 tsr2;
  26. u8 pkt2;
  27. u16 time2;
  28. u8 tsr3;
  29. u8 pkt3;
  30. u16 time3;
  31. __le64 tsf;
  32. u8 isr0;
  33. u8 isr1;
  34. u8 rts_success;
  35. u8 rts_fail;
  36. u8 ack_fail;
  37. u8 fcs_err;
  38. u8 sw[2];
  39. } __packed;
  40. void vnt_int_start_interrupt(struct vnt_private *priv);
  41. void vnt_int_process_data(struct vnt_private *priv);
  42. #endif /* __INT_H__ */