From 48495aae386af81c6650d2a4c6f90f22321e1ae9 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Fri, 1 Apr 2016 16:36:38 +0800 Subject: [PATCH] MdeModulePkg/PciBus: Remove unused fields in PCI_BAR Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jeff Fan Tested-by: Laszlo Ersek --- MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h | 4 +--- MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h index b99d3181ac..baf88c7182 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h @@ -1,7 +1,7 @@ /** @file Header files and data structures needed by PCI Bus module. -Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -102,8 +102,6 @@ struct _PCI_BAR { UINT64 Length; UINT64 Alignment; PCI_BAR_TYPE BarType; - BOOLEAN Prefetchable; - UINT8 MemType; UINT16 Offset; }; diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c index 086c481130..4e68d03f39 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c @@ -1,7 +1,7 @@ /** @file PCI emumeration support functions implementation for PCI Bus module. -Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -1792,7 +1792,6 @@ PciParseBar ( PciIoDevice->PciBar[BarIndex].BarType = (PCI_BAR_TYPE) 0; } - PciIoDevice->PciBar[BarIndex].Prefetchable = FALSE; PciIoDevice->PciBar[BarIndex].BaseAddress = OriginalValue & Mask; } else { -- 2.39.2