Re: generic hotkey driver

Hiroshi Miura
2004-09-03T11:16:55Z

Hi,

I think hotkey drivers are so differ that it is enough to decide
event format. ie) 'ibm KEY 00001 00001' or 'hotkey/pcc HKEY 000003 000001'

Lcd brightness control is defined in ACPI spec apendix.
I'm starting implement that.

I want to make generic lcd driver that is configurable for each extra drivers.

Bluetooth, dock, and other device settings are not common.
So these may be implement in each extra drivers. eg) ibm_acpi.c has these functions.

At Wed, 1 Sep 2004 18:32:53 +0800,
Yu, Luming wrote:
>
> I'm thinking if we need a generic hotkey driver that is configurable
> to any specific machine.
> There already have two specific hotkey driver: asus_acpi.c and
> toshiba_acpi.c. And there
> are two upcoming driver : ibm_acpi.c and panasonic_acpi.c. I don't know
> how many
> hotkey driver will be invented in the future. But I know it will mess up
> the code structure.
> So, I'm considering a generic hotkey driver that will export
> configurable interface to
> accommodate the difference.
>
> a. Configure interface:
> 1. register mapping of event number to internal hotkey number.
> 2. register expected acpi_handle which is needed to install
> notify handler, which will generate event for acpid.
> 3. register the AML methods that should be executed , with
> respect to the hotkey get pressed.
> b. Expose interface:
> 1. Expose the event action interface through /proc/acpi/action,
> the interface will receive argument which
> will be passed into AML method, as well as AML method
> should be executed.
> c. Use interface:
> 1. When user space acpid get a event, it can call related AML
> methods related to this hotkey.

--
Hiroshi Miura --- http://www.da-cha.org/ --- miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org
NTTDATA Corp. OpenSource Software Center. --- miurahr-3MafRgGXt7BL9jVzuh4AOg@public.gmane.org
NTTDATA Intellilink Corp. OpenSource Engineering Dev. -- miurahr-w0OK63jvRlAuJ+9fw/WgBHgSJqDPrsil@public.gmane.org
Key fingerprint = 9117 9407 5684 FBF1 4063 15B4 401D D077 04AB 8617

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.