1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ 2 /* 3 * Copyright (c) 2018 Microsemi Corporation 4 */ 5 6 #include <common.h> 7 8 enum 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 16 int mscc_send(void __iomem *regs, const unsigned long *mscc_qs_offset, 17 u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len); 18 int mscc_recv(void __iomem *regs, const unsigned long *mscc_qs_offset, 19 u32 *rxbuf, size_t ifh_len, bool byte_swap); 20 void mscc_flush(void __iomem *regs, const unsigned long *mscc_qs_offset); 21