WIP FPC-III support
[linux/fpc-iii.git] / drivers / ipack / devices / ipoctal.h
blob75f83ba774a4f6224997868dc6ce9b3266ac2a24
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /**
3 * ipoctal.h
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>
12 #ifndef _IPOCTAL_H_
13 #define _IPOCTAL_H_
15 #define NR_CHANNELS 8
16 #define IPOCTAL_MAX_BOARDS 16
17 #define MAX_DEVICES (NR_CHANNELS * IPOCTAL_MAX_BOARDS)
19 /**
20 * struct ipoctal_stats -- Stats since last reset
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
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;
38 #endif /* _IPOCTAL_H_ */