1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
6 #ifndef _NGBE_EEPROM_H_
7 #define _NGBE_EEPROM_H_
9 #define NGBE_EEPROM_VERSION_L 0x1D
10 #define NGBE_EEPROM_VERSION_H 0x1E
11 #define NGBE_CALSUM_CAP_STATUS 0x10224
12 #define NGBE_EEPROM_VERSION_STORE_REG 0x1022C
14 s32 ngbe_init_eeprom_params(struct ngbe_hw *hw);
15 s32 ngbe_validate_eeprom_checksum_em(struct ngbe_hw *hw, u16 *checksum_val);
16 s32 ngbe_get_eeprom_semaphore(struct ngbe_hw *hw);
17 void ngbe_release_eeprom_semaphore(struct ngbe_hw *hw);
18 s32 ngbe_save_eeprom_version(struct ngbe_hw *hw);
20 s32 ngbe_ee_readw_buffer(struct ngbe_hw *hw, u32 offset, u32 words,
22 s32 ngbe_ee_read32(struct ngbe_hw *hw, u32 addr, u32 *data);
24 s32 ngbe_ee_writew_buffer(struct ngbe_hw *hw, u32 offset, u32 words,
27 #endif /* _NGBE_EEPROM_H_ */