wistron_btns: x86_64 support for key mappings?
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
Hi Carlos,
Quoted 9 lines · Carlos Corbacho
Would it be possible and acceptable to tweak the
wistron_btnsdriver to be at least partially useful tox86_64users?e.g. Strip out the BIOS calls on
x86_64and 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
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