FreeBSD/sys/dev/vnic/thunder_bgx.c
/* Return number of BGX present in HW */
Return number of BGX present in HW
Return number of BGX present in HW
u_int
bgx_get_map(int node)
{
	int i;
	u_int map = 0;
	for (i = 0; i < MAX_BGX_PER_CN88XX; i++) {
		if (bgx_vnic[(node * MAX_BGX_PER_CN88XX) + i])
			map |= (1 << i);
	}
	return (map);
}
u_int bgx_get_map ( int node ) { int i ; u_int map = 0 ; for ( i = 0 ; i < MAX_BGX_PER_CN88XX ; i ++ ) { if ( bgx_vnic [ ( node * MAX_BGX_PER_CN88XX ) + i ] ) map |= ( 1 << i ) ; } return ( map ) ; }
Return number of BGX present in HW
Return number of BGX present in HW