summaryrefslogtreecommitdiff
path: root/Board/OemPei.c
blob: 79b56ed8cc792516dea081aad1d5adbed8ba11f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**         5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************
//**********************************************************************
//
// $Header: /Alaska/BIN/Board/OemPei.c 4     8/24/11 7:41a Felixp $
//
// $Revision: 4 $
//
// $Date: 8/24/11 7:41a $
//
//*****************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Board/OemPei.c $
// 
// 4     8/24/11 7:41a Felixp
// EIP 64107: Changes to support UEFI 2.3.1 and PI 1.2 specifications
// 
// 3     6/25/09 6:09p Robert
// Updated Comments and function headers
//
// 2     12/05/06 12:29p Felixp
// Diable OemPei.ffs by default
//
// 1     6/13/06 4:53p Sivagarn
// Initial Checkin
//
//
//*****************************************************************************


//<AMI_FHDR_START>
//----------------------------------------------------------------------------
//
// Name:        OEMPEI.C
//
// Description: This file contains code for Template OEM initialization
//              in the PEI stage
//
//----------------------------------------------------------------------------
//<AMI_FHDR_END>


// Module specific Includes
#include "Efi.h"
#include "Pei.h"
#include "token.h"
#include <AmiPeiLib.h>
#include <Hob.h>
#include <Setup.h>

// Produced/used PPI interfaces
#include <ppi\CspLibPpi.h>

// Produced PPIs

// GUID Definitions
EFI_GUID gAmiPEIPCITableInitPpiGuid = AMI_PEI_PCI_TABLE_INIT_PPI_GUID;
EFI_GUID gMasterBootModeGuid        = EFI_PEI_MASTER_BOOT_MODE_PEIM_PPI;
EFI_GUID gRecoveryBootModeGuid      = EFI_PEI_BOOT_IN_RECOVERY_MODE_PEIM_PPI;

// Portable Constants

// Function Prototypes

// Function Prototypes

// PPI interface definition

// PPI Definition

// PPI that are installed

// Function Definition

//<AMI_PHDR_START>
//----------------------------------------------------------------------------
// Procedure:   OEMPEI_Init
//
// Description: 
//  This function is the entry point for this PEI. This function programs OEM 
//  related changes common to complete board. This might involve programming 
//  SB/NB & SIO
//
// Input:       
//  FfsHeader   Pointer to the FFS file header
//  PeiServices Pointer to the PEI services table
//
// Output:      
//  EFI_STATUS - porting hook is empty so it returns EFI_SUCCESS
//
// Notes: 
//  This module is disabled by default. If you add code here, you need to 
//  enable $(BUILD_DIR)\OemPei.ffs eLink, which is child of FV_BB. Otherwise 
//  this module will not be included in the ROM image.
//----------------------------------------------------------------------------
//<AMI_PHDR_END>

EFI_STATUS
EFIAPI
OEMPEI_Init (
  IN EFI_FFS_FILE_HEADER       *FfsHeader,
  IN EFI_PEI_SERVICES          **PeiServices
  )
{
    EFI_STATUS                  Status = EFI_SUCCESS;

    return Status;

}

//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**         5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************