diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_mbx.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_mbx.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/drivers/net/ixgbe/ixgbe_mbx.c b/drivers/net/ixgbe/ixgbe_mbx.c index d75f9148eb1f..435e0281e1f8 100644 --- a/drivers/net/ixgbe/ixgbe_mbx.c +++ b/drivers/net/ixgbe/ixgbe_mbx.c | |||
@@ -200,7 +200,8 @@ out: | |||
200 | * returns SUCCESS if it successfully received a message notification and | 200 | * returns SUCCESS if it successfully received a message notification and |
201 | * copied it into the receive buffer. | 201 | * copied it into the receive buffer. |
202 | **/ | 202 | **/ |
203 | s32 ixgbe_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) | 203 | static s32 ixgbe_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, |
204 | u16 mbx_id) | ||
204 | { | 205 | { |
205 | struct ixgbe_mbx_info *mbx = &hw->mbx; | 206 | struct ixgbe_mbx_info *mbx = &hw->mbx; |
206 | s32 ret_val = IXGBE_ERR_MBX; | 207 | s32 ret_val = IXGBE_ERR_MBX; |
@@ -227,7 +228,7 @@ out: | |||
227 | * returns SUCCESS if it successfully copied message into the buffer and | 228 | * returns SUCCESS if it successfully copied message into the buffer and |
228 | * received an ack to that message within delay * timeout period | 229 | * received an ack to that message within delay * timeout period |
229 | **/ | 230 | **/ |
230 | s32 ixgbe_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, | 231 | static s32 ixgbe_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, |
231 | u16 mbx_id) | 232 | u16 mbx_id) |
232 | { | 233 | { |
233 | struct ixgbe_mbx_info *mbx = &hw->mbx; | 234 | struct ixgbe_mbx_info *mbx = &hw->mbx; |
@@ -247,20 +248,6 @@ out: | |||
247 | return ret_val; | 248 | return ret_val; |
248 | } | 249 | } |
249 | 250 | ||
250 | /** | ||
251 | * ixgbe_init_mbx_ops_generic - Initialize MB function pointers | ||
252 | * @hw: pointer to the HW structure | ||
253 | * | ||
254 | * Setup the mailbox read and write message function pointers | ||
255 | **/ | ||
256 | void ixgbe_init_mbx_ops_generic(struct ixgbe_hw *hw) | ||
257 | { | ||
258 | struct ixgbe_mbx_info *mbx = &hw->mbx; | ||
259 | |||
260 | mbx->ops.read_posted = ixgbe_read_posted_mbx; | ||
261 | mbx->ops.write_posted = ixgbe_write_posted_mbx; | ||
262 | } | ||
263 | |||
264 | static s32 ixgbe_check_for_bit_pf(struct ixgbe_hw *hw, u32 mask, s32 index) | 251 | static s32 ixgbe_check_for_bit_pf(struct ixgbe_hw *hw, u32 mask, s32 index) |
265 | { | 252 | { |
266 | u32 mbvficr = IXGBE_READ_REG(hw, IXGBE_MBVFICR(index)); | 253 | u32 mbvficr = IXGBE_READ_REG(hw, IXGBE_MBVFICR(index)); |