/* Returns (Where's the #define!!!!): 0 - Login successfully 1 - Login failed 3 - Fatal error  */
int qla2x00_local_device_login(scsi_qla_host_t *vha, fc_port_t *fcport)
/* Returns (Where's the #define!!!!): 0 - Login successfully 1 - Login failed 3 - Fatal error  */
int qla2x00_local_device_login(scsi_qla_host_t *vha, fc_port_t *fcport)
{
	int		rval;
	uint16_t	mb[MAILBOX_REGISTER_COUNT];
	memset(mb, 0, sizeof(mb));
	rval = qla2x00_login_local_device(vha, fcport, mb, BIT_0);
	if (rval == QLA_SUCCESS) {
		if (mb[0] == MBS_COMMAND_ERROR)
			rval = 1;
		else if (mb[0] == MBS_COMMAND_PARAMETER_ERROR)
			rval = 3;
	}
	return (rval);
}