FreeBSD/sys/dev/kbd/kbd.c
/*
 * Generic keyboard cdev driver functions
 * Keyboard subdrivers may call these functions to implement common
 * driver functions.
 */
Generic keyboard cdev driver functions
Keyboard subdrivers may call these functions to implement common
driver functions.
Generic keyboard cdev driver functions Keyboard subdrivers may call these functions to implement common driver functions .
static void
genkbd_putc(genkbd_softc_t *sc, char c)
{
	unsigned int p;
	if (sc->gkb_q_length == KB_QSIZE)
		return;
	p = (sc->gkb_q_start + sc->gkb_q_length) % KB_QSIZE;
	sc->gkb_q[p] = c;
	sc->gkb_q_length++;
}
static void genkbd_putc ( genkbd_softc_t * sc , char c ) { unsigned int p ; if ( sc -> gkb_q_length == KB_QSIZE ) return ; p = ( sc -> gkb_q_start + sc -> gkb_q_length ) % KB_QSIZE ; sc -> gkb_q [ p ] = c ; sc -> gkb_q_length ++ ; }
Generic keyboard cdev driver functions
 Keyboard subdrivers may call these functions to implement common
 driver functions.
Generic keyboard cdev driver functions Keyboard subdrivers may call these functions to implement common driver functions .