162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * driver for the IPOCTAL boards
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2009-2012 CERN (www.cern.ch)
662306a36Sopenharmony_ci * Author: Nicolas Serafini, EIC2 SA
762306a36Sopenharmony_ci * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#ifndef _IPOCTAL_H_
1162306a36Sopenharmony_ci#define _IPOCTAL_H_
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define NR_CHANNELS		8
1462306a36Sopenharmony_ci#define IPOCTAL_MAX_BOARDS	16
1562306a36Sopenharmony_ci#define MAX_DEVICES		(NR_CHANNELS * IPOCTAL_MAX_BOARDS)
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/**
1862306a36Sopenharmony_ci * struct ipoctal_stats -- Stats since last reset
1962306a36Sopenharmony_ci *
2062306a36Sopenharmony_ci * @tx: Number of transmitted bytes
2162306a36Sopenharmony_ci * @rx: Number of received bytes
2262306a36Sopenharmony_ci * @overrun: Number of overrun errors
2362306a36Sopenharmony_ci * @parity_err: Number of parity errors
2462306a36Sopenharmony_ci * @framing_err: Number of framing errors
2562306a36Sopenharmony_ci * @rcv_break: Number of break received
2662306a36Sopenharmony_ci */
2762306a36Sopenharmony_cistruct ipoctal_stats {
2862306a36Sopenharmony_ci	unsigned long tx;
2962306a36Sopenharmony_ci	unsigned long rx;
3062306a36Sopenharmony_ci	unsigned long overrun_err;
3162306a36Sopenharmony_ci	unsigned long parity_err;
3262306a36Sopenharmony_ci	unsigned long framing_err;
3362306a36Sopenharmony_ci	unsigned long rcv_break;
3462306a36Sopenharmony_ci};
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci#endif /* _IPOCTAL_H_ */
37