]>
Commit | Line | Data |
---|---|---|
90d08965 JW |
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 | } |