From owner-cvs-src@FreeBSD.ORG Tue Jan 27 07:41:00 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 18DCA16A4CF; Tue, 27 Jan 2004 07:41:00 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9808D43D77; Tue, 27 Jan 2004 07:40:38 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0RFeU0B017997; Tue, 27 Jan 2004 07:40:30 -0800 (PST) (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0RFeUfB017996; Tue, 27 Jan 2004 07:40:30 -0800 (PST) (envelope-from des) Message-Id: <200401271540.i0RFeUfB017996@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Tue, 27 Jan 2004 07:40:30 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/kbd kbd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:41:00 -0000 des 2004/01/27 07:40:30 PST FreeBSD src repository Modified files: sys/dev/kbd kbd.c Log: While USB keyboards attach as ukbd[0-9]+, the device node created by kbd_attach() is called kbd[0-9]+, with a different unit number. This makes it impossible to write a devd rule which will automatically switch to a USB keyboard when one is attached, because there is no way to guess the correct device node to pass to kbdcontrol. Therefore, change kbd_attach() to create a device node using the keyboard device's real name (atkbd0, ukbd0...), and create the kbd[0-9]+ node as an alias for backward compatibility. Revision Changes Path 1.37 +2 -1 src/sys/dev/kbd/kbd.c