blob: 3fd5fea9dc8fbfeb9bd46c6012db440180c9824f [file] [log] [blame]
Frank Vibrans2b4c8312011-02-14 18:30:54 +00001/*
2 *****************************************************************************
3 *
4 * Copyright (c) 2011, Advanced Micro Devices, Inc.
5 * All rights reserved.
Edward O'Callaghanb9a67002014-07-06 19:29:03 +10006 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +00007 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
Edward O'Callaghanb9a67002014-07-06 19:29:03 +100014 * * Neither the name of Advanced Micro Devices, Inc. nor the names of
15 * its contributors may be used to endorse or promote products derived
Frank Vibrans2b4c8312011-02-14 18:30:54 +000016 * from this software without specific prior written permission.
Edward O'Callaghanb9a67002014-07-06 19:29:03 +100017 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +000018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Edward O'Callaghanb9a67002014-07-06 19:29:03 +100028 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +000029 * ***************************************************************************
30 *
31 */
32
33#include "cbtypes.h"
34
35VOID WriteECmsg (IN UINT8 Address, IN UINT8 OpFlag, IN VOID* Value);
36VOID WaitForEcLDN9MailboxCmdAck (VOID);
37VOID ReadECmsg (IN UINT8 Address, IN UINT8 OpFlag, OUT VOID* Value);
38
39// IMC Message Register Software Interface
40#define CPU_MISC_BUS_DEV_FUN ((0x18 << 3) + 3)
41
42#define MSG_SYS_TO_IMC 0x80
43#define Fun_80 0x80
44#define Fun_81 0x81
45#define Fun_82 0x82
46#define Fun_83 0x83
47#define Fun_84 0x84
48#define Fun_85 0x85
49#define Fun_86 0x86
50#define Fun_87 0x87
51#define Fun_88 0x88
52#define Fun_89 0x89
53#define Fun_90 0x90
54#define MSG_IMC_TO_SYS 0x81
55#define MSG_REG0 0x82
56#define MSG_REG1 0x83
57#define MSG_REG2 0x84
58#define MSG_REG3 0x85
59#define MSG_REG4 0x86
60#define MSG_REG5 0x87
61#define MSG_REG6 0x88
62#define MSG_REG7 0x89
63#define MSG_REG8 0x8A
64#define MSG_REG9 0x8B
65#define MSG_REGA 0x8C
66#define MSG_REGB 0x8D
67#define MSG_REGC 0x8E
68#define MSG_REGD 0x8F
69
70