diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-10-31 14:52:58 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-10-31 14:52:58 +0000 |
commit | 988d3dd74581ae00d8550effe8c6b1a8a0b62673 (patch) | |
tree | 27441cf620b8cd2b85384933dd4315f65da41aff /sys/dev/pci/igc_nvm.h | |
parent | 5b4c4b53809471fce76b1ea4639a2828da20f5e2 (diff) |
Add igc(4), a driver for the Intel 2.5Gb Ethernet controllers.
Ported by kevlo@
ok jmatthew@
Diffstat (limited to 'sys/dev/pci/igc_nvm.h')
-rw-r--r-- | sys/dev/pci/igc_nvm.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/pci/igc_nvm.h b/sys/dev/pci/igc_nvm.h new file mode 100644 index 00000000000..39404cee085 --- /dev/null +++ b/sys/dev/pci/igc_nvm.h @@ -0,0 +1,29 @@ +/* $OpenBSD: igc_nvm.h,v 1.1 2021/10/31 14:52:57 patrick 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_led_default(struct igc_hw *, uint16_t *); +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_pba_string_generic(struct igc_hw *, uint8_t *, uint32_t); +int igc_read_nvm_eerd(struct igc_hw *, uint16_t, uint16_t, uint16_t *); +int igc_valid_led_default_generic(struct igc_hw *, uint16_t *); +int igc_validate_nvm_checksum_generic(struct igc_hw *); +int igc_write_nvm_spi(struct igc_hw *, uint16_t, uint16_t, uint16_t *); +int igc_update_nvm_checksum_generic(struct igc_hw *); +void igc_release_nvm_generic(struct igc_hw *); +void igc_reload_nvm_generic(struct igc_hw *); + +#endif /* _IGC_NVM_H_ */ |