Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Guinan Sun
June 22, 2020, 6:45 a.m. UTC
Add the info structure which will contain structure pointers for MAC, PHY and NVM structures for i225 devices. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Guinan Sun <guinanx.sun@intel.com> --- drivers/net/e1000/base/e1000_hw.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/drivers/net/e1000/base/e1000_hw.h b/drivers/net/e1000/base/e1000_hw.h index 848d21645..5042740f4 100644 --- a/drivers/net/e1000/base/e1000_hw.h +++ b/drivers/net/e1000/base/e1000_hw.h @@ -770,6 +770,15 @@ struct e1000_nvm_operations { s32 (*write)(struct e1000_hw *, u16, u16, u16 *); }; +struct e1000_info { + s32 (*get_invariants)(struct e1000_hw *hw); + struct e1000_mac_operations *mac_ops; + const struct e1000_phy_operations *phy_ops; + struct e1000_nvm_operations *nvm_ops; +}; + +extern const struct e1000_info e1000_i225_info; + struct e1000_mac_info { struct e1000_mac_operations ops; u8 addr[ETH_ADDR_LEN];