m5a99x-evo: grml, strange romstage ld warning... dunno why :/
[coreboot.git] / src / vendorcode / amd / cimx / sb900 / AmdSbLib.h
1 /**
2  * @file
3  *
4  * Southbridge IO access common routine define file
5  *
6  *
7  *
8  * @xrefitem bom "File Content Label" "Release Content"
9  * @e project:      CIMx-SB
10  * @e sub-project:
11  * @e \$Revision:$   @e \$Date:$
12  *
13  */
14 /*;********************************************************************************
15 ;
16 ; Copyright (c) 2011, Advanced Micro Devices, Inc.
17 ; All rights reserved.
18
19 ; Redistribution and use in source and binary forms, with or without
20 ; modification, are permitted provided that the following conditions are met:
21 ;     * Redistributions of source code must retain the above copyright
22 ;       notice, this list of conditions and the following disclaimer.
23 ;     * Redistributions in binary form must reproduce the above copyright
24 ;       notice, this list of conditions and the following disclaimer in the
25 ;       documentation and/or other materials provided with the distribution.
26 ;     * Neither the name of Advanced Micro Devices, Inc. nor the names of 
27 ;       its contributors may be used to endorse or promote products derived 
28 ;       from this software without specific prior written permission.
29
30 ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31 ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32 ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33 ; DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
34 ; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35 ; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36 ; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37 ; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
41 ;*********************************************************************************/
42
43
44 //AMDSBLIB Routines
45
46 /*--------------------------- Documentation Pages ---------------------------*/
47 /**< SbStall - Reserved  */
48 void  SbStall (IN unsigned int uSec);
49
50 /**< cimSbStall - Reserved  */
51 void  cimSbStall (IN unsigned int uSec);
52
53 /**< SbReset - Reserved  */
54 void SbReset (void);
55
56 /**< outPort80 - Reserved  */
57 void outPort80 (IN unsigned int pcode);
58
59 /**< outPort80 - Reserved  */
60 void outPort1080 (IN unsigned int pcode);
61
62 /**< getEfuseStatue - Reserved  */
63 void getEfuseStatus (IN void* Value);
64
65 /**< getEfuseByte - Reserved  */
66 unsigned char getEfuseByte (IN unsigned char Index);
67
68 /**< AmdSbDispatcher - Reserved  */
69 AGESA_STATUS  AmdSbDispatcher (IN void *pConfig);
70
71 /**< AmdSbCopyMem - Reserved  */
72 void AmdSbCopyMem (IN void* pDest, IN void* pSource, IN unsigned int Length);
73
74 /**< GetRomSigPtr - Reserved  */
75 void* GetRomSigPtr (IN unsigned int* RomSigPtr);
76
77 /**< RWXhciIndReg - Reserved  */
78 void RWXhciIndReg (IN unsigned int Index, IN unsigned int AndMask, IN unsigned int OrMask);
79
80 /**< RWXhciIndReg - Reserved  */
81 void RWXhci0IndReg (IN unsigned int Index, IN unsigned int AndMask, IN unsigned int OrMask);
82
83 /**< RWXhciIndReg - Reserved  */
84 void RWXhci1IndReg (IN unsigned int Index, IN unsigned int AndMask, IN unsigned int OrMask);
85
86 /**< AcLossControl - Reserved  */
87 void AcLossControl (IN unsigned char AcLossControlValue);
88
89 /**< SbVgaInit - Reserved  */
90 void SbVgaInit (void);
91
92 /**< RecordSbConfigPtr - Reserved  */
93 void RecordSbConfigPtr (IN unsigned int SbConfigPtr);
94
95 /**< SbGpioInit - Reserved  */
96 void
97 SbGpioInit (
98   IN       SB_GPIO_INIT_ENTRY *SbGpioInitTable
99   );
100
101 /**< SbGpioControl - Reserved  */
102 void
103 SbGpioControl (
104   IN       SB_GPIO_CONTROL_ENTRY *SbGpio
105   );
106
107 /**< SbFlashUsbSmi - Reserved  */
108 void SbFlashUsbSmi (void);
109
110 /**< SbEnableUsbIrq1Irq12ToPicApic - Reserved  */
111 void SbEnableUsbIrq1Irq12ToPicApic (void);
112