Specifications
Example Code
155
4.2 Example of a Dummy EFI Hardware SMM Child
Driver
User defined areas are highlighted like this.
/*++
Module Name:
YourName.c
Abstract:
This is a generic template for a child of the IchSmm driver.
Revision History
--*/
#include "Efi.h"
#include "EfiRuntimeLib.h"
#include "GetFvImage.h"
#include EFI_PROTOCOL_CONSUMER(SmmBase)
#include EFI_PROTOCOL_CONSUMER(FirmwareVolume)
#include EFI_PROTOCOL_CONSUMER(YourFileDispatch)
// GUID for the FV file that this source file gets compiled into
EFI_GUID mChildFileGuid = { Your GUID here };
////////////////////////////////////////////
// Callback function prototypes
VOID
YourCallback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_YOUR_DISPATCH_CONTEXT *DispatchContext
);










