]> Joshua Wise's Git repositories - netwatch.git/blob - ich7/smm-open-ich7.c
checksum_rect defaults to null
[netwatch.git] / ich7 / smm-open-ich7.c
1 #include "reg-82865.h"
2
3 void 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.028152 seconds and 4 git commands to generate.