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