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