some progress on kconfig:
[coreboot.git] / src / northbridge / intel / i3100 / reset_test.c
1 /* Convert to C by yhlu */
2 #define MCH_DRC 0x7c
3 #define DRC_DONE (1 << 29)
4
5 /* If I have already booted once skip a bunch of initialization */
6 /* To see if I have already booted I check to see if memory
7  * has been enabled.
8  */
9 static int bios_reset_detected(void)
10 {
11         uint32_t dword;
12
13         dword = pci_read_config32(PCI_DEV(0, 0, 0), MCH_DRC);
14
15         if( (dword & DRC_DONE) != 0 ) {
16                 return 1;
17         }
18
19         return 0;
20 }