Reading BIOS
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??
Signature · 7 lines
With regards, Jagadeesh Bhaskar P R&D Engineer HCL Infosystems Ltd Pondicherry INDIA
On Thu, 2004-11-25 14:04:32 +0530, Jagadeesh Bhaskar P <[email protected]> wrote in message <1101371672.3795.36.camel@myLinux>:
Quoted 4 lines
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
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +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));
Can anybody give references to interpret the output of *lspci* command
Thanks In Advance
K.Ananth
Quoted 28 lines · Jan-Benedict Glaw
On Thu, 2004-11-25 14:04:32 +0530, Jagadeesh Bhaskar P <[email protected]> wrote in message <1101371672.3795.36.camel@myLinux>:
Quoted 6 lines
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
On Sat, 2004-11-27 15:13:01 +0530, K. Anantha Kiran <[email protected]> wrote in message <[email protected]>:
Quoted 1 line
Can anybody give references to interpret the output of *lspci* command
Well, you'd just look at lspci's sources to see what it outputs. Please don't try to push simple research work to others... Also, this requires some knowledge of what PCI actually is and how it works.
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +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));