summaryrefslogtreecommitdiff
path: root/Board/Oem.h
blob: 1a220f5f45c757c3a213cadc671d217e3ebcc179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//**********************************************************************//
//**********************************************************************//
//**                                                                  **//
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **//
//**                                                                  **//
//**                       All Rights Reserved.                       **//
//**                                                                  **//
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **//
//**                       Phone: (770)-246-8600                      **//
//**                                                                  **//
//**********************************************************************//
//**********************************************************************//
//**********************************************************************//
//
// $Header: /Alaska/BIN/Board/Oem.h 3     2/07/11 4:48p Artems $
//
// $Revision: 3 $
//
// $Date: 2/07/11 4:48p $
//
//**********************************************************************//
// Revision History
// ----------------
// $Log: /Alaska/BIN/Board/Oem.h $
// 
// 3     2/07/11 4:48p Artems
// EIP 53374: Replaced tabs with spaces
// 
// 2     6/25/09 6:09p Robert
// Updated Comments and function headers
// 
// 1     6/13/06 4:54p Sivagarn
// Initial Checkin
// 
// 
//*****************************************************************************

//<AMI_FHDR_START>
//----------------------------------------------------------------------------
//
// Name: OEM.H
//
// Description:
//  This file contains definitions used in OEM porting hooks
//
//----------------------------------------------------------------------------
//<AMI_FHDR_END>

#ifndef  _OEM_H   //To Avoid this header get compiled twice
#define  _OEM_H


//============================================================================
//  MACRO definitions
#define OEM_PCI_CFG_ADDRESS(bus,dev,func,reg)   \
 ((UINT64) ( (((UINTN)bus) <<   24) +   (((UINTN)dev)   << 16) + (((UINTN)func) << 8)   +   ((UINTN)reg) ))& 0x00000000ffffffff
#define OEM_EXTENDED_REGISTER(extreg)   (((UINT64)extreg) << 32)


//============================================================================
// Constants
#define NUM_BITS_IN_ACPI_TIMER      24      // Programmed to 24 not 32

#endif 

//**********************************************************************//
//**********************************************************************//
//**                                                                  **//
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **//
//**                                                                  **//
//**                       All Rights Reserved.                       **//
//**                                                                  **//
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **//
//**                       Phone: (770)-246-8600                      **//
//**                                                                  **//
//**********************************************************************//
//**********************************************************************//