* txgbe_read_v2p_mailbox - read v2p mailbox * @hw: pointer to the HW structure * * This function is used to read the v2p mailbox without losing the read to * clear status bits. **/
| 232 | * clear status bits. |
| 233 | **/ |
| 234 | STATIC u32 txgbe_read_v2p_mailbox(struct txgbe_hw *hw) |
| 235 | { |
| 236 | u32 v2p_mailbox = rd32(hw, TXGBE_VFMBCTL); |
| 237 | |
| 238 | v2p_mailbox |= hw->mbx.v2p_mailbox; |
| 239 | hw->mbx.v2p_mailbox |= v2p_mailbox & TXGBE_VFMBCTL_R2C_BITS; |
| 240 | |
| 241 | return v2p_mailbox; |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * txgbe_check_for_bit_vf - Determine if a status bit was set |
no test coverage detected