Clean up ECC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8665 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -14,8 +14,127 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
#include "IncompatiblePciDeviceList.h"
|
||||
|
||||
EFI_PCI_REGISTER_ACCESS_DATA mPciRegisterAccessData = {0, 0, 0};
|
||||
EFI_PCI_REGISTER_VALUE_DATA mPciRegisterValueData = {0, 0};
|
||||
//
|
||||
// the incompatible PCI devices list template for ACPI resource
|
||||
//
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED UINT64 gIncompatiblePciDeviceListForResource[] = {
|
||||
//
|
||||
// DEVICE_INF_TAG,
|
||||
// PCI_DEVICE_ID (VendorID, DeviceID, Revision, SubVendorId, SubDeviceId),
|
||||
// DEVICE_RES_TAG,
|
||||
// ResType, GFlag , SFlag, Granularity, RangeMin,
|
||||
// RangeMax, Offset, AddrLen
|
||||
//
|
||||
|
||||
//
|
||||
// Sample Device 1
|
||||
//
|
||||
//DEVICE_INF_TAG,
|
||||
//PCI_DEVICE_ID(0xXXXX, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE),
|
||||
//DEVICE_RES_TAG,
|
||||
//PCI_BAR_TYPE_IO,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_BAR_EVEN_ALIGN,
|
||||
//PCI_BAR_ALL,
|
||||
//PCI_BAR_NOCHANGE,
|
||||
|
||||
//
|
||||
// Sample Device 2
|
||||
//
|
||||
//DEVICE_INF_TAG,
|
||||
//PCI_DEVICE_ID(0xXXXX, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE),
|
||||
//DEVICE_RES_TAG,
|
||||
//PCI_BAR_TYPE_IO,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_ACPI_UNUSED,
|
||||
//PCI_BAR_EVEN_ALIGN,
|
||||
//PCI_BAR_ALL,
|
||||
//PCI_BAR_NOCHANGE,
|
||||
|
||||
//
|
||||
// The end of the list
|
||||
//
|
||||
LIST_END_TAG
|
||||
};
|
||||
|
||||
//
|
||||
// the incompatible PCI devices list template for the values of configuration registers
|
||||
//
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED UINT64 gIncompatiblePciDeviceListForRegister[] = {
|
||||
//
|
||||
// DEVICE_INF_TAG,
|
||||
// PCI_DEVICE_ID (VendorID, DeviceID, Revision, SubVendorId, SubDeviceId),
|
||||
// PCI_RES_TAG,
|
||||
// PCI_ACCESS_TYPE, PCI_CONFIG_ADDRESS,
|
||||
// AND_VALUE, OR_VALUE
|
||||
|
||||
//
|
||||
// Sample Device 1
|
||||
//
|
||||
//DEVICE_INF_TAG,
|
||||
//PCI_DEVICE_ID(0xXXXX, 0xXXXX, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE),
|
||||
//DEVICE_RES_TAG,
|
||||
//PCI_REGISTER_READ,
|
||||
//PCI_CAPBILITY_POINTER_OFFSET,
|
||||
//0xffffff00,
|
||||
//VALUE_NOCARE,
|
||||
|
||||
//
|
||||
// Sample Device 2
|
||||
//
|
||||
//DEVICE_INF_TAG,
|
||||
//PCI_DEVICE_ID(0xXXXX, 0xXXXX, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE),
|
||||
//DEVICE_RES_TAG,
|
||||
//PCI_REGISTER_READ,
|
||||
//PCI_CAPBILITY_POINTER_OFFSET,
|
||||
//0xffffff00,
|
||||
//VALUE_NOCARE,
|
||||
|
||||
//
|
||||
// The end of the list
|
||||
//
|
||||
LIST_END_TAG
|
||||
};
|
||||
|
||||
//
|
||||
// the incompatible PCI devices list template for the access width of configuration registers
|
||||
//
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED UINT64 gDeviceListForAccessWidth[] = {
|
||||
//
|
||||
// DEVICE_INF_TAG,
|
||||
// PCI_DEVICE_ID (VendorID, DeviceID, Revision, SubVendorId, SubDeviceId),
|
||||
// DEVICE_RES_TAG,
|
||||
// PCI_ACCESS_TYPE, PCI_ACCESS_WIDTH,
|
||||
// START_ADDRESS, END_ADDRESS,
|
||||
// ACTUAL_PCI_ACCESS_WIDTH,
|
||||
//
|
||||
|
||||
//
|
||||
// Sample Device
|
||||
//
|
||||
//DEVICE_INF_TAG,
|
||||
//PCI_DEVICE_ID(0xXXXX, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE, DEVICE_ID_NOCARE),
|
||||
//DEVICE_RES_TAG,
|
||||
//PCI_REGISTER_READ,
|
||||
//EfiPciWidthUint8,
|
||||
//0,
|
||||
//0xFF,
|
||||
//EfiPciWidthUint32,
|
||||
//
|
||||
|
||||
//
|
||||
// The end of the list
|
||||
//
|
||||
LIST_END_TAG
|
||||
};
|
||||
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_PCI_REGISTER_ACCESS_DATA mPciRegisterAccessData = {0, 0, 0};
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_PCI_REGISTER_VALUE_DATA mPciRegisterValueData = {0, 0};
|
||||
|
||||
|
||||
/**
|
||||
@ -299,7 +418,7 @@ PciRegisterUpdateCheck (
|
||||
|
||||
/**
|
||||
Check the incompatible device list for access width incompatibility and
|
||||
return the configuration
|
||||
return the configuration.
|
||||
|
||||
This function searches the incompatible device list for access width
|
||||
incompatibility according to request information. If the PCI device
|
||||
|
Reference in New Issue
Block a user