atm_idt77105.h 892 B

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