bool
ICH9_Detect(void)
{
    //Test if the current chipset is ICH9 by testing for the LPC controller
    if(LPC_Initialize())return TRUE;
    COM_WriteStr("LPC not initialized\r\n");
    return FALSE;
}
Esempio n. 2
0
void GPIO_Initialize(void)
{
	INTERRUPT_MASK interrupt_states;
	
	/* Disable all interrupts... */
	interrupt_states = GetInterruptRegister();
	DisableInterruptRegister(ALL_INTERRUPTS_32);
	
	/* Replace the old (bootloader) Interrupt Service Routine... */
	((P_ISR_FUNCTION *)ISR_ENTRY_TABLE_LOCATION)[10] = GPIO_ISR;
	
	/* Restore previous interrupt states... */
	EnableInterruptRegister(interrupt_states);
	
	/* ### Initialize Subroutines ### */
	
	LPC_Initialize(); // and others...
}