119 lines
4.1 KiB
C
119 lines
4.1 KiB
C
/** @file
|
|
|
|
@copyright
|
|
INTEL CONFIDENTIAL
|
|
Copyright 2012 - 2017 Intel Corporation.
|
|
|
|
The source code contained or described herein and all documents related to the
|
|
source code ("Material") are owned by Intel Corporation or its suppliers or
|
|
licensors. Title to the Material remains with Intel Corporation or its suppliers
|
|
and licensors. The Material may contain trade secrets and proprietary and
|
|
confidential information of Intel Corporation and its suppliers and licensors,
|
|
and is protected by worldwide copyright and trade secret laws and treaty
|
|
provisions. No part of the Material may be used, copied, reproduced, modified,
|
|
published, uploaded, posted, transmitted, distributed, or disclosed in any way
|
|
without Intel's prior express written permission.
|
|
|
|
No license under any patent, copyright, trade secret or other intellectual
|
|
property right is granted to or conferred upon you by disclosure or delivery
|
|
of the Materials, either expressly, by implication, inducement, estoppel or
|
|
otherwise. Any license under such intellectual property rights must be
|
|
express and approved by Intel in writing.
|
|
|
|
Unless otherwise agreed by Intel in writing, you may not remove or alter
|
|
this notice or any other notice embedded in Materials by Intel or
|
|
Intel's suppliers or licensors in any way.
|
|
|
|
This file contains an 'Intel Peripheral Driver' and is uniquely identified as
|
|
"Intel Reference Module" and is licensed for Intel CPUs and chipsets under
|
|
the terms of your license agreement with Intel or your vendor. This file may
|
|
be modified by the user, subject to additional terms of the license agreement.
|
|
|
|
@par Specification
|
|
**/
|
|
|
|
#ifndef _BOOTLOADER_PLATFORM_DATA_H
|
|
#define _BOOTLOADER_PLATFORM_DATA_H
|
|
|
|
//
|
|
// @note
|
|
// All lines between tag EXTERNAL_BOOTLOADER_STRUCT_BEGIN and
|
|
// EXTERNAL_BOOTLOADER_STRUCT_END will be exported to the generated
|
|
// FspUpd.h, FsptUpd.h, FspmUpd.h and FspsUpd.h files by the tool.
|
|
//
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
|
|
/* !EXPORT FSPT EXTERNAL_BOOTLOADER_STRUCT_BEGIN */
|
|
/* !EXPORT FSPT EXTERNAL_BOOTLOADER_STRUCT_END */
|
|
|
|
|
|
/* !EXPORT FSPM EXTERNAL_BOOTLOADER_STRUCT_BEGIN */
|
|
|
|
#include <MemInfoHob.h>
|
|
|
|
///
|
|
/// The ChipsetInit Info structure provides the information of ME ChipsetInit CRC and BIOS ChipsetInit CRC.
|
|
///
|
|
typedef struct {
|
|
UINT8 Revision; ///< Chipset Init Info Revision
|
|
UINT8 Rsvd[3]; ///< Reserved
|
|
UINT16 MeChipInitCrc; ///< 16 bit CRC value of MeChipInit Table
|
|
UINT16 BiosChipInitCrc; ///< 16 bit CRC value of PchChipInit Table
|
|
} CHIPSET_INIT_INFO;
|
|
|
|
/* !EXPORT FSPM EXTERNAL_BOOTLOADER_STRUCT_END */
|
|
|
|
|
|
/* !EXPORT FSPS EXTERNAL_BOOTLOADER_STRUCT_BEGIN */
|
|
|
|
///
|
|
/// Azalia Header structure
|
|
///
|
|
typedef struct {
|
|
UINT16 VendorId; ///< Codec Vendor ID
|
|
UINT16 DeviceId; ///< Codec Device ID
|
|
UINT8 RevisionId; ///< Revision ID of the codec. 0xFF matches any revision.
|
|
UINT8 SdiNum; ///< SDI number, 0xFF matches any SDI.
|
|
UINT16 DataDwords; ///< Number of data DWORDs pointed by the codec data buffer.
|
|
UINT32 Reserved; ///< Reserved for future use. Must be set to 0.
|
|
} AZALIA_HEADER;
|
|
|
|
///
|
|
/// Audio Azalia Verb Table structure
|
|
///
|
|
typedef struct {
|
|
AZALIA_HEADER Header; ///< AZALIA PCH header
|
|
UINT32 *Data; ///< Pointer to the data buffer. Its length is specified in the header
|
|
} AUDIO_AZALIA_VERB_TABLE;
|
|
|
|
///
|
|
/// Refer to the definition of PCH_INT_PIN
|
|
///
|
|
typedef enum {
|
|
SiPchNoInt, ///< No Interrupt Pin
|
|
SiPchIntA,
|
|
SiPchIntB,
|
|
SiPchIntC,
|
|
SiPchIntD
|
|
} SI_PCH_INT_PIN;
|
|
///
|
|
/// The PCH_DEVICE_INTERRUPT_CONFIG block describes interrupt pin, IRQ and interrupt mode for PCH device.
|
|
///
|
|
typedef struct {
|
|
UINT8 Device; ///< Device number
|
|
UINT8 Function; ///< Device function
|
|
UINT8 IntX; ///< Interrupt pin: INTA-INTD (see SI_PCH_INT_PIN)
|
|
UINT8 Irq; ///< IRQ to be set for device.
|
|
} SI_PCH_DEVICE_INTERRUPT_CONFIG;
|
|
|
|
#define SI_PCH_MAX_DEVICE_INTERRUPT_CONFIG 64 ///< Number of all PCH devices
|
|
|
|
/* !EXPORT FSPS EXTERNAL_BOOTLOADER_STRUCT_END */
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|
|
|