From owner-cvs-src@FreeBSD.ORG Tue Nov 16 18:00:25 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA59B16A4CE for ; Tue, 16 Nov 2004 18:00:25 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3113243D2D for ; Tue, 16 Nov 2004 18:00:25 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so754051rnf for ; Tue, 16 Nov 2004 10:00:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=HgflX+UB975zfUaLUVPccpz/A1u2rwkUU9nGbTeqKjsO44FdOqtqdFiep7RSjRtgnsjaMeumMlxFdLo+w3vivfUQK0DMX7mmwJxBZtgd487Unyo2ZFcVN/A2HQ5T5qxMM3Y8lQMD33M+JyZiAVbz7m52L1etDUw/02EEnnEA1wo= Received: by 10.38.163.14 with SMTP id l14mr397892rne; Tue, 16 Nov 2004 10:00:24 -0800 (PST) Received: by 10.38.75.35 with HTTP; Tue, 16 Nov 2004 10:00:24 -0800 (PST) Message-ID: Date: Tue, 16 Nov 2004 10:00:24 -0800 From: Maksim Yevmenkin To: Poul-Henning Kamp In-Reply-To: <7302.1100627038@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <7302.1100627038@critter.freebsd.dk> cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/vkbd vkbd.c vkbd_var.h src/sys/modules/vkbd Makefile X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maksim Yevmenkin List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 18:00:26 -0000 On Tue, 16 Nov 2004 18:43:58 +0100, Poul-Henning Kamp wrote: > In message , Maksim Yevmenkin writes > : > > > >On Tue, 16 Nov 2004 18:04:56 +0100, Poul-Henning Kamp > > wrote: > >> In message <200411161659.iAGGxNiX087329@repoman.freebsd.org>, Maksim Yevmenkin > >> writes: > >> > >> > >> >emax 2004-11-16 16:59:23 UTC > >> > > >> > FreeBSD src repository > >> > > >> > Added files: > >> > sys/dev/vkbd vkbd.c vkbd_var.h > >> > sys/modules/vkbd Makefile > >> > Log: > >> > Add virtual AT keyboard driver vkbd(4). > >> > Not yet connected to the build. > >> > >> I thought we had one of those already ? > > > >when? where? did i miss it? > > sys/dev/kbd (and various MD stuff all over the place) ? perhaps i'm missing something here. the idea behind vkdb(4) is to create a keyboard without a keyboard. that is to create a keyboard that accepts scan codes from userspace and not from real hardware. that is what vkbd(4) does. it creates a new keyboard (just like ukbd(4) etc) and register it with kbd(4). basically what i want to do is to obtain scan codes from bluetooth keyboard and then feed them into the kernel. the idea is that bluetooth hid daemon looks for the bluetooth keyboard, connects to it, switches active keyboard to vkbd(4) , reads scan codes and feeds them into vkbd(4). when bluetooth keyboard is gone the bluetooth hid daemon switches back to wired keyboard. i do not think i can do it with kdb(4), can i? max