/* pm8001_chip_phy_ctl_req - support the local phy operation @pm8001_ha: our hba card information. @num: the inbound queue number @phy_id: the phy id which we wanted to operate @phy_op:  */
static int pm8001_chip_phy_ctl_req(struct pm8001_hba_info *pm8001_ha, u32 phyId, u32 phy_op)
/* pm8001_chip_phy_ctl_req - support the local phy operation @pm8001_ha: our hba card information. @num: the inbound queue number @phy_id: the phy id which we wanted to operate @phy_op:  */
static int pm8001_chip_phy_ctl_req(struct pm8001_hba_info *pm8001_ha, u32 phyId, u32 phy_op)
{
	struct local_phy_ctl_req payload;
	struct inbound_queue_table *circularQ;
	int ret;
	u32 opc = OPC_INB_LOCAL_PHY_CONTROL;
	memset(&payload, 0, sizeof(payload));
	circularQ = &pm8001_ha->inbnd_q_tbl[0];
	payload.tag = 1;
	payload.phyop_phyid =
		cpu_to_le32(((phy_op & 0xff) << 8) | (phyId & 0x0F));
	ret = mpi_build_cmd(pm8001_ha, circularQ, opc, &payload);
	return ret;
}