aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cimx/sb700/Platform.h
diff options
context:
space:
mode:
authorKerry Sheh <shekairui@gmail.com>2012-02-07 20:31:40 +0800
committerMarc Jones <marcj303@gmail.com>2012-02-16 22:31:53 +0100
commit131c936b45a4f0d3a1aaaf0165faffc8a7cd72c6 (patch)
tree9c22dc09a64513e58211c7df682b8f90962ba92e /src/southbridge/amd/cimx/sb700/Platform.h
parent6811f75457148cc0d3b0cb4832fda712e7797af2 (diff)
SB700 southbridge: AMD SB700/SP5100 southbridge CIMX wrapper
Change-Id: If924b7eb176e7d3d82fa394929b653b1ced3a743 Signed-off-by: Kerry Sheh <kerry.she@amd.com> Signed-off-by: Kerry Sheh <shekairui@gmail.com> Reviewed-on: http://review.coreboot.org/561 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/southbridge/amd/cimx/sb700/Platform.h')
-rw-r--r--src/southbridge/amd/cimx/sb700/Platform.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/southbridge/amd/cimx/sb700/Platform.h b/src/southbridge/amd/cimx/sb700/Platform.h
new file mode 100644
index 0000000000..15e5b0702c
--- /dev/null
+++ b/src/southbridge/amd/cimx/sb700/Platform.h
@@ -0,0 +1,87 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2012 Advanced Micro Devices, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef _AMD_SB_CIMx_PLATFORM_H_
+#define _AMD_SB_CIMx_PLATFORM_H_
+
+#pragma pack(push,1)
+
+#include "cbtypes.h"
+#include <console/console.h>
+#include <console/loglevel.h>
+#ifdef NULL
+#undef NULL
+#endif
+#define NULL 0
+
+typedef struct _EXT_PCI_ADDR{
+ UINT32 Reg :16;
+ UINT32 Func:3;
+ UINT32 Dev :5;
+ UINT32 Bus :8;
+}EXT_PCI_ADDR;
+
+
+typedef union _PCI_ADDR{
+ UINT32 ADDR;
+ EXT_PCI_ADDR Addr;
+}PCI_ADDR;
+
+
+#ifdef CIM_DEBUG
+
+#if CIM_DEBUG & 2
+void TraceDebug( UINT32 Level, CHAR8 *Format, ...);
+#define TRACE(Arguments) TraceDebug Arguments
+#else
+#define TRACE(Arguments)
+#endif
+
+#if CIM_DEBUG & 1
+void TraceCode ( UINT32 Level, UINT32 Code);
+#define TRACECODE(Arguments) TraceCode Arguments
+#else
+#define TRACECODE(Arguments)
+#endif
+#else
+ #if CONFIG_REDIRECT_SBCIMX_TRACE_TO_SERIAL
+ #define TRACE(Arguments) printk Arguments
+ #else
+ #define TRACE(Arguments) do {} while(0)
+ #endif
+ #define TRACECODE(Arguments)
+#endif
+
+#define FIXUP_PTR(ptr) ptr
+
+#pragma pack(pop)
+
+#include "OEM.h"
+#include "Amd.h"
+#include "ACPILIB.h"
+#include "SBTYPE.h"
+#include "sbAMDLIB.h"
+#include "SBCMNLIB.h"
+#include "SB700.h"
+#include "SBDEF.h"
+
+#define DMSG_SB_TRACE 0x02
+
+#endif //#ifndef _AMD_SB_CIMx_PLATFORM_H_
+