FreeBSD/sys/boot/arm/at91/bootspi/loader_prompt.c
/*
 * .KB_C_FN_DEFINITION_START
 * void Bootloader(void *inputFunction)
 *  This global function is the entry point for the bootloader.  If the
 * inputFunction pointer is NULL, the loader input will be serviced from
 * the uart.  Otherwise, inputFunction is called to get characters which
 * the loader will parse.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
void Bootloader(void *inputFunction)
This global function is the entry point for the bootloader.  If the
inputFunction pointer is NULL, the loader input will be serviced from
the uart.  Otherwise, inputFunction is called to get characters which
the loader will parse.
. KB_C_FN_DEFINITION_START void Bootloader ( void * inputFunction ) This global function is the entry point for the bootloader . If the inputFunction pointer is NULL the loader input will be serviced from the uart . Otherwise inputFunction is called to get characters which the loader will parse .
void
Bootloader(int(*inputFunction)(int))
{
	int	ch = 0;
	p_memset((void*)inputBuffer, 0, sizeof(inputBuffer));
	buffCount = 0;
	printf("\n>");
	while (1)
		if ((ch = ((*inputFunction)(0))) > 0)
			ServicePrompt(ch);
}
void Bootloader ( int ( * inputFunction ) ( int ) ) { int ch = 0 ; p_memset ( ( void * ) inputBuffer , 0 , sizeof ( inputBuffer ) ) ; buffCount = 0 ; printf ( " \n " ) ; while ( 1 ) if ( ( ch = ( ( * inputFunction ) ( 0 ) ) ) > 0 ) ServicePrompt ( ch ) ; }
.KB_C_FN_DEFINITION_START
 void Bootloader(void *inputFunction)
  This global function is the entry point for the bootloader.
. KB_C_FN_DEFINITION_START void Bootloader ( void * inputFunction ) This global function is the entry point for the bootloader .