xref: /linux/include/uapi/linux/atm_idt77105.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells /* atm_idt77105.h - Driver-specific declarations of the IDT77105 driver (for
3607ca46eSDavid Howells  * use by driver-specific utilities) */
4607ca46eSDavid Howells 
5607ca46eSDavid Howells /* Written 1999 by Greg Banks <gnb@linuxfan.com>. Copied from atm_suni.h. */
6607ca46eSDavid Howells 
7607ca46eSDavid Howells 
8607ca46eSDavid Howells #ifndef LINUX_ATM_IDT77105_H
9607ca46eSDavid Howells #define LINUX_ATM_IDT77105_H
10607ca46eSDavid Howells 
11607ca46eSDavid Howells #include <linux/types.h>
12607ca46eSDavid Howells #include <linux/atmioc.h>
13607ca46eSDavid Howells #include <linux/atmdev.h>
14607ca46eSDavid Howells 
15607ca46eSDavid Howells /*
16607ca46eSDavid Howells  * Structure for IDT77105_GETSTAT and IDT77105_GETSTATZ ioctls.
17607ca46eSDavid Howells  * Pointed to by `arg' in atmif_sioc.
18607ca46eSDavid Howells  */
19607ca46eSDavid Howells struct idt77105_stats {
20607ca46eSDavid Howells         __u32 symbol_errors;  /* wire symbol errors */
21607ca46eSDavid Howells         __u32 tx_cells;       /* cells transmitted */
22607ca46eSDavid Howells         __u32 rx_cells;       /* cells received */
23607ca46eSDavid Howells         __u32 rx_hec_errors;  /* Header Error Check errors on receive */
24607ca46eSDavid Howells };
25607ca46eSDavid Howells 
26607ca46eSDavid Howells #define IDT77105_GETSTAT	_IOW('a',ATMIOC_PHYPRV+2,struct atmif_sioc)	/* get stats */
27607ca46eSDavid Howells #define IDT77105_GETSTATZ	_IOW('a',ATMIOC_PHYPRV+3,struct atmif_sioc)	/* get stats and zero */
28607ca46eSDavid Howells 
29607ca46eSDavid Howells #endif
30