7c933c58e305e672dc8f41d7b4b59cc3b0e18f6f
[coreboot.git] / src / northbridge / intel / i855pm / reset_test.c
1 /* Convert to C by yhlu */
2 /* converted to 855 by RGM */
3 #define MCH_DRC 0x70
4 #define DRC_DONE (1 << 29)
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         uint32_t dword;
11         
12         dword = pci_read_config32(PCI_DEV(0, 0, 0), MCH_DRC);
13         
14         if( (dword & DRC_DONE) != 0 ) {
15                 return 1;
16         } 
17         
18         return 0;
19 }