Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /* atm_idt77105.h - Driver-specific declarations of the IDT77105 driver (for
0003  * use by driver-specific utilities) */
0004 
0005 /* Written 1999 by Greg Banks <gnb@linuxfan.com>. Copied from atm_suni.h. */
0006 
0007 
0008 #ifndef LINUX_ATM_IDT77105_H
0009 #define LINUX_ATM_IDT77105_H
0010 
0011 #include <linux/types.h>
0012 #include <linux/atmioc.h>
0013 #include <linux/atmdev.h>
0014 
0015 /*
0016  * Structure for IDT77105_GETSTAT and IDT77105_GETSTATZ ioctls.
0017  * Pointed to by `arg' in atmif_sioc.
0018  */
0019 struct idt77105_stats {
0020         __u32 symbol_errors;  /* wire symbol errors */
0021         __u32 tx_cells;       /* cells transmitted */
0022         __u32 rx_cells;       /* cells received */
0023         __u32 rx_hec_errors;  /* Header Error Check errors on receive */
0024 };
0025 
0026 #define IDT77105_GETSTAT    _IOW('a',ATMIOC_PHYPRV+2,struct atmif_sioc) /* get stats */
0027 #define IDT77105_GETSTATZ   _IOW('a',ATMIOC_PHYPRV+3,struct atmif_sioc) /* get stats and zero */
0028 
0029 #endif