public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Calling PnP bios routines like get device node from x86_84 arch
@ 2007-09-10 15:06 PnP driver
  2007-09-10 16:33 ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: PnP driver @ 2007-09-10 15:06 UTC (permalink / raw)
  To: linux-kernel


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

    Please help me on this.

-mkr



-- 
View this message in context: http://www.nabble.com/Calling-PnP-bios-routines-like-get-device-node-from-x86_84-arch-tf4415380.html#a12594726
Sent from the linux-kernel mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  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
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Cox @ 2007-09-10 16:33 UTC (permalink / raw)
  To: PnP driver; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  2007-09-11 11:03   ` mkrameshid
@ 2007-09-11  9:51     ` Alan Cox
  2007-09-11 15:38       ` mkrameshid
                         ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Alan Cox @ 2007-09-11  9:51 UTC (permalink / raw)
  To: mkrameshid; +Cc: linux-kernel

> Actually I want to call the BIOS run time functions as per the 
> PNPBIOSSpecification-v1.0a (attached).

We use ACPI for x86_64, which means you need to use the ACPI methods not
the PnPBIOS ones. PnPBIOS isn't valid when ACPI is in use.

Alan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  2007-09-11 15:48       ` mkrameshid
@ 2007-09-11 10:38         ` Alan Cox
  0 siblings, 0 replies; 9+ messages in thread
From: Alan Cox @ 2007-09-11 10:38 UTC (permalink / raw)
  To: mkrameshid; +Cc: linux-kernel

On Tue, 11 Sep 2007 21:18:53 +0530
mkrameshid <mkrameshid@gmail.com> wrote:

> Can I call the BIOS function using ACPI . I didn't work on it.
> If I asked a silly question please for give me. I am very new to this.

ACPI replaces the BIOS functions you are trying to use. You *can't* use
those BIOS functions. Not only is there no code for it but it isn't valid
to do so if the operating system is using ACPI.

Instead ACPI provides all the needed device enumerations by its own
method.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  2007-09-10 16:33 ` Alan Cox
@ 2007-09-11 11:03   ` mkrameshid
  2007-09-11  9:51     ` Alan Cox
  0 siblings, 1 reply; 9+ messages in thread
From: mkrameshid @ 2007-09-11 11:03 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  2007-09-11  9:51     ` Alan Cox
@ 2007-09-11 15:38       ` mkrameshid
  2007-09-11 15:48       ` mkrameshid
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: mkrameshid @ 2007-09-11 15:38 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Thanks for the reply. I will try ACPI and let you know the result.

-mkr
Alan Cox wrote:
>> Actually I want to call the BIOS run time functions as per the 
>> PNPBIOSSpecification-v1.0a (attached).
>>     
>
> We use ACPI for x86_64, which means you need to use the ACPI methods not
> the PnPBIOS ones. PnPBIOS isn't valid when ACPI is in use.
>
> Alan
>
>   


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  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
  3 siblings, 1 reply; 9+ messages in thread
From: mkrameshid @ 2007-09-11 15:48 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Can I call the BIOS function using ACPI . I didn't work on it.
If I asked a silly question please for give me. I am very new to this.

-MKR
Alan Cox wrote:
>> Actually I want to call the BIOS run time functions as per the 
>> PNPBIOSSpecification-v1.0a (attached).
>>     
>
> We use ACPI for x86_64, which means you need to use the ACPI methods not
> the PnPBIOS ones. PnPBIOS isn't valid when ACPI is in use.
>
> Alan
>
>   


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_64 arch
  2007-09-11  9:51     ` Alan Cox
  2007-09-11 15:38       ` mkrameshid
  2007-09-11 15:48       ` mkrameshid
@ 2007-09-11 21:17       ` mkrameshid
  2007-09-12 10:51       ` Calling PnP bios routines like get device node from x86_84 arch mkrameshid
  3 siblings, 0 replies; 9+ messages in thread
From: mkrameshid @ 2007-09-11 21:17 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

Hi Alan,

To be specific I want to call the function 0x60 ,0x61 and few more 
specified in the BBS specification (attached). These functions or alive 
in 16 bit mode (0xf000 segment)
We can call this functions in i386 using the pnpbios driver 
(bioscalls.c). I must call this functions to change the boot order and 
reboot from linux x86_64 using my driver.
I have seen in some forum that we can off the ACPI during the linux boot.

Can you help on this?

-mkr
Alan Cox wrote:
>> Actually I want to call the BIOS run time functions as per the 
>> PNPBIOSSpecification-v1.0a (attached).
>>     
>
> We use ACPI for x86_64, which means you need to use the ACPI methods not
> the PnPBIOS ones. PnPBIOS isn't valid when ACPI is in use.
>
> Alan
>
>   


[-- Attachment #2: specsbbs101.pdf --]
[-- Type: application/pdf, Size: 183180 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Calling PnP bios routines like get device node from x86_84 arch
  2007-09-11  9:51     ` Alan Cox
                         ` (2 preceding siblings ...)
  2007-09-11 21:17       ` Calling PnP bios routines like get device node from x86_64 arch mkrameshid
@ 2007-09-12 10:51       ` mkrameshid
  3 siblings, 0 replies; 9+ messages in thread
From: mkrameshid @ 2007-09-12 10:51 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Hi Alan,

To be specific I want to call the function 0x60 ,0x61 and few more 
specified in the BBS specification (attached). These functions or alive 
in 16 bit mode (0xf000 segment)
We can call this functions in i386 using the pnpbios driver 
(bioscalls.c). I must call this functions to change the boot order and 
reboot from linux x86_64 using my driver.
I have seen in some forum that we can off the ACPI during the linux boot.

Can you help on this?

-mkr
Alan Cox wrote:
>> Actually I want to call the BIOS run time functions as per the 
>> PNPBIOSSpecification-v1.0a (attached).
>>     
>
> We use ACPI for x86_64, which means you need to use the ACPI methods not
> the PnPBIOS ones. PnPBIOS isn't valid when ACPI is in use.
>
> Alan
>
>   


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-09-12  5:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox