From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Board/Oem.h | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Board/Oem.h (limited to 'Board/Oem.h') diff --git a/Board/Oem.h b/Board/Oem.h new file mode 100644 index 0000000..1a220f5 --- /dev/null +++ b/Board/Oem.h @@ -0,0 +1,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 +// +// +//***************************************************************************** + +// +//---------------------------------------------------------------------------- +// +// Name: OEM.H +// +// Description: +// This file contains definitions used in OEM porting hooks +// +//---------------------------------------------------------------------------- +// + +#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 **// +//** **// +//**********************************************************************// +//**********************************************************************// -- cgit v1.2.3