FreeBSD/sys/dev/isp/isp.c
/*
 * Pre-24XX fabric port logout
 *
 * Note that portid is not used
 */
Pre-24XX fabric port logout
Note that portid is not used
Pre - 24XX fabric port logout Note that portid is not used
static int
isp_port_logout(ispsoftc_t *isp, uint16_t handle, uint32_t portid)
{
	mbreg_t mbs;
	MBSINIT(&mbs, MBOX_FABRIC_LOGOUT, MBLOGNONE, 500000);
	if (ISP_CAP_2KLOGIN(isp)) {
		mbs.param[1] = handle;
		mbs.ibits = (1 << 10);
	} else {
		mbs.param[1] = handle << 8;
	}
	isp_mboxcmd(isp, &mbs);
	return (mbs.param[0] == MBOX_COMMAND_COMPLETE? 0 : mbs.param[0]);
}
static int isp_port_logout ( ispsoftc_t * isp , uint16_t handle , uint32_t portid ) { mbreg_t mbs ; MBSINIT ( & mbs , MBOX_FABRIC_LOGOUT , MBLOGNONE , 500000 ) ; if ( ISP_CAP_2KLOGIN ( isp ) ) { mbs . param [ 1 ] = handle ; mbs . ibits = ( 1 << 10 ) ; } else { mbs . param [ 1 ] = handle << 8 ; } isp_mboxcmd ( isp , & mbs ) ; return ( mbs . param [ 0 ] == MBOX_COMMAND_COMPLETE ? 0 : mbs . param [ 0 ] ) ; }
Pre-24XX fabric port logout
 Note that portid is not used
Pre - 24XX fabric port logout Note that portid is not used