1 /* $OpenBSD: igc_nvm.h,v 1.2 2024/06/09 05:18:12 jsg Exp $ */ 2 /*- 3 * Copyright 2021 Intel Corp 4 * Copyright 2021 Rubicon Communications, LLC (Netgate) 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * $FreeBSD$ 8 */ 9 10 #ifndef _IGC_NVM_H_ 11 #define _IGC_NVM_H_ 12 13 void igc_init_nvm_ops_generic(struct igc_hw *); 14 int igc_null_read_nvm(struct igc_hw *, uint16_t, uint16_t, uint16_t *); 15 void igc_null_nvm_generic(struct igc_hw *); 16 int igc_null_write_nvm(struct igc_hw *, uint16_t, uint16_t, uint16_t *); 17 int igc_poll_eerd_eewr_done(struct igc_hw *, int); 18 int igc_read_mac_addr_generic(struct igc_hw *); 19 int igc_read_nvm_eerd(struct igc_hw *, uint16_t, uint16_t, uint16_t *); 20 int igc_validate_nvm_checksum_generic(struct igc_hw *); 21 void igc_reload_nvm_generic(struct igc_hw *); 22 23 #endif /* _IGC_NVM_H_ */ 24