From: mkrameshid <mkrameshid@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Calling PnP bios routines like get device node from x86_84 arch
Date: Tue, 11 Sep 2007 16:33:02 +0530 [thread overview]
Message-ID: <46E675E6.1040105@gmail.com> (raw)
In-Reply-To: <20070910173344.4bd2ae9e@the-village.bc.nu>
[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]
Hi Alan,
Thanks for your quick reply.
Actually I want to call the BIOS run time functions as per the
PNPBIOSSpecification-v1.0a (attached).
Specifically I want to call the function no 0x0 to 0x03. I have
Dual-Core AMD Opteron(tm) Processor 2216 and AMI BIOS with the pnp bios
support.
So I could call this functions using the default PnP driver which comes
along with the (API: call_pnp_bios()) i386 architecture. This driver is
only available for i386. But not for x86_64.
So I am trying to implement a driver similar to this for x86_64 arch.
But I couldn't .
Because there is need for get_cpu_gdt_table() which is not available in
x86_64.
And also some inline asm needs to be totally modify for x86_64. For this
How can I achive this ? Is there any other alternate idea there instead
of pnp driver?
Please help on this.
-mkr
Alan Cox wrote:
> On Mon, 10 Sep 2007 08:06:20 -0700 (PDT)
> PnP driver <mkrameshid@gmail.com> wrote:
>
>
>> Hi,
>> I am very new to linux kernel driver development. I need to develop a
>> driver for calling BIOS routines like get device node. I could call it
>> in i386 architecture using the PnP driver.
>>
>
> We use ACPI on AMD64 so you should be parsing the ACPI tables not trying
> to rely on legacy interfaces which if I rememeber the spec rightly aren't
> even guaranteed safe to call when ACPI is active.
>
> What are you actually trying to achieve.
>
>
>> But in x86_64 arch I couldn't see any support. Even I tried to
>> implement it similar to the i386. But there is no API get_cpu_gdt_table().
>> Is there any other way to get the cpu_gdt_table? or any other way to
>> call the BIOS routines.
>>
>
> Assuming you even have a BIOS - you may have EFI underlying or
> Linuxbios or be a virtual machine.
>
>
[-- Attachment #2: PNPBIOSSpecification-v1.0a.pdf --]
[-- Type: application/pdf, Size: 198965 bytes --]
next prev parent reply other threads:[~2007-09-11 5:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-10 15:06 Calling PnP bios routines like get device node from x86_84 arch PnP driver
2007-09-10 16:33 ` Alan Cox
2007-09-11 11:03 ` mkrameshid [this message]
2007-09-11 9:51 ` Alan Cox
2007-09-11 15:38 ` mkrameshid
2007-09-11 15:48 ` mkrameshid
2007-09-11 10:38 ` Alan Cox
2007-09-11 21:17 ` Calling PnP bios routines like get device node from x86_64 arch mkrameshid
2007-09-12 10:51 ` Calling PnP bios routines like get device node from x86_84 arch mkrameshid
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=46E675E6.1040105@gmail.com \
--to=mkrameshid@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.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