xref: /linux/drivers/ipack/devices/ipoctal.h (revision 95298d63c67673c654c08952672d016212b26054)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /**
3  * ipoctal.h
4  *
5  * driver for the IPOCTAL boards
6 
7  * Copyright (C) 2009-2012 CERN (www.cern.ch)
8  * Author: Nicolas Serafini, EIC2 SA
9  * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
10  */
11 
12 #ifndef _IPOCTAL_H_
13 #define _IPOCTAL_H_
14 
15 #define NR_CHANNELS		8
16 #define IPOCTAL_MAX_BOARDS	16
17 #define MAX_DEVICES		(NR_CHANNELS * IPOCTAL_MAX_BOARDS)
18 
19 /**
20  * struct ipoctal_stats -- Stats since last reset
21  *
22  * @tx: Number of transmitted bytes
23  * @rx: Number of received bytes
24  * @overrun: Number of overrun errors
25  * @parity_err: Number of parity errors
26  * @framing_err: Number of framing errors
27  * @rcv_break: Number of break received
28  */
29 struct ipoctal_stats {
30 	unsigned long tx;
31 	unsigned long rx;
32 	unsigned long overrun_err;
33 	unsigned long parity_err;
34 	unsigned long framing_err;
35 	unsigned long rcv_break;
36 };
37 
38 #endif /* _IPOCTAL_H_ */
39