atm_idt77105.h 955 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* atm_idt77105.h - Driver-specific declarations of the IDT77105 driver (for
  3. * use by driver-specific utilities) */
  4. /* Written 1999 by Greg Banks <gnb@linuxfan.com>. Copied from atm_suni.h. */
  5. #ifndef LINUX_ATM_IDT77105_H
  6. #define LINUX_ATM_IDT77105_H
  7. #include <linux/types.h>
  8. #include <linux/atmioc.h>
  9. #include <linux/atmdev.h>
  10. /*
  11. * Structure for IDT77105_GETSTAT and IDT77105_GETSTATZ ioctls.
  12. * Pointed to by `arg' in atmif_sioc.
  13. */
  14. struct idt77105_stats {
  15. __u32 symbol_errors; /* wire symbol errors */
  16. __u32 tx_cells; /* cells transmitted */
  17. __u32 rx_cells; /* cells received */
  18. __u32 rx_hec_errors; /* Header Error Check errors on receive */
  19. };
  20. #define IDT77105_GETSTAT _IOW('a',ATMIOC_PHYPRV+2,struct atmif_sioc) /* get stats */
  21. #define IDT77105_GETSTATZ _IOW('a',ATMIOC_PHYPRV+3,struct atmif_sioc) /* get stats and zero */
  22. #endif