blob: ff0cc44cfb81bdfb8862f699e1c3673d64f7d6ea [file] [log] [blame]
Martin Roth28920232013-01-17 12:04:08 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2012 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Paul Menzela46a7122013-02-23 18:37:27 +010017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Martin Roth28920232013-01-17 12:04:08 -070018 */
19
20#ifndef CALLOUTS_AMD_AGESA_FAM15TN_H
21#define CALLOUTS_AMD_AGESA_FAM15TN_H
22
23#include "Porting.h"
24#include "AGESA.h"
25
26#define BIOS_HEAP_START_ADDRESS 0x010000000
27#define BIOS_HEAP_SIZE 0x30000
28#define BSP_STACK_BASE_ADDR 0x30000
29
30
31typedef struct _BIOS_HEAP_MANAGER {
32 UINT32 StartOfAllocatedNodes;
33 UINT32 StartOfFreedNodes;
34} BIOS_HEAP_MANAGER;
35
36typedef struct _BIOS_BUFFER_NODE {
37 UINT32 BufferHandle;
38 UINT32 BufferSize;
39 UINT32 NextNodeOffset;
40} BIOS_BUFFER_NODE;
41
42AGESA_STATUS fam15tn_AllocateBuffer (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
43AGESA_STATUS fam15tn_DeallocateBuffer (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
44AGESA_STATUS fam15tn_LocateBuffer (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
45AGESA_STATUS fam15tn_GetIdsInitData (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
46AGESA_STATUS fam15tn_Reset (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
47AGESA_STATUS fam15tn_RunFuncOnAp (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
48AGESA_STATUS fam15tn_HookBeforeDQSTraining (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
49AGESA_STATUS fam15tn_HookBeforeExitSelfRefresh (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
50AGESA_STATUS fam15tn_DefaultRet (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
51AGESA_STATUS fam15tn_HookGfxGetVbiosImage(UINT32 Func, UINT32 FchData, VOID *ConfigPrt);
Martin Roth7fb692b2013-01-20 10:38:58 -070052AGESA_STATUS fam15tn_ReadSpd (UINT32 Func, UINT32 Data, VOID *ConfigPtr);
Martin Roth28920232013-01-17 12:04:08 -070053
54#endif /* CALLOUTS_AMD_AGESA_FAM15TN_H */