blob: 70f279401e19c0128e1c8186a436ee9d85d711f0 [file] [log] [blame]
Horatiu Vultur2bd4c9f2019-01-31 15:30:35 +01001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2018 Microsemi Corporation
4 */
5
Horatiu Vultur2bd4c9f2019-01-31 15:30:35 +01006enum mscc_regs_qs {
7 MSCC_QS_XTR_RD,
8 MSCC_QS_XTR_FLUSH,
9 MSCC_QS_XTR_DATA_PRESENT,
10 MSCC_QS_INJ_WR,
11 MSCC_QS_INJ_CTRL,
12};
13
14int mscc_send(void __iomem *regs, const unsigned long *mscc_qs_offset,
15 u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len);
16int mscc_recv(void __iomem *regs, const unsigned long *mscc_qs_offset,
17 u32 *rxbuf, size_t ifh_len, bool byte_swap);
18void mscc_flush(void __iomem *regs, const unsigned long *mscc_qs_offset);