Horatiu Vultur | 2bd4c9f | 2019-01-31 15:30:35 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| 2 | /* |
| 3 | * Copyright (c) 2018 Microsemi Corporation |
| 4 | */ |
| 5 | |
Horatiu Vultur | 2bd4c9f | 2019-01-31 15:30:35 +0100 | [diff] [blame] | 6 | enum 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 | |
| 14 | int mscc_send(void __iomem *regs, const unsigned long *mscc_qs_offset, |
| 15 | u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len); |
| 16 | int mscc_recv(void __iomem *regs, const unsigned long *mscc_qs_offset, |
| 17 | u32 *rxbuf, size_t ifh_len, bool byte_swap); |
| 18 | void mscc_flush(void __iomem *regs, const unsigned long *mscc_qs_offset); |