//************************************************************************* //************************************************************************* //** ** //** (C)Copyright 1985-2011, American Megatrends, Inc. ** //** ** //** All Rights Reserved. ** //** ** //** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** //** ** //** Phone: (770)-246-8600 ** //** ** //************************************************************************* //************************************************************************* //************************************************************************* // $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Board/SBDXEBoard.c 1 2/08/12 8:22a Yurenlai $ // // $Revision: 1 $ // // $Date: 2/08/12 8:22a $ //************************************************************************* // Revision History // ---------------- // $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Board/SBDXEBoard.c $ // // 1 2/08/12 8:22a Yurenlai // Intel Lynx Point/SB eChipset initially releases. // //************************************************************************* // // // Name: SBDxeBoard.C // // Description: This file contains DXE stage board component code for // South Bridge. // // //************************************************************************* //--------------------------------------------------------------------------- // Include(s) //--------------------------------------------------------------------------- #include #include #include #include #include #include #include // Produced Protocols // Consumed Protocols #include #include #include //--------------------------------------------------------------------------- // Constant, Macro and Type Definition(s) //--------------------------------------------------------------------------- // Constant Definition(s) // Macro Definition(s) // Type Definition(s) typedef VOID (SAVE_RESTORE_CALLBACK)( BOOLEAN Save ); // Function Prototype(s) //--------------------------------------------------------------------------- // Variable and External Declaration(s) //--------------------------------------------------------------------------- // Variable Declaration(s) SAVE_RESTORE_CALLBACK* SaveRestoreCallbackList[] = \ { SAVE_RESTORE_CALLBACK_LIST NULL }; // GUID Definition(s) // Protocol Definition(s) // External Declaration(s) extern SAVE_RESTORE_CALLBACK SAVE_RESTORE_CALLBACK_LIST EndOfList; // Function Definition(s) //--------------------------------------------------------------------------- // //---------------------------------------------------------------------------- // // Procedure: SBDXE_BoardInit // // Description: This function initializes the board specific component in // in the chipset South bridge // // Input: ImageHandle - Image handle // SystemTable - Pointer to the system table // // Output: Return Status based on errors that occurred while waiting for // time to expire. //---------------------------------------------------------------------------- // EFI_STATUS SBDXE_BoardInit ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { InitAmiLib( ImageHandle, SystemTable ); return EFI_SUCCESS; } // //---------------------------------------------------------------------------- // // Procedure: SaveRestoreRegisters // // Description: This function calls registered callbacks to save/restore // registers value in timer interrupt routine // // Input: BOOLEAN Save - if TRUE - save registers, FALSE - restore back // // Output: None //---------------------------------------------------------------------------- // VOID SaveRestoreRegisters ( IN BOOLEAN Save ) { UINTN i; for (i = 0; SaveRestoreCallbackList[i] != NULL; i++) SaveRestoreCallbackList[i]( Save ); } //************************************************************************* //************************************************************************* //** ** //** (C)Copyright 1985-2011, American Megatrends, Inc. ** //** ** //** All Rights Reserved. ** //** ** //** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** //** ** //** Phone: (770)-246-8600 ** //** ** //************************************************************************* //*************************************************************************