From owner-freebsd-hackers@FreeBSD.ORG Mon May 12 05:40:31 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8EDB0A77 for ; Mon, 12 May 2014 05:40:31 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 530C02A6F for ; Mon, 12 May 2014 05:40:31 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id B3D121FE029; Mon, 12 May 2014 07:40:29 +0200 (CEST) Message-ID: <53705F02.4040507@selasky.org> Date: Mon, 12 May 2014 07:41:22 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Maxim Ignatenko , freebsd-hackers@freebsd.org Subject: Re: Keyboard drivers, polling vs. non-polling mode References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 05:40:31 -0000 On 05/12/14 00:33, Maxim Ignatenko wrote: > Hello, > > I'm trying trying to get keyboard working in DDB on HP Chromebook 11 (ARM). > br@ said that it doesn't work there because polling mode is not implemented yet. > Where can I read about the difference between polling and non-polling > modes (and about keyboard drivers in general)? > sys/dev/kbd/kbdreg.h describes some structures and method signatures, > but I have no clue what is the expected behaviour of those methods. > > My current guess is that in polling mode keyboard driver just queues > up all the input coming from keyboard and then gives it to consumer > upon request, while in non-polling mode it invokes some callback > instead of queueing. But I cannot find any documentation to confirm or > disprove that. > Hi, Maybe you get some clues from looking at /sys/dev/usb/input/ukbd.c regarding polling mode. --HPS