Skip to contentSkip to conversation

wistron_btns: x86_64 support for key mappings?

DISCUSSION Carlos Corbacho 2 participants 3 messages May 22, 2007 HID

lore
Share & tools
lore
#0 lore raw

Would it be possible and acceptable to tweak the wistron_btns driver to be at least partially useful to x86_64 users?

e.g. Strip out the BIOS calls on x86_64 and just leave the key mappings (such as through ifdef's or whatever method is the best for this case).

(I would be happy to produce such a patch to do so, I just wanted some thoughts first).

-Carlos

#1 lore raw

Hi Carlos,

Quoted 9 lines · Carlos Corbacho

Would it be possible and acceptable to tweak the wistron_btns driver to be at least partially useful to x86_64 users?

e.g. Strip out the BIOS calls on x86_64 and just leave the key mappings (such as through ifdef's or whatever method is the best for this case).

(I would be happy to produce such a patch to do so, I just wanted some thoughts first).

Well, the main concern is how woudl you detect button presses without BIOS calls?

Signature · 1 line
Dmitry
#2 lore raw
Quoted 2 lines · Dmitry Torokhov

Well, the main concern is how woudl you detect button presses without BIOS calls?

I see what you mean now - I had been looking at some of the other BIOS calling functions in there at the top of the code which are not absolutely necessary; but I see now stripping out all the BIOS calls is unavoidable because of the polling required.

I suppose the only alternative then would probably be to port the code to x86_64 assembly at some distant point in the future.

Sorry about the noise.

-Carlos