blob: c880a4e7e6a65cfd34c4f95d53e897fb72689a7d [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
6#include <common.h>
7
8enum mscc_regs_qs {
9 MSCC_QS_XTR_RD,
10 MSCC_QS_XTR_FLUSH,
11 MSCC_QS_XTR_DATA_PRESENT,
12 MSCC_QS_INJ_WR,
13 MSCC_QS_INJ_CTRL,
14};
15
16int mscc_send(void __iomem *regs, const unsigned long *mscc_qs_offset,
17 u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len);
18int mscc_recv(void __iomem *regs, const unsigned long *mscc_qs_offset,
19 u32 *rxbuf, size_t ifh_len, bool byte_swap);
20void mscc_flush(void __iomem *regs, const unsigned long *mscc_qs_offset);