1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2019-2020 Xilinx, Inc.
4 * Copyright(c) 2018-2019 Solarflare Communications Inc.
6 * This software was jointly developed between OKTET Labs (under contract
7 * for Solarflare) and Solarflare Communications, Inc.
18 sfc_ef100_ev_present(const efx_qword_t *ev, bool phase_bit)
20 return !((ev->eq_u64[0] &
21 EFX_INPLACE_MASK64(0, 63, ESF_GZ_EV_EVQ_PHASE)) ^
22 ((uint64_t)phase_bit << ESF_GZ_EV_EVQ_PHASE_LBN));
26 sfc_ef100_ev_type_is(const efx_qword_t *ev, unsigned int type)
28 return (ev->eq_u64[0] & EFX_INPLACE_MASK64(0, 63, ESF_GZ_E_TYPE)) ==
29 EFX_INSERT_FIELD64(0, 63, ESF_GZ_E_TYPE, type);
35 #endif /* _SFC_EF100_H */