1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * driver for the IPOCTAL boards
7 * Copyright (C) 2009-2012 CERN (www.cern.ch)
8 * Author: Nicolas Serafini, EIC2 SA
9 * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
16 #define IPOCTAL_MAX_BOARDS 16
17 #define MAX_DEVICES (NR_CHANNELS * IPOCTAL_MAX_BOARDS)
18 #define RELEVANT_IFLAG(iflag) ((iflag) & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
21 * struct ipoctal_stats -- Stats since last reset
23 * @tx: Number of transmitted bytes
24 * @rx: Number of received bytes
25 * @overrun: Number of overrun errors
26 * @parity_err: Number of parity errors
27 * @framing_err: Number of framing errors
28 * @rcv_break: Number of break received
30 struct ipoctal_stats {
33 unsigned long overrun_err;
34 unsigned long parity_err;
35 unsigned long framing_err;
36 unsigned long rcv_break;
39 #endif /* _IPOCTAL_H_ */