* e1000_init_mac_params - Initialize MAC function pointers * @hw: pointer to the HW structure * * This function initializes the function pointers for the MAC * set of functions. Called by drivers or by e1000_setup_init_funcs. **/
| 12 | * set of functions. Called by drivers or by e1000_setup_init_funcs. |
| 13 | **/ |
| 14 | s32 e1000_init_mac_params(struct e1000_hw *hw) |
| 15 | { |
| 16 | s32 ret_val = E1000_SUCCESS; |
| 17 | |
| 18 | if (hw->mac.ops.init_params) { |
| 19 | ret_val = hw->mac.ops.init_params(hw); |
| 20 | if (ret_val) { |
| 21 | DEBUGOUT("MAC Initialization Error\n"); |
| 22 | goto out; |
| 23 | } |
| 24 | } else { |
| 25 | DEBUGOUT("mac.init_mac_params was NULL\n"); |
| 26 | ret_val = -E1000_ERR_CONFIG; |
| 27 | } |
| 28 | |
| 29 | out: |
| 30 | return ret_val; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * e1000_init_nvm_params - Initialize NVM function pointers |
no outgoing calls
no test coverage detected