/* Check the keyboard controller and emit ASCII characters for any keys that are pressed. */
static void check_for_keys(struct tegra_kbd_priv *priv)
/* Check the keyboard controller and emit ASCII characters for any keys that are pressed. */
static void check_for_keys(struct tegra_kbd_priv *priv)
{
	int fifo_cnt;
	if (!priv->first_scan &&
	    get_timer(priv->last_poll_ms) < KBC_REPEAT_RATE_MS)
		return;
	priv->last_poll_ms = get_timer(0);
	priv->first_scan = 0;
	fifo_cnt = (readl(&priv->kbc->interrupt) >> 4) & 0xf;
	process_fifo(priv, fifo_cnt);
}