summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci/PciBusDxe')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h9
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h60
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h9
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h72
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h69
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h30
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h78
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h42
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h12
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h3
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h78
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h9
12 files changed, 157 insertions, 314 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h
index f838395ea8..624ec50b17 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h
@@ -79,8 +79,7 @@ PciOperateRegister (
IN UINT8 Offset,
IN UINT8 Operation,
OUT UINT16 *PtrCommand
- )
-;
+ );
/**
check the cpability of this device supports
@@ -93,8 +92,7 @@ PciOperateRegister (
BOOLEAN
PciCapabilitySupport (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Locate cap reg.
@@ -114,8 +112,7 @@ LocateCapabilityRegBlock (
IN UINT8 CapId,
IN OUT UINT8 *Offset,
OUT UINT8 *NextRegBlock OPTIONAL
- )
-;
+ );
#define PciReadCommandRegister(a,b) \
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
index 41251ef3ab..059077a89a 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
@@ -20,8 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
InitializePciDevicePool (
VOID
- )
-;
+ );
/**
Insert a root bridge into PCI device pool
@@ -32,8 +31,7 @@ InitializePciDevicePool (
EFI_STATUS
InsertRootBridge (
PCI_IO_DEVICE *RootBridge
- )
-;
+ );
/**
This function is used to insert a PCI device node under
@@ -47,8 +45,7 @@ EFI_STATUS
InsertPciDevice (
PCI_IO_DEVICE *Bridge,
PCI_IO_DEVICE *PciDeviceNode
- )
-;
+ );
/**
Destroy root bridge and remove it from deivce tree.
@@ -59,8 +56,7 @@ InsertPciDevice (
EFI_STATUS
DestroyRootBridge (
IN PCI_IO_DEVICE *RootBridge
- )
-;
+ );
/**
Destroy all the pci device node under the bridge.
@@ -72,8 +68,7 @@ DestroyRootBridge (
EFI_STATUS
DestroyPciDeviceTree (
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Destroy all device nodes under the root bridge
@@ -86,8 +81,7 @@ DestroyPciDeviceTree (
EFI_STATUS
DestroyRootBridgeByHandle (
EFI_HANDLE Controller
- )
-;
+ );
/**
This function registers the PCI IO device. It creates a handle for this PCI IO device
@@ -107,8 +101,7 @@ RegisterPciDevice (
IN EFI_HANDLE Controller,
IN PCI_IO_DEVICE *PciIoDevice,
OUT EFI_HANDLE *Handle OPTIONAL
- )
-;
+ );
/**
This function is used to remove the whole PCI devices from the bridge.
@@ -122,8 +115,7 @@ EFI_STATUS
RemoveAllPciDeviceOnBridge (
EFI_HANDLE RootBridgeHandle,
PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
@@ -140,8 +132,7 @@ EFI_STATUS
DeRegisterPciDevice (
IN EFI_HANDLE Controller,
IN EFI_HANDLE Handle
- )
-;
+ );
/**
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
@@ -165,8 +156,7 @@ StartPciDevicesOnBridge (
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
IN OUT UINT8 *NumberOfChildren,
IN OUT EFI_HANDLE *ChildHandleBuffer
- )
-;
+ );
/**
Start to manage all the PCI devices it found previously under
@@ -178,8 +168,7 @@ StartPciDevicesOnBridge (
EFI_STATUS
StartPciDevices (
IN EFI_HANDLE Controller
- )
-;
+ );
/**
Create root bridge device
@@ -191,8 +180,7 @@ StartPciDevices (
PCI_IO_DEVICE *
CreateRootBridge (
IN EFI_HANDLE RootBridgeHandle
- )
-;
+ );
/**
Get root bridge device instance by specific handle
@@ -204,14 +192,12 @@ CreateRootBridge (
PCI_IO_DEVICE *
GetRootBridgeByHandle (
EFI_HANDLE RootBridgeHandle
- )
-;
+ );
BOOLEAN
RootBridgeExisted (
IN EFI_HANDLE RootBridgeHandle
- )
-;
+ );
/**
Judege whether Pci device existed
@@ -225,8 +211,7 @@ BOOLEAN
PciDeviceExisted (
IN PCI_IO_DEVICE *Bridge,
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Active VGA device
@@ -238,8 +223,7 @@ PciDeviceExisted (
PCI_IO_DEVICE *
ActiveVGADeviceOnTheSameSegment (
IN PCI_IO_DEVICE *VgaDevice
- )
-;
+ );
/**
Active VGA device on root bridge
@@ -251,8 +235,7 @@ ActiveVGADeviceOnTheSameSegment (
PCI_IO_DEVICE *
ActiveVGADeviceOnTheRootBridge (
IN PCI_IO_DEVICE *RootBridge
- )
-;
+ );
/**
Get HPC PCI address according to its device path
@@ -268,8 +251,7 @@ GetHpcPciAddress (
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
OUT UINT64 *PciAddress
- )
-;
+ );
/**
Get HPC PCI address according to its device path
@@ -284,8 +266,7 @@ GetHpcPciAddressFromRootBridge (
IN PCI_IO_DEVICE *RootBridge,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
OUT UINT64 *PciAddress
- )
-;
+ );
/**
Destroy a pci device node.
@@ -297,7 +278,6 @@ GetHpcPciAddressFromRootBridge (
EFI_STATUS
FreePciDevice (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h
index e32858bfc1..318df6045c 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h
@@ -37,8 +37,7 @@ typedef struct {
EFI_STATUS
InitializePciDriverOverrideInstance (
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Add an overriding driver image
@@ -53,8 +52,7 @@ EFI_STATUS
AddDriver (
IN PCI_IO_DEVICE *PciIoDevice,
IN EFI_HANDLE DriverImageHandle
- )
-;
+ );
/**
@@ -71,7 +69,6 @@ EFIAPI
GetDriver (
IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This,
IN OUT EFI_HANDLE *DriverImageHandle
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h
index 029e16eb26..e1f2a22b30 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h
@@ -29,8 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
PciEnumerator (
IN EFI_HANDLE Controller
- )
-;
+ );
/**
Enumerate PCI root bridge
@@ -46,8 +45,7 @@ EFI_STATUS
PciRootBridgeEnumerator (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
IN PCI_IO_DEVICE *RootBridgeDev
- )
-;
+ );
/**
This routine is used to process option rom on a certain root bridge
@@ -63,8 +61,7 @@ ProcessOptionRom (
IN PCI_IO_DEVICE *Bridge,
IN UINT64 RomBase,
IN UINT64 MaxLength
- )
-;
+ );
/**
This routine is used to assign bus number to the given PCI bus system
@@ -80,8 +77,7 @@ PciAssignBusNumber (
IN PCI_IO_DEVICE *Bridge,
IN UINT8 StartBusNumber,
OUT UINT8 *SubBusNumber
- )
-;
+ );
/**
This routine is used to determine the root bridge attribute by interfacing
@@ -97,8 +93,7 @@ EFI_STATUS
DetermineRootBridgeAttributes (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
IN PCI_IO_DEVICE *RootBridgeDev
- )
-;
+ );
/**
Get Max Option Rom size on this bridge
@@ -109,8 +104,7 @@ DetermineRootBridgeAttributes (
UINT64
GetMaxOptionRomSize (
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Process attributes of devices on this host bridge
@@ -124,8 +118,7 @@ GetMaxOptionRomSize (
EFI_STATUS
PciHostBridgeDeviceAttribute (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
/**
Get resource allocation status from the ACPI pointer
@@ -147,8 +140,7 @@ GetResourceAllocationStatus (
OUT UINT64 *PMem32ResStatus,
OUT UINT64 *Mem64ResStatus,
OUT UINT64 *PMem64ResStatus
- )
-;
+ );
/**
Remove a PCI device from device pool and mark its bar
@@ -161,8 +153,7 @@ GetResourceAllocationStatus (
EFI_STATUS
RejectPciDevice (
IN PCI_IO_DEVICE *PciDevice
- )
-;
+ );
/**
Determine whethter a PCI device can be rejected
@@ -174,8 +165,7 @@ RejectPciDevice (
BOOLEAN
IsRejectiveDevice (
IN PCI_RESOURCE_NODE *PciResNode
- )
-;
+ );
/**
Compare two resource node and get the larger resource consumer
@@ -189,8 +179,7 @@ PCI_RESOURCE_NODE *
GetLargerConsumerDevice (
IN PCI_RESOURCE_NODE *PciResNode1,
IN PCI_RESOURCE_NODE *PciResNode2
- )
-;
+ );
/**
Get the max resource consumer in the host resource pool
@@ -202,8 +191,7 @@ GetLargerConsumerDevice (
PCI_RESOURCE_NODE *
GetMaxResourceConsumerDevice (
IN PCI_RESOURCE_NODE *ResPool
- )
-;
+ );
/**
Adjust host bridge allocation so as to reduce resource requirement
@@ -231,8 +219,7 @@ PciHostBridgeAdjustAllocation (
IN UINT64 PMem32ResStatus,
IN UINT64 Mem64ResStatus,
IN UINT64 PMem64ResStatus
- )
-;
+ );
/**
Summary requests for all resource type, and contruct ACPI resource
@@ -255,8 +242,7 @@ ConstructAcpiResourceRequestor (
IN PCI_RESOURCE_NODE *Mem64Node,
IN PCI_RESOURCE_NODE *PMem64Node,
OUT VOID **pConfig
- )
-;
+ );
/**
Get resource base from a acpi configuration descriptor.
@@ -278,8 +264,7 @@ GetResourceBase (
OUT UINT64 *PMem32Base,
OUT UINT64 *Mem64Base,
OUT UINT64 *PMem64Base
- )
-;
+ );
/**
Enumerate pci bridge, allocate resource and determine attribute
@@ -293,8 +278,7 @@ GetResourceBase (
EFI_STATUS
PciBridgeEnumerator (
IN PCI_IO_DEVICE *BridgeDev
- )
-;
+ );
/**
Allocate all kinds of resource for bridge
@@ -307,8 +291,7 @@ PciBridgeEnumerator (
EFI_STATUS
PciBridgeResourceAllocator (
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Get resource base address for a pci bridge device
@@ -330,8 +313,7 @@ GetResourceBaseFromBridge (
OUT UINT64 *PMem32Base,
OUT UINT64 *Mem64Base,
OUT UINT64 *PMem64Base
- )
-;
+ );
/**
Process Option Rom on this host bridge
@@ -344,8 +326,7 @@ GetResourceBaseFromBridge (
EFI_STATUS
PciHostBridgeP2CProcess (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
/**
These are the notifications from the PCI bus driver that it is about to enter a certain
@@ -413,8 +394,7 @@ EFI_STATUS
NotifyPhase (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase
- )
-;
+ );
/**
Provides the hooks from the PCI bus driver to every PCI controller (device/function) at various
@@ -450,8 +430,7 @@ PreprocessController (
IN UINT8 Device,
IN UINT8 Func,
IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase
- )
-;
+ );
/**
Hot plug request notify.
@@ -475,8 +454,7 @@ PciHotPlugRequestNotify (
IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL,
IN OUT UINT8 *NumberOfChildren,
IN OUT EFI_HANDLE * ChildHandleBuffer
- )
-;
+ );
/**
Search hostbridge according to given handle
@@ -486,8 +464,7 @@ PciHotPlugRequestNotify (
BOOLEAN
SearchHostBridgeHandle (
IN EFI_HANDLE RootBridgeHandle
- )
-;
+ );
/**
Add host bridge handle to global variable for enumating.
@@ -497,7 +474,6 @@ SearchHostBridgeHandle (
EFI_STATUS
AddHostBridgeEnumerator (
IN EFI_HANDLE HostBridgeHandle
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h
index 19adc04754..ab46b5ac8a 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h
@@ -34,8 +34,7 @@ PciDevicePresent (
UINT8 Bus,
UINT8 Device,
UINT8 Func
- )
-;
+ );
/**
Collect all the resource information under this root bridge
@@ -49,8 +48,7 @@ EFI_STATUS
PciPciDeviceInfoCollector (
IN PCI_IO_DEVICE *Bridge,
UINT8 StartBusNumber
- )
-;
+ );
/**
Seach required device and get PCI device info block
@@ -70,8 +68,7 @@ PciSearchDevice (
UINT8 Device,
UINT8 Func,
PCI_IO_DEVICE **PciDevice
- )
-;
+ );
/**
Create PCI private data for PCI device
@@ -91,8 +88,7 @@ GatherDeviceInfo (
UINT8 Bus,
UINT8 Device,
UINT8 Func
- )
-;
+ );
/**
Create private data for bridge device's PPB.
@@ -112,8 +108,7 @@ GatherPpbInfo (
UINT8 Bus,
UINT8 Device,
UINT8 Func
- )
-;
+ );
/**
Create private data for hotplug bridge device
@@ -133,8 +128,7 @@ GatherP2CInfo (
UINT8 Bus,
UINT8 Device,
UINT8 Func
- )
-;
+ );
/**
Create device path for pci deivce
@@ -148,8 +142,7 @@ EFI_DEVICE_PATH_PROTOCOL *
CreatePciDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Check the bar is existed or not.
@@ -169,8 +162,7 @@ BarExisted (
IN UINTN Offset,
OUT UINT32 *BarLengthValue,
OUT UINT32 *OriginalBarValue
- )
-;
+ );
/**
Test whether the device can support attributes
@@ -190,8 +182,7 @@ PciTestSupportedAttribute (
IN UINT16 *BridgeControl,
IN UINT16 *OldCommand,
IN UINT16 *OldBridgeControl
- )
-;
+ );
/**
Set the supported or current attributes of a PCI device
@@ -208,8 +199,7 @@ PciSetDeviceAttribute (
IN UINT16 Command,
IN UINT16 BridgeControl,
IN UINTN Option
- )
-;
+ );
/**
Determine if the device can support Fast Back to Back attribute
@@ -221,8 +211,7 @@ EFI_STATUS
GetFastBackToBackSupport (
IN PCI_IO_DEVICE *PciIoDevice,
IN UINT8 StatusIndex
- )
-;
+ );
/**
Determine the related attributes of all devices under a Root Bridge
@@ -233,8 +222,7 @@ GetFastBackToBackSupport (
EFI_STATUS
DetermineDeviceAttribute (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
This routine is used to update the bar information for those incompatible PCI device
@@ -245,8 +233,7 @@ DetermineDeviceAttribute (
EFI_STATUS
UpdatePciInfo (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
This routine will update the alignment with the new alignment
@@ -259,8 +246,7 @@ VOID
SetNewAlign (
IN UINT64 *Alignment,
IN UINT64 NewAlignment
- )
-;
+ );
/**
Parse PCI bar bit.
@@ -276,8 +262,7 @@ PciParseBar (
IN PCI_IO_DEVICE *PciIoDevice,
IN UINTN Offset,
IN UINTN BarIndex
- )
-;
+ );
/**
This routine is used to initialize the bar of a PCI device
@@ -288,8 +273,7 @@ PciParseBar (
EFI_STATUS
InitializePciDevice (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Init PPB for bridge device
@@ -299,8 +283,7 @@ InitializePciDevice (
EFI_STATUS
InitializePpb (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Init private data for Hotplug bridge device
@@ -310,8 +293,7 @@ InitializePpb (
EFI_STATUS
InitializeP2C (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Create and initiliaze general PCI I/O device instance for
@@ -332,8 +314,7 @@ CreatePciIoDevice (
UINT8 Bus,
UINT8 Device,
UINT8 Func
- )
-;
+ );
/**
This routine is used to enumerate entire pci bus system
@@ -347,8 +328,7 @@ CreatePciIoDevice (
EFI_STATUS
PciEnumeratorLight (
IN EFI_HANDLE Controller
- )
-;
+ );
/**
Get bus range.
@@ -367,14 +347,12 @@ PciGetBusRange (
OUT UINT16 *MinBus,
OUT UINT16 *MaxBus,
OUT UINT16 *BusRange
- )
-;
+ );
EFI_STATUS
StartManagingRootBridge (
IN PCI_IO_DEVICE *RootBridgeDev
- )
-;
+ );
/**
This routine can be used to check whether a PCI device should be rejected when light enumeration
@@ -388,7 +366,6 @@ StartManagingRootBridge (
BOOLEAN
IsPciDeviceRejected (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h
index 4f5037136c..bc1253d7a1 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h
@@ -43,8 +43,7 @@ EFIAPI
PciHPCInitialized (
IN EFI_EVENT Event,
IN VOID *Context
- )
-;
+ );
/**
Compare two device path
@@ -59,8 +58,7 @@ BOOLEAN
EfiCompareDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1,
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2
- )
-;
+ );
/**
Init hot plug support and root hot plug private data.
@@ -69,8 +67,7 @@ EfiCompareDevicePath (
EFI_STATUS
InitializeHotPlugSupport (
VOID
- )
-;
+ );
/**
Test whether PCI device is hot plug bus.
@@ -83,8 +80,7 @@ InitializeHotPlugSupport (
EFI_STATUS
IsPciHotPlugBus (
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Test whether device path is for root pci hot plug bus
@@ -99,8 +95,7 @@ BOOLEAN
IsRootPciHotPlugBus (
IN EFI_DEVICE_PATH_PROTOCOL *HpbDevicePath,
OUT UINTN *HpIndex
- )
-;
+ );
/**
Test whether device path is for root pci hot plug controller
@@ -115,8 +110,7 @@ BOOLEAN
IsRootPciHotPlugController (
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
OUT UINTN *HpIndex
- )
-;
+ );
/**
Wrapper for creating event object for HPC
@@ -130,8 +124,7 @@ EFI_STATUS
CreateEventForHpc (
IN UINTN HpIndex,
OUT EFI_EVENT *Event
- )
-;
+ );
/**
Wait for all root HPC initialized.
@@ -141,8 +134,7 @@ CreateEventForHpc (
EFI_STATUS
AllRootHPCInitialized (
IN UINTN TimeoutInMicroSeconds
- )
-;
+ );
/**
Check HPC capability register block
@@ -155,8 +147,7 @@ AllRootHPCInitialized (
EFI_STATUS
IsSHPC (
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Get resource padding for hot plug bus
@@ -169,7 +160,6 @@ IsSHPC (
EFI_STATUS
GetResourcePaddingForHpb (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h
index 216ee402fd..f1ac6ed58c 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h
@@ -25,8 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
InitializePciIoInstance (
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Verifies access to a PCI Base Address Register (BAR)
@@ -50,8 +49,7 @@ PciIoVerifyBarAccess (
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
IN UINTN Count,
UINT64 *Offset
- )
-;
+ );
/**
Verifies access to a PCI Config Header
@@ -71,8 +69,7 @@ PciIoVerifyConfigAccess (
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
IN UINTN Count,
IN UINT64 *Offset
- )
-;
+ );
/**
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
@@ -104,8 +101,7 @@ PciIoPollMem (
IN UINT64 Value,
IN UINT64 Delay,
OUT UINT64 *Result
- )
-;
+ );
/**
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
@@ -136,8 +132,7 @@ PciIoPollIo (
IN UINT64 Value,
IN UINT64 Delay,
OUT UINT64 *Result
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
@@ -168,8 +163,7 @@ PciIoMemRead (
IN UINT64 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
@@ -200,8 +194,7 @@ PciIoMemWrite (
IN UINT64 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
@@ -232,8 +225,7 @@ PciIoIoRead (
IN UINT64 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
@@ -264,8 +256,7 @@ PciIoIoWrite (
IN UINT64 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in PCI configuration space.
@@ -293,8 +284,7 @@ PciIoConfigRead (
IN UINT32 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enable a PCI driver to access PCI controller registers in PCI configuration space.
@@ -322,8 +312,7 @@ PciIoConfigWrite (
IN UINT32 Offset,
IN UINTN Count,
IN OUT VOID *Buffer
- )
-;
+ );
/**
Enables a PCI driver to copy one region of PCI memory space to another region of PCI
@@ -363,8 +352,7 @@ PciIoCopyMem (
IN UINT8 SrcBarIndex,
IN UINT64 SrcOffset,
IN UINTN Count
- )
-;
+ );
/**
Provides the PCI controller-Cspecific addresses needed to access system memory.
@@ -394,8 +382,7 @@ PciIoMap (
IN OUT UINTN *NumberOfBytes,
OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,
OUT VOID **Mapping
- )
-;
+ );
/**
Completes the Map() operation and releases any corresponding resources.
@@ -412,8 +399,7 @@ EFIAPI
PciIoUnmap (
IN EFI_PCI_IO_PROTOCOL *This,
IN VOID *Mapping
- )
-;
+ );
/**
Allocates pages that are suitable for an EfiPciIoOperationBusMasterCommonBuffer
@@ -444,8 +430,7 @@ PciIoAllocateBuffer (
IN UINTN Pages,
OUT VOID **HostAddress,
IN UINT64 Attributes
- )
-;
+ );
/**
Frees memory that was allocated with AllocateBuffer().
@@ -465,8 +450,7 @@ PciIoFreeBuffer (
IN EFI_PCI_IO_PROTOCOL *This,
IN UINTN Pages,
IN VOID *HostAddress
- )
-;
+ );
/**
Flushes all PCI posted write transactions from a PCI host bridge to system memory.
@@ -483,8 +467,7 @@ EFI_STATUS
EFIAPI
PciIoFlush (
IN EFI_PCI_IO_PROTOCOL *This
- )
-;
+ );
/**
Retrieves this PCI controller's current PCI bus number, device number, and function number.
@@ -507,8 +490,7 @@ PciIoGetLocation (
OUT UINTN *Bus,
OUT UINTN *Device,
OUT UINTN *Function
- )
-;
+ );
/**
Check BAR type for PCI resource.
@@ -525,8 +507,7 @@ CheckBarType (
IN PCI_IO_DEVICE *PciIoDevice,
UINT8 BarIndex,
PCI_BAR_TYPE BarType
- )
-;
+ );
/**
Set/Disable new attributes to a Root Bridge
@@ -543,8 +524,7 @@ ModifyRootBridgeAttributes (
IN PCI_IO_DEVICE *PciIoDevice,
IN UINT64 Attributes,
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
- )
-;
+ );
/**
Check whether this device can be enable/disable to snoop
@@ -559,8 +539,7 @@ EFI_STATUS
SupportPaletteSnoopAttributes (
IN PCI_IO_DEVICE *PciIoDevice,
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
- )
-;
+ );
/**
Performs an operation on the attributes that this PCI controller supports. The operations include
@@ -588,8 +567,7 @@ PciIoAttributes (
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
IN UINT64 Attributes,
OUT UINT64 *Result OPTIONAL
- )
-;
+ );
/**
Gets the attributes that this PCI controller supports setting on a BAR using
@@ -620,8 +598,7 @@ PciIoGetBarAttributes (
IN UINT8 BarIndex,
OUT UINT64 *Supports, OPTIONAL
OUT VOID **Resources OPTIONAL
- )
-;
+ );
/**
Sets the attributes for a range of a BAR on a PCI controller.
@@ -655,8 +632,7 @@ PciIoSetBarAttributes (
IN UINT8 BarIndex,
IN OUT UINT64 *Offset,
IN OUT UINT64 *Length
- )
-;
+ );
/**
Program parent bridge's attribute recurrently.
@@ -678,8 +654,7 @@ UpStreamBridgesAttributes (
IN PCI_IO_DEVICE *PciIoDevice,
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
IN UINT64 Attributes
- )
-;
+ );
/**
Test whether two Pci device has same parent bridge.
@@ -693,7 +668,6 @@ BOOLEAN
PciDevicesOnTheSamePath (
IN PCI_IO_DEVICE *PciDevice1,
IN PCI_IO_DEVICE *PciDevice2
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h
index 639da70be8..80c3af6c6c 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h
@@ -56,8 +56,7 @@ typedef struct {
void
InstallHotPlugRequestProtocol (
IN EFI_STATUS *Status
- )
-;
+ );
/**
Install protocol gEfiPciHotplugDeviceGuid into hotplug device
@@ -69,8 +68,7 @@ InstallHotPlugRequestProtocol (
VOID
InstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device
@@ -82,8 +80,7 @@ InstallPciHotplugGuid (
VOID
UninstallPciHotplugGuid (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Retrieve the BAR information via PciIo interface
@@ -93,8 +90,7 @@ UninstallPciHotplugGuid (
VOID
GetBackPcCardBar (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Remove rejected pci device from specific root bridge
@@ -109,8 +105,7 @@ EFI_STATUS
RemoveRejectedPciDevices (
EFI_HANDLE RootBridgeHandle,
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Wrapper function for allocating resource for pci host bridge.
@@ -121,20 +116,17 @@ RemoveRejectedPciDevices (
EFI_STATUS
PciHostBridgeResourceAllocator (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
EFI_STATUS
PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
EFI_STATUS
PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
/**
Wapper function of scanning pci bus and assign bus number to the given PCI bus system
@@ -154,8 +146,7 @@ PciScanBus (
IN UINT8 StartBusNumber,
OUT UINT8 *SubBusNumber,
OUT UINT8 *PaddedBusRange
- )
-;
+ );
EFI_STATUS
PciScanBus_WithHotPlugDeviceSupport (
@@ -163,8 +154,7 @@ PciScanBus_WithHotPlugDeviceSupport (
IN UINT8 StartBusNumber,
OUT UINT8 *SubBusNumber,
OUT UINT8 *PaddedBusRange
- )
-;
+ );
EFI_STATUS
PciScanBus_WithoutHotPlugDeviceSupport (
@@ -172,8 +162,7 @@ PciScanBus_WithoutHotPlugDeviceSupport (
IN UINT8 StartBusNumber,
OUT UINT8 *SubBusNumber,
OUT UINT8 *PaddedBusRange
- )
-;
+ );
/**
Process Option Rom on this host bridge
@@ -186,8 +175,7 @@ PciScanBus_WithoutHotPlugDeviceSupport (
EFI_STATUS
PciRootBridgeP2CProcess (
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Process Option Rom on this host bridge
@@ -200,8 +188,7 @@ PciRootBridgeP2CProcess (
EFI_STATUS
PciHostBridgeP2CProcess (
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
/**
This function is used to enumerate the entire host bridge
@@ -217,8 +204,7 @@ PciHostBridgeP2CProcess (
EFI_STATUS
PciHostBridgeEnumerator (
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
- )
-;
+ );
/**
Read PCI configuration space through EFI_PCI_IO_PROTOCOL.
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h
index c2ed590b67..0bb9444e78 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h
@@ -23,8 +23,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
GetOpRomInfo (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Load option rom image for specified PCI device
@@ -39,8 +38,7 @@ EFI_STATUS
LoadOpRomImage (
IN PCI_IO_DEVICE *PciDevice,
IN UINT64 RomBase
- )
-;
+ );
/**
enable/disable oprom decode
@@ -59,8 +57,7 @@ RomDecode (
IN UINT8 RomBarIndex,
IN UINT32 RomBar,
IN BOOLEAN Enable
- )
-;
+ );
/**
Process the oprom image.
@@ -70,7 +67,6 @@ RomDecode (
EFI_STATUS
ProcessOpRomImage (
PCI_IO_DEVICE *PciDevice
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h
index c7dff8c91b..1f15e7403a 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h
@@ -27,7 +27,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
ResetPowerManagementFeature (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h
index b255dc9ca9..028071419d 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h
@@ -71,8 +71,7 @@ EFI_STATUS
SkipVGAAperture (
OUT UINT64 *Start,
IN UINT64 Length
- )
-;
+ );
/**
This function is used to skip ISA aliasing aperture
@@ -86,8 +85,7 @@ EFI_STATUS
SkipIsaAliasAperture (
OUT UINT64 *Start,
IN UINT64 Length
- )
-;
+ );
/**
This function inserts a resource node into the resource list.
@@ -102,8 +100,7 @@ EFI_STATUS
InsertResourceNode (
PCI_RESOURCE_NODE *Bridge,
PCI_RESOURCE_NODE *ResNode
- )
-;
+ );
/**
@@ -130,8 +127,7 @@ MergeResourceTree (
PCI_RESOURCE_NODE *Dst,
PCI_RESOURCE_NODE *Res,
BOOLEAN TypeMerge
- )
-;
+ );
/**
This function is used to calculate the IO16 aperture
@@ -144,8 +140,7 @@ MergeResourceTree (
EFI_STATUS
CalculateApertureIo16 (
IN PCI_RESOURCE_NODE *Bridge
- )
-;
+ );
/**
This function is used to calculate the resource aperture
@@ -158,8 +153,7 @@ CalculateApertureIo16 (
EFI_STATUS
CalculateResourceAperture (
IN PCI_RESOURCE_NODE *Bridge
- )
-;
+ );
/**
Get IO/Memory resource infor for given PCI device
@@ -181,8 +175,7 @@ GetResourceFromDevice (
PCI_RESOURCE_NODE *PMem32Node,
PCI_RESOURCE_NODE *Mem64Node,
PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
This function is used to create a resource node
@@ -202,8 +195,7 @@ CreateResourceNode (
IN UINT8 Bar,
IN PCI_BAR_TYPE ResType,
IN PCI_RESOURCE_USAGE ResUsage
- )
-;
+ );
/**
This routine is used to extract resource request from
@@ -226,8 +218,7 @@ CreateResourceMap (
IN PCI_RESOURCE_NODE *PMem32Node,
IN PCI_RESOURCE_NODE *Mem64Node,
IN PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
This function is used to do the resource padding for a specific platform
@@ -249,8 +240,7 @@ ResourcePaddingPolicy (
PCI_RESOURCE_NODE *PMem32Node,
PCI_RESOURCE_NODE *Mem64Node,
PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
This function is used to degrade resource if the upstream bridge
@@ -275,8 +265,7 @@ DegradeResource (
IN PCI_RESOURCE_NODE *PMem32Node,
IN PCI_RESOURCE_NODE *Mem64Node,
IN PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
Test whether bridge device support decode resource
@@ -291,8 +280,7 @@ BOOLEAN
BridgeSupportResourceDecode (
IN PCI_IO_DEVICE *Bridge,
IN UINT32 Decode
- )
-;
+ );
/**
This function is used to program the resource allocated
@@ -308,8 +296,7 @@ EFI_STATUS
ProgramResource (
IN UINT64 Base,
IN PCI_RESOURCE_NODE *Bridge
- )
-;
+ );
/**
Program Bar register.
@@ -323,8 +310,7 @@ EFI_STATUS
ProgramBar (
IN UINT64 Base,
IN PCI_RESOURCE_NODE *Node
- )
-;
+ );
/**
Program PPB apperture
@@ -338,8 +324,7 @@ EFI_STATUS
ProgramPpbApperture (
IN UINT64 Base,
IN PCI_RESOURCE_NODE *Node
- )
-;
+ );
/**
Program parent bridge for oprom
@@ -355,8 +340,7 @@ ProgrameUpstreamBridgeForRom (
IN PCI_IO_DEVICE *PciDevice,
IN UINT32 OptionRomBase,
IN BOOLEAN Enable
- )
-;
+ );
/**
Test whether resource exists for a bridge
@@ -368,8 +352,7 @@ ProgrameUpstreamBridgeForRom (
BOOLEAN
ResourceRequestExisted (
IN PCI_RESOURCE_NODE *Bridge
- )
-;
+ );
/**
Initialize resource pool structure.
@@ -381,8 +364,7 @@ EFI_STATUS
InitializeResourcePool (
PCI_RESOURCE_NODE *ResourcePool,
PCI_BAR_TYPE ResourceType
- )
-;
+ );
/**
Get all resource information for given Pci device
@@ -414,8 +396,7 @@ GetResourceMap (
PCI_RESOURCE_NODE *PMem32Pool,
PCI_RESOURCE_NODE *Mem64Pool,
PCI_RESOURCE_NODE *PMem64Pool
- )
-;
+ );
/**
Destory given resource tree
@@ -427,8 +408,7 @@ GetResourceMap (
EFI_STATUS
DestroyResourceTree (
IN PCI_RESOURCE_NODE *Bridge
- )
-;
+ );
/**
Record the reserved resource and insert to reserved list.
@@ -444,8 +424,7 @@ RecordReservedResource (
IN UINT64 Length,
IN PCI_BAR_TYPE ResType,
IN PCI_IO_DEVICE *Bridge
- )
-;
+ );
/**
Insert resource padding for P2C
@@ -467,8 +446,7 @@ ResourcePaddingForCardBusBridge (
PCI_RESOURCE_NODE *PMem32Node,
PCI_RESOURCE_NODE *Mem64Node,
PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
Program P2C register for given resource node
@@ -482,8 +460,7 @@ EFI_STATUS
ProgramP2C (
IN UINT64 Base,
IN PCI_RESOURCE_NODE *Node
- )
-;
+ );
/**
Create padding resource node.
@@ -506,8 +483,7 @@ ApplyResourcePadding (
PCI_RESOURCE_NODE *PMem32Node,
PCI_RESOURCE_NODE *Mem64Node,
PCI_RESOURCE_NODE *PMem64Node
- )
-;
+ );
/**
Get padding resource for PPB
@@ -519,8 +495,7 @@ ApplyResourcePadding (
VOID
GetResourcePaddingPpb (
IN PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Reset and all bus number from specific bridge.
@@ -532,7 +507,6 @@ EFI_STATUS
ResetAllPpbBusNumber (
IN PCI_IO_DEVICE *Bridge,
IN UINT8 StartBusNumber
- )
-;
+ );
#endif
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
index 59bff9279f..4e01012d64 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
+++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
@@ -35,8 +35,7 @@ PciRomAddImageMapping (
IN UINT8 Func,
IN UINT64 RomAddress,
IN UINT64 RomLength
- )
-;
+ );
/**
Load all option rom image to PCI driver list.
@@ -49,8 +48,7 @@ PciRomGetRomResourceFromPciOptionRomTable (
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
/**
Get Option rom driver's mapping for PCI device.
@@ -61,7 +59,6 @@ PciRomGetRomResourceFromPciOptionRomTable (
EFI_STATUS
PciRomGetImageMapping (
PCI_IO_DEVICE *PciIoDevice
- )
-;
+ );
#endif