XM_GP_PORT
xm_write32(hw, port, XM_GP_PORT, XM_GP_RES_STAT);
if (xm_read16(hw, port, XM_GP_PORT) & XM_GP_INP_ASS)