FreeBSD/sys/arm/ti/am335x/am335x_dmtpps.c
/*
 * Figure out which hardware timer number to use based on input pin
 * configuration.  This is done just once, the first time probe() runs.
 */
Figure out which hardware timer number to use based on input pin
configuration.  This is done just once, the first time probe() runs.
Figure out which hardware timer number to use based on input pin configuration . This is done just once the first time probe () runs .
static int
dmtpps_find_tmr_num()
{
	int tmr_num;
	if ((tmr_num = dmtpps_find_tmr_num_by_tunable()) == 0)
		tmr_num = dmtpps_find_tmr_num_by_padconf();
	if (tmr_num <= 0) {
		printf("am335x_dmtpps: PPS driver not enabled: unable to find "
		    "or configure a capture input pin\n");
		tmr_num = -1; 
	}
	return (tmr_num);
}
static int dmtpps_find_tmr_num ( ) { int tmr_num ; if ( ( tmr_num = dmtpps_find_tmr_num_by_tunable ( ) ) == 0 ) tmr_num = dmtpps_find_tmr_num_by_padconf ( ) ; if ( tmr_num <= 0 ) { printf ( " " " \n " ) ; tmr_num = -1 ; } return ( tmr_num ) ; }
Figure out which hardware timer number to use based on input pin
 configuration.
Figure out which hardware timer number to use based on input pin configuration .
/* Must return non-zero to prevent re-probing. */