]> Joshua Wise's Git repositories - netwatch.git/blame - ich7/smm-open-ich7.c
Hit paging to clean it up a bit. Add a reboot button.
[netwatch.git] / ich7 / smm-open-ich7.c
CommitLineData
90d08965
JW
1#include "reg-82865.h"
2
3void main()
4{
5 unsigned char smramc, esmramc;
6 unsigned int toud;
7
8 smramc = pci_read8(0, 0, 0, SMRAMC);
9 esmramc = pci_read8(0, 0, 0, ESMRAMC);
10
11 toud = (pci_read16(0, 0, 0, 0xC4) >> 3) << 19;
12 printf("Usable DRAM: %d bytes\n", toud);
13
14 printf("SMRAMC: %02x\n", smramc);
15 printf("ESMRAMC: %02x\n", smramc);
16 if (smramc & SMRAMC_LOCK)
17 {
18 printf("SMRAM is locked, cannot load anything :-(\n");
19 return;
20 }
21}
This page took 0.028058 seconds and 4 git commands to generate.