5 unsigned char smramc, esmramc;
8 smramc = pci_read8(0, 0, 0, SMRAMC);
9 esmramc = pci_read8(0, 0, 0, ESMRAMC);
11 toud = (pci_read16(0, 0, 0, 0xC4) >> 3) << 19;
12 printf("Usable DRAM: %d bytes\n", toud);
14 printf("SMRAMC: %02x\n", smramc);
15 printf("ESMRAMC: %02x\n", smramc);
16 if (smramc & SMRAMC_LOCK)
18 printf("SMRAM is locked, cannot load anything :-(\n");