public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hiroshi Miura <miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
To: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Borislav Deianov
	<borislav-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	Hiroshi Miura <miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>,
	Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>,
	julien.lerouge-GANU6spQydw@public.gmane.org,
	John Belmonte <jvb-ZFKsivP1bGvOQU1ULcgDhA@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: hotkey/video framework [was: ibm-acpi-0.2]
Date: Wed, 18 Aug 2004 08:55:27 +0900	[thread overview]
Message-ID: <87acwt8gls.wl%miura@da-cha.org> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F840533AE98@pdsmsx403>

Hi,

At Tue, 17 Aug 2004 17:15:17 +0800,
Yu, Luming wrote:
> 
> >> 
> >> 'Fn key combination' is common on machines,
> >> so I think we need some abstraction layer or framework on acpi core.
> >
> >One possibility is to just agree on the proc file format and ACPI
> >events for the common features,

I think it's good start. 

> > then have each driver implement them
> >separately. This would probably be simpler than trying to come up with
> >some sort of a wrapper framework as the code involved is fairly simple
> >and there probably isn't much we can share. Then again, there might
> >be, I haven't looked.
> >
> 
> I think the proposaled framework/abstraction layer is NOT just for 
> code sharing. We need to dynamically load the proper hotkey/video driver

I have read three driver, asus, toshiba, and ibm.
These are differ each other.

asus:    notify key event by 'Notify(event num)'
toshiba: polling some device/method for get key event.
ibm:     notify key event by 'Notify(DEVICE_NOTIFY)' then get key by some method.
panasonic: same as ibm but device and method name is differ.

This means difficulties of sharing driver code. 

Dynamic loading is nice propose.
with this code, i can determine which is that machine.

	static struct acpi_table_header *dsdt_info;
        status = acpi_get_table(ACPI_TABLE_DSDT, 1, &dsdt);
        if (ACPI_FAILURE(status))
                /* error */

	dsdt_info = (struct acpi_table_header *) dsdt.pointer;
	chek_which_oem_and_invoke_proper_driver (dsdt->oem_id);

Wrapper driver only need to know oem_ids and driver name mapping.


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



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

  parent reply	other threads:[~2004-08-17 23:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17  9:15 hotkey/video framework [was: ibm-acpi-0.2] Yu, Luming
2004-08-17 21:55 ` Karol Kozimor
2004-08-17 23:55 ` Hiroshi Miura [this message]
     [not found]   ` <87acwt8gls.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-18  4:59     ` Len Brown
  -- strict thread matches above, loose matches on Subject: below --
2004-08-10  8:08 ibm-acpi-0.1 Borislav Deianov
2004-08-14 21:12 ` ibm-acpi-0.2 Borislav Deianov
     [not found]   ` <20040814211247.GS20883-AKoe11r2kkOzaBltdDZI6w@public.gmane.org>
2004-08-15 14:41     ` hotkey/video framework [was: ibm-acpi-0.2] Hiroshi Miura
     [not found]       ` <873c2obh0l.wl%miura-yiisDzvROlQdnm+yROfE0A@public.gmane.org>
2004-08-17  7:23         ` Borislav Deianov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87acwt8gls.wl%miura@da-cha.org \
    --to=miura-yiisdzvrolqdnm+yrofe0a@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=borislav-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=julien.lerouge-GANU6spQydw@public.gmane.org \
    --cc=jvb-ZFKsivP1bGvOQU1ULcgDhA@public.gmane.org \
    --cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox