From owner-freebsd-hackers@FreeBSD.ORG Sun May 11 22:34:04 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 3A0BADDA for ; Sun, 11 May 2014 22:34:04 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE5BB2C21 for ; Sun, 11 May 2014 22:34:03 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id hi2so4691332wib.4 for ; Sun, 11 May 2014 15:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=VzIGs17WpSYt41B77GMDKlK22vEPOccxYqD/mMBz+Jg=; b=XJxYjG5CSlmaArzJmbRBTj3x799wxZG1gA8fl5Frz5Dvlf3woQQnhPeuTEM/kWgBKu YUXoNLaiv84V4tK0wDKTfYR8s5rrEeZspsD0qoVsOnxEhtTEXGcNk/Xxrm12jQy0pG4n zMoI8AUKbX04MihTrfTWD7AWCbkcHHjkOhMKxvtHCorNOnUOxaWB8/SOtv311WDysOF1 2D/FtoLoeOesCkM8gST+b/IA1n86uuR89V29JnHtxtW7/sraawX9uStK1qq2/QSKTJtu ZGYUnga+DymhpAdL8M5X5yIN/hRvDk2WcmAnVakmvUlOc222j6N5uahT5twESNi6uqhk TrDQ== X-Received: by 10.180.104.197 with SMTP id gg5mr12633757wib.2.1399847642109; Sun, 11 May 2014 15:34:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.163.231 with HTTP; Sun, 11 May 2014 15:33:42 -0700 (PDT) From: Maxim Ignatenko Date: Sun, 11 May 2014 23:33:42 +0100 Message-ID: Subject: Keyboard drivers, polling vs. non-polling mode To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Sun, 11 May 2014 22:34:04 -0000 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. -- Best regards, Max