summaryrefslogtreecommitdiff
path: root/sys/dev/pci/igc_nvm.h
blob: cc1ec3d8ec6d5f2cc58ff05499405c67de63dbe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*	$OpenBSD: igc_nvm.h,v 1.2 2024/06/09 05:18:12 jsg Exp $	*/
/*-
 * Copyright 2021 Intel Corp
 * Copyright 2021 Rubicon Communications, LLC (Netgate)
 * SPDX-License-Identifier: BSD-3-Clause
 *
 * $FreeBSD$
 */

#ifndef _IGC_NVM_H_
#define _IGC_NVM_H_

void	igc_init_nvm_ops_generic(struct igc_hw *);
int	igc_null_read_nvm(struct igc_hw *, uint16_t, uint16_t, uint16_t *);
void	igc_null_nvm_generic(struct igc_hw *);
int	igc_null_write_nvm(struct igc_hw *, uint16_t, uint16_t, uint16_t *);
int	igc_poll_eerd_eewr_done(struct igc_hw *, int);
int	igc_read_mac_addr_generic(struct igc_hw *);
int	igc_read_nvm_eerd(struct igc_hw *, uint16_t, uint16_t, uint16_t *);
int	igc_validate_nvm_checksum_generic(struct igc_hw *);
void	igc_reload_nvm_generic(struct igc_hw *);

#endif	/* _IGC_NVM_H_ */