2 * SMRAM open utility for Intel 82865 northbridge
3 * NetWatch system management mode administration console
5 * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved.
6 * This program is free software; you can redistribute and/or modify it under
7 * the terms found in the file LICENSE in the root of this source tree.
11 #include "reg-82865.h"
15 unsigned char smramc, esmramc;
18 smramc = pci_read8(0, 0, 0, SMRAMC);
19 esmramc = pci_read8(0, 0, 0, ESMRAMC);
21 toud = (pci_read16(0, 0, 0, 0xC4) >> 3) << 19;
22 printf("Usable DRAM: %d bytes\n", toud);
24 printf("SMRAMC: %02x\n", smramc);
25 printf("ESMRAMC: %02x\n", smramc);
26 if (smramc & SMRAMC_LOCK)
28 printf("SMRAM is locked, cannot load anything :-(\n");