Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
https://svn.code.sf.net/p/edk2/code/trunk/edk2/, which are for MinnowBoard MAX open source project. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei <david.wei@intel.com> Reviewed-by: Mike Wu <mike.wu@intel.com> Reviewed-by: Hot Tian <hot.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16599 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
251
Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemSlotDesignationData.c
Normal file
251
Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscSystemSlotDesignationData.c
Normal file
@@ -0,0 +1,251 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
|
||||
The full text of the license may be found at
|
||||
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Module Name:
|
||||
|
||||
MiscSystemSlotDesignationData.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Static data of System Slot Designation.
|
||||
System Slot Designation is Misc. subclass type 7 and SMBIOS type 9.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include "CommonHeader.h"
|
||||
|
||||
#include "MiscSubclassDriver.h"
|
||||
|
||||
|
||||
//
|
||||
// Static (possibly build generated) Bios Vendor data.
|
||||
//
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx16Slot1) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX16_1), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth16xOrx16, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x06, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
0, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
0, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx16Slot2) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX16_2), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth16xOrx16, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x04, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
0, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
0, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx4) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX4), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth4xOrx4, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x03, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
0, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
0, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx1Slot1) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX1_1), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth1xOrx1, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x02, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
1, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
1, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx1Slot2) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX1_2), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth1xOrx1, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x15, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
1, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
1, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCIEx1Slot3) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCIEX1_3), // SlotDesignation
|
||||
EfiSlotTypePciExpress, // SlotType
|
||||
EfiSlotDataBusWidth1xOrx1, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthShort, // SlotLength
|
||||
0x16, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
1, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
1, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCI1) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCI1), // SlotDesignation
|
||||
EfiSlotTypePci, // SlotType
|
||||
EfiSlotDataBusWidth32Bit, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthLong , // SlotLength
|
||||
0x07, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
1, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
1, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCI2) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCI2), // SlotDesignation
|
||||
EfiSlotTypePci, // SlotType
|
||||
EfiSlotDataBusWidth32Bit, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthLong , // SlotLength
|
||||
0x18, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
||||
0, // ModemRingResumeSupported:1;
|
||||
1, // PmeSignalSupported :1;
|
||||
0, // HotPlugDevicesSupported :1;
|
||||
1, // SmbusSignalSupported :1;
|
||||
0 // Reserved :21;
|
||||
},
|
||||
0 // SlotDevicePath
|
||||
};
|
||||
|
||||
MISC_SMBIOS_TABLE_DATA(EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotPCI3) = {
|
||||
STRING_TOKEN(STR_MISC_SYSTEM_SLOT_PCI3), // SlotDesignation
|
||||
EfiSlotTypePci, // SlotType
|
||||
EfiSlotDataBusWidth32Bit, // SlotDataBusWidth
|
||||
EfiSlotUsageAvailable, // SlotUsage
|
||||
EfiSlotLengthLong , // SlotLength
|
||||
0x17, // SlotId
|
||||
{ // SlotCharacteristics
|
||||
0, // CharacteristicsUnknown :1;
|
||||
0, // Provides50Volts :1;
|
||||
1, // Provides33Volts :1;
|
||||
0, // SharedSlot :1;
|
||||
0, // PcCard16Supported :1;
|
||||
0, // CardBusSupported :1;
|
||||
0, // ZoomVideoSupported :1;
|
Reference in New Issue
Block a user