示例#1
0
void Memory_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{	
	/* our code only works on Intel chipsets so make sure here */
	if (pci_config_read16(PCIADDR(0, 0x00, 0), 0x00) != 0x8086)
		bootInfo->memDetect = false;
    else
		bootInfo->memDetect = true;
	/* manually */
    getBoolForKey(kUseMemDetectKey, &bootInfo->memDetect, &bootInfo->bootConfig);

    if (bootInfo->memDetect)
	{
		if (dram_controller_dev != NULL)
		{
			// Rek: pci dev ram controller direct and fully informative scan ...
			scan_dram_controller(dram_controller_dev);
		}
		
		//Azi: gone on Kabyl's smbios update - reminder
		// unfortunately still necesary for some comp where spd cant read correct speed
		//	scan_memory(&Platform);
		
        scan_spd(&Platform); // check Mek's implementation!
    }
}
示例#2
0
void Memory_hook(void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6)
{	
	
	if (dram_controller_dev!=NULL) {
		scan_dram_controller(dram_controller_dev); // Rek: pci dev ram controller direct and fully informative scan ...
	}
			
	if(smbus_controller_dev)
	{

		scan_spd(smbus_controller_dev);

	}
    	
}
示例#3
0
/** scan mem for memory autodection purpose */
void scan_mem() {
    static bool done = false;
    if (done) return;

    bool useAutodetection = true;
    getBoolForKey(kUseMemDetect, &useAutodetection, &bootInfo->bootConfig);

    if (useAutodetection) {
		if (dram_controller_dev!=NULL) {
			scan_dram_controller(dram_controller_dev); // Rek: pci dev ram controller direct and fully informative scan ...
		}
        scan_memory(&Platform); // unfortunately still necesary for some comp where spd cant read correct speed
        scan_spd(&Platform);
		//getc();
    }
    done = true;
}
示例#4
0
/** scan mem for memory autodection purpose */
void scan_mem() {
    static bool done = false;
    if (done) return;

	/* our code only works on Intel chipsets so make sure here */
	if (pci_config_read16(PCIADDR(0, 0x00, 0), 0x00) != 0x8086)
		bootInfo->memDetect = false;
    else
		bootInfo->memDetect = true;
	/* manually */
    getBoolForKey(kUseMemDetect, &bootInfo->memDetect, &bootInfo->chameleonConfig);

    if (bootInfo->memDetect) {
		if (dram_controller_dev != NULL) {
			scan_dram_controller(dram_controller_dev); // Rek: pci dev ram controller direct and fully informative scan ...
		}
        scan_spd(&Platform);
    }
    done = true;
}
示例#5
0
void Memory_hook(void* arg1, void* arg2, void* arg3, void* arg4)
{
	bool useAutodetection = true;
    getBoolForKey(kUseMemDetect, &useAutodetection, &bootInfo->bootConfig);
	
	
    if (useAutodetection) {
		
		if (dram_controller_dev!=NULL) {
			scan_dram_controller(dram_controller_dev); // Rek: pci dev ram controller direct and fully informative scan ...
		}
		scan_memory(Platform); // unfortunately still necesary for some comp where spd cant read correct speed
		DBG("scan_memory \n");
		if(smbus_controller_dev)
		{
			scan_spd(Platform, smbus_controller_dev);
			DBG("scan_spd \n");
		}
    }
	
}