ISA_MAP_INFO *IsaMapInfo;\r
\r
//\r
- // Unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
+ // Check if DMA is supported.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportDma)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_DMA) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
ISA_IO_DEVICE *IsaIoDevice;\r
\r
//\r
- // Set Feature Flag PcdIsaBusSupportIsaMemory to FALSE to disable support for\r
- // ISA bus memory read/write operations.\r
+ // Check if ISA memory is supported.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportIsaMemory)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_ISA_MEMORY) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
ISA_IO_DEVICE *IsaIoDevice;\r
\r
//\r
- // Set Feature Flag PcdIsaBusSupportIsaMemory to FALSE to disable support for\r
- // ISA bus memory read/write operations.\r
+ // Check if ISA memory is supported.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportIsaMemory)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_ISA_MEMORY) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
ISA_IO_DEVICE *IsaIoDevice;\r
\r
//\r
- // Set Feature Flag PcdIsaBusSupportIsaMemory to FALSE to disable support for\r
- // ISA bus memory read/write operations.\r
+ // Check if ISA memory is supported.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportIsaMemory)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_ISA_MEMORY) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
)\r
{\r
//\r
- // Set Feature Flag PcdIsaBusSupportDma to FALSE to disable support for ISA DMA.\r
+ // Check if DMA is supported.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportDma)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_DMA) == 0) {\r
return EFI_UNSUPPORTED;\r
}\r
//\r
//\r
// So we just return EFI_UNSUPPORTED for these functions.\r
//\r
- if (FeaturePcdGet (PcdIsaBusOnlySupportSlaveDma)) {\r
+ if ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_ONLY_SUPPORT_SLAVE_DMA) != 0) {\r
return IsaIoMapOnlySupportSlaveReadWrite (\r
This,\r
Operation,\r
// ISA Bus Master.\r
// Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportDma) || FeaturePcdGet (PcdIsaBusOnlySupportSlaveDma)) {\r
+ if (((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_DMA) == 0) ||\r
+ ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_ONLY_SUPPORT_SLAVE_DMA) != 0)) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
// ISA Bus Master.\r
// Or unset Feature Flag PcdIsaBusSupportDma to disable support for ISA DMA.\r
//\r
- if (!FeaturePcdGet (PcdIsaBusSupportDma) || FeaturePcdGet (PcdIsaBusOnlySupportSlaveDma)) {\r
+ if (((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_SUPPORT_DMA) == 0) ||\r
+ ((PcdGet8 (PcdIsaBusSupportedFeatures) & PCD_ISA_BUS_ONLY_SUPPORT_SLAVE_DMA) != 0)) {\r
return EFI_UNSUPPORTED;\r
}\r
\r