Jump to content
  • Advertisement
Sign in to follow this  
Pinczakko

How to read RAM size

This topic is 4927 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've known how to read RAM size in windows by using GlobalMemoryStatusEx function and by using sysinfo function in Linux. But this is not what I intend to do, I want to read the capacity directly from the RAM SPD EEPROM chip. Anyone knows ho to read the contents of SDRAM Serial-Presence-Detect EEPROM chip from windows 9x/2K environment ? I've read some "obscure" code at http://www.clustermatic.org/pipermail/linuxbios/2004-July/008536.html. I just don't know where to read from, i.e. port addr to be used . I think it will be system (chipset to be exact) dependent. Any info on this is appreciated very much. Note that I've no problem to get into kernel mode in win2K/XP at all. So only the "bare-metal" concept that I haven't know. I need to read the info directly from the SPD chip if it's possible to do it safely from the OS environment. After reading some of the code from this linuxbios project, I found the method used, but it's chipset dependent. This calls for vendor support :(. BTW, I still needed some info on this, since this is an unexplored area for me, so any info will be very valuable. TIA Pinczakko

Share this post


Link to post
Share on other sites
Advertisement
In 2K you probably can't without writing kernel code (Which means you need the driver development kit), since windows tries to protect hardware from software.

You could always just look up the source of the linux function you found, then the source of the api it uses, etc until you get to a direct hardware level.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The link below has a really good forum (List Server) for Windows driver development. I actually think you'll get better answers there.

http://www.osronline.com/

Share this post


Link to post
Share on other sites
Writing kernel mode code is not a problem for me both in Windows (9x/2K/XP) or Linux (kernel 2.4), I've done it for some time. The only problem is I want to ensure does the code will be chipset dependent or not. I need a sample implementation. As for the API, there's no API at all. Linux BIOS is a BIOS replacement, so their code is controlling the "bare-metal" directly, no software layer on top of it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!