summaryrefslogtreecommitdiffstats
path: root/src/northbridge/intel/i855pm/reset_test.c
blob: 7c933c58e305e672dc8f41d7b4b59cc3b0e18f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Convert to C by yhlu */
/* converted to 855 by RGM */
#define MCH_DRC 0x70
#define DRC_DONE (1 << 29)
	/* If I have already booted once skip a bunch of initialization */
	/* To see if I have already booted I check to see if memory
	 * has been enabled.
	 */
static int bios_reset_detected(void) {
	uint32_t dword;
	
	dword = pci_read_config32(PCI_DEV(0, 0, 0), MCH_DRC);
	
	if( (dword & DRC_DONE) != 0 ) {
		return 1;
	} 
	
	return 0;
}
OpenPOWER on IntegriCloud