/* return SUCCESS if we obtained the mailbox lock  */
static s32 igb_obtain_mbx_lock_pf(struct e1000_hw *hw, u16 vf_number)
/* return SUCCESS if we obtained the mailbox lock  */
static s32 igb_obtain_mbx_lock_pf(struct e1000_hw *hw, u16 vf_number)
{
	s32 ret_val = -E1000_ERR_MBX;
	u32 p2v_mailbox;
	wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_PFU);
	p2v_mailbox = rd32(E1000_P2VMAILBOX(vf_number));
	if (p2v_mailbox & E1000_P2VMAILBOX_PFU)
		ret_val = 0;
	return ret_val;
}