Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262838AbUACJHR (ORCPT ); Sat, 3 Jan 2004 04:07:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262960AbUACJEy (ORCPT ); Sat, 3 Jan 2004 04:04:54 -0500 Received: from smtp803.mail.sc5.yahoo.com ([66.163.168.182]:59246 "HELO smtp803.mail.sc5.yahoo.com") by vger.kernel.org with SMTP id S265932AbUACJEM (ORCPT ); Sat, 3 Jan 2004 04:04:12 -0500 From: Dmitry Torokhov To: Vojtech Pavlik Subject: Re: [PATCH 2/7] i8042 option parsing Date: Sat, 3 Jan 2004 03:57:43 -0500 User-Agent: KMail/1.5.4 Cc: Andrew Morton , linux-kernel@vger.kernel.org References: <200401030350.43437.dtor_core@ameritech.net> <200401030356.48071.dtor_core@ameritech.net> In-Reply-To: <200401030356.48071.dtor_core@ameritech.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401030357.44852.dtor_core@ameritech.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3580 Lines: 92 =================================================================== ChangeSet@1.1572, 2004-01-02 02:46:43-05:00, dtor_core@ameritech.net Input: With Vojtech's approval adjusted i8042 option names by dropping i8042_ prefix. If i8042 is compiled as a module new option names are: direct, dumbkbd, noaux, nomux, reset, unlock If i8042 is build in the kernel the prefix "i8042." is required in front of an option, like "i8042.reset" Documentation/kernel-parameters.txt | 16 +++++++++------- drivers/input/serio/i8042.c | 18 ++++++++++++------ 2 files changed, 21 insertions(+), 13 deletions(-) =================================================================== diff -Nru a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt --- a/Documentation/kernel-parameters.txt Sat Jan 3 03:08:12 2004 +++ b/Documentation/kernel-parameters.txt Sat Jan 3 03:08:12 2004 @@ -372,13 +372,15 @@ noirqbalance [IA-32,SMP,KNL] Disable kernel irq balancing - i8042_direct [HW] Keyboard has been put into non-translated mode - by BIOS - i8042_dumbkbd [HW] Don't attempt to blink the leds - i8042_noaux [HW] Don't check for auxiliary (== mouse) port - i8042_nomux - i8042_reset [HW] Reset the controller during init and cleanup - i8042_unlock [HW] Unlock (ignore) the keylock + i8042.direct [HW] Put keyboard port into non-translated mode + i8042.dumbkbd [HW] Pretend that controlled can only read data from + keyboard and can not control its state + (Don't attempt to blink the leds) + i8042.noaux [HW] Don't check for auxiliary (== mouse) port + i8042.nomux [HW] Don't check presence of an active multiplexing + controller + i8042.reset [HW] Reset the controller during init and cleanup + i8042.unlock [HW] Unlock (ignore) the keylock i810= [HW,DRM] diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c --- a/drivers/input/serio/i8042.c Sat Jan 3 03:08:12 2004 +++ b/drivers/input/serio/i8042.c Sat Jan 3 03:08:12 2004 @@ -29,22 +29,28 @@ MODULE_LICENSE("GPL"); static unsigned int i8042_noaux; -module_param(i8042_noaux, bool, 0); +module_param_named(noaux, i8042_noaux, bool, 0); +MODULE_PARM_DESC(noaux, "Do not probe or use AUX (mouse) port."); static unsigned int i8042_nomux; -module_param(i8042_nomux, bool, 0); +module_param_named(nomux, i8042_nomux, bool, 0); +MODULE_PARM_DESC(nomux, "Do not check whether an active multiplexing conrtoller is present."); static unsigned int i8042_unlock; -module_param(i8042_unlock, bool, 0); +module_param_named(unlock, i8042_unlock, bool, 0); +MODULE_PARM_DESC(unlock, "Ignore keyboard lock."); static unsigned int i8042_reset; -module_param(i8042_reset, bool, 0); +module_param_named(reset, i8042_reset, bool, 0); +MODULE_PARM_DESC(reset, "Reset controller during init and cleanup."); static unsigned int i8042_direct; -module_param(i8042_direct, bool, 0); +module_param_named(direct, i8042_direct, bool, 0); +MODULE_PARM_DESC(direct, "Put keyboard port into non-translated mode."); static unsigned int i8042_dumbkbd; -module_param(i8042_dumbkbd, bool, 0); +module_param_named(dumbkbd, i8042_dumbkbd, bool, 0); +MODULE_PARM_DESC(dumbkbd, "Pretend that controller can only read data from keyboard"); #undef DEBUG #include "i8042.h" - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/