/* returns SUCCESS if it successfully copied message into the buffer  */
s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id)
/* returns SUCCESS if it successfully copied message into the buffer  */
s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id)
{
	struct e1000_mbx_info *mbx = &hw->mbx;
	s32 ret_val = 0;
	if (size > mbx->size)
		ret_val = -E1000_ERR_MBX;
	else if (mbx->ops.write)
		ret_val = mbx->ops.write(hw, msg, size, mbx_id);
	return ret_val;
}