generic hotkey driver

Yu, Luming
2004-09-01T10:32:53Z

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.

Thanks,
Luming

-------------------------------------------------------
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.