Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
s32 | igb_acquire_nvm (struct e1000_hw *hw) |
void | igb_release_nvm (struct e1000_hw *hw) |
s32 | igb_read_nvm_spi (struct e1000_hw *hw, u16 offset, u16 words, u16 *data) |
s32 | igb_read_nvm_eerd (struct e1000_hw *hw, u16 offset, u16 words, u16 *data) |
s32 | igb_write_nvm_spi (struct e1000_hw *hw, u16 offset, u16 words, u16 *data) |
s32 | igb_read_part_string (struct e1000_hw *hw, u8 *part_num, u32 part_num_size) |
s32 | igb_read_mac_addr (struct e1000_hw *hw) |
s32 | igb_validate_nvm_checksum (struct e1000_hw *hw) |
s32 | igb_update_nvm_checksum (struct e1000_hw *hw) |
igb_acquire_nvm - Generic request for access to EEPROM : pointer to the HW structure
Set the EEPROM access request bit and wait for EEPROM access grant bit. Return successful if access grant bit set, else clear the request for EEPROM access and return -E1000_ERR_NVM (-1).
Definition at line 182 of file e1000_nvm.c.
igb_read_mac_addr - Read device MAC address : pointer to the HW structure
Reads the device MAC address from the EEPROM and stores the value. Since devices with two ports use the same EEPROM, we increment the last bit in the MAC address for the second port.
Definition at line 630 of file e1000_nvm.c.
igb_write_nvm_spi - Write to EEPROM using SPI : pointer to the HW structure : offset within the EEPROM to be written to : number of words to write : 16 bit word(s) to be written to the EEPROM
Writes data to EEPROM at offset using SPI interface.
If e1000_update_nvm_checksum is not called after this function , the EEPROM will most likley contain an invalid checksum.
Definition at line 438 of file e1000_nvm.c.