1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
5 #ifndef _NGBE_TYPE_DUMMY_H_
6 #define _NGBE_TYPE_DUMMY_H_
9 #elif defined(__GNUC__)
10 #define TUP(x) x##_unused ngbe_unused
11 #elif defined(__LCLINT__)
12 #define TUP(x) x /*@unused@*/
27 /* struct ngbe_bus_operations */
28 static inline void ngbe_bus_set_lan_id_dummy(struct ngbe_hw *TUP0)
31 /* struct ngbe_rom_operations */
32 static inline s32 ngbe_rom_init_params_dummy(struct ngbe_hw *TUP0)
34 return NGBE_ERR_OPS_DUMMY;
36 static inline s32 ngbe_rom_validate_checksum_dummy(struct ngbe_hw *TUP0,
39 return NGBE_ERR_OPS_DUMMY;
41 static inline s32 ngbe_mac_acquire_swfw_sync_dummy(struct ngbe_hw *TUP0,
44 return NGBE_ERR_OPS_DUMMY;
46 static inline void ngbe_mac_release_swfw_sync_dummy(struct ngbe_hw *TUP0,
50 static inline void ngbe_init_ops_dummy(struct ngbe_hw *hw)
52 hw->bus.set_lan_id = ngbe_bus_set_lan_id_dummy;
53 hw->rom.init_params = ngbe_rom_init_params_dummy;
54 hw->rom.validate_checksum = ngbe_rom_validate_checksum_dummy;
55 hw->mac.acquire_swfw_sync = ngbe_mac_acquire_swfw_sync_dummy;
56 hw->mac.release_swfw_sync = ngbe_mac_release_swfw_sync_dummy;
59 #endif /* _NGBE_TYPE_DUMMY_H_ */