* Reading BIOS
@ 2004-11-25 8:34 Jagadeesh Bhaskar P
2004-11-25 10:52 ` Jan-Benedict Glaw
0 siblings, 1 reply; 4+ messages in thread
From: Jagadeesh Bhaskar P @ 2004-11-25 8:34 UTC (permalink / raw)
To: Linux C Programming
Hi,
Is it possible to probe for, say, ide controllers from the BIOS, CMOS
information with a C program? Is there any documentation available
regarding the same??
--
With regards,
Jagadeesh Bhaskar P
R&D Engineer
HCL Infosystems Ltd
Pondicherry
INDIA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reading BIOS
2004-11-25 8:34 Reading BIOS Jagadeesh Bhaskar P
@ 2004-11-25 10:52 ` Jan-Benedict Glaw
2004-11-27 9:43 ` K. Anantha Kiran
0 siblings, 1 reply; 4+ messages in thread
From: Jan-Benedict Glaw @ 2004-11-25 10:52 UTC (permalink / raw)
To: Linux C Programming
[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]
On Thu, 2004-11-25 14:04:32 +0530, Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
wrote in message <1101371672.3795.36.camel@myLinux>:
> Hi,
> Is it possible to probe for, say, ide controllers from the BIOS, CMOS
> information with a C program? Is there any documentation available
> regarding the same??
Well, you don't really want to fiddle with physical addresses from
within userspace programs while running a protected-mode operating
system:-)
If you only want to know the type of IDE controller, and if your
hardware wasn't build during stone age, it's probably as simple as
reading the IDE controller's PCI device IDs. There's a libpci available
for Linux which helps you doing this (because there are different access
methods for accessing the PCI busses).
'lspci' for example uses it, probably parsing lspci's output is just
enough for your job...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reading BIOS
2004-11-25 10:52 ` Jan-Benedict Glaw
@ 2004-11-27 9:43 ` K. Anantha Kiran
2004-11-27 9:56 ` Jan-Benedict Glaw
0 siblings, 1 reply; 4+ messages in thread
From: K. Anantha Kiran @ 2004-11-27 9:43 UTC (permalink / raw)
To: Jan-Benedict Glaw; +Cc: Linux C Programming
Can anybody give references to interpret the output of *lspci* command
Thanks In Advance
K.Ananth
Jan-Benedict Glaw wrote:
>On Thu, 2004-11-25 14:04:32 +0530, Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
>wrote in message <1101371672.3795.36.camel@myLinux>:
>
>
>>Hi,
>>Is it possible to probe for, say, ide controllers from the BIOS, CMOS
>>information with a C program? Is there any documentation available
>>regarding the same??
>>
>>
>
>Well, you don't really want to fiddle with physical addresses from
>within userspace programs while running a protected-mode operating
>system:-)
>
>If you only want to know the type of IDE controller, and if your
>hardware wasn't build during stone age, it's probably as simple as
>reading the IDE controller's PCI device IDs. There's a libpci available
>for Linux which helps you doing this (because there are different access
>methods for accessing the PCI busses).
>
>'lspci' for example uses it, probably parsing lspci's output is just
>enough for your job...
>
>MfG, JBG
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-27 9:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-25 8:34 Reading BIOS Jagadeesh Bhaskar P
2004-11-25 10:52 ` Jan-Benedict Glaw
2004-11-27 9:43 ` K. Anantha Kiran
2004-11-27 9:56 ` Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).