mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/NonDiscoverablePciDevice: add missing cast and EFIAPI modifiers
Add missing EFIAPI modifiers to the functions that are exposed via the PCI I/O protocol. At the same time, add a missing UINT8 cast which breaks the build on Visual Studio. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
parent
860d9bdd8c
commit
8b78de74dc
|
@ -43,7 +43,7 @@ GetBarResource (
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
BarIndex -= Dev->BarOffset;
|
BarIndex -= (UINT8)Dev->BarOffset;
|
||||||
|
|
||||||
for (Desc = Dev->Device->Resources;
|
for (Desc = Dev->Device->Resources;
|
||||||
Desc->Desc != ACPI_END_TAG_DESCRIPTOR;
|
Desc->Desc != ACPI_END_TAG_DESCRIPTOR;
|
||||||
|
@ -61,6 +61,7 @@ GetBarResource (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoPollMem (
|
PciIoPollMem (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -78,6 +79,7 @@ PciIoPollMem (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoPollIo (
|
PciIoPollIo (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -95,6 +97,7 @@ PciIoPollIo (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoMemRW (
|
PciIoMemRW (
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
|
@ -145,6 +148,7 @@ PciIoMemRW (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoMemRead (
|
PciIoMemRead (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -211,6 +215,7 @@ PciIoMemRead (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoMemWrite (
|
PciIoMemWrite (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -277,6 +282,7 @@ PciIoMemWrite (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoIoRead (
|
PciIoIoRead (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -292,6 +298,7 @@ PciIoIoRead (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoIoWrite (
|
PciIoIoWrite (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -307,6 +314,7 @@ PciIoIoWrite (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoPciRead (
|
PciIoPciRead (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -342,6 +350,7 @@ PciIoPciRead (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoPciWrite (
|
PciIoPciWrite (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -369,6 +378,7 @@ PciIoPciWrite (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoCopyMem (
|
PciIoCopyMem (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
|
@ -385,6 +395,7 @@ PciIoCopyMem (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
CoherentPciIoMap (
|
CoherentPciIoMap (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_OPERATION Operation,
|
IN EFI_PCI_IO_PROTOCOL_OPERATION Operation,
|
||||||
|
@ -450,6 +461,7 @@ CoherentPciIoMap (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
CoherentPciIoUnmap (
|
CoherentPciIoUnmap (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN VOID *Mapping
|
IN VOID *Mapping
|
||||||
|
@ -472,6 +484,7 @@ CoherentPciIoUnmap (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
CoherentPciIoAllocateBuffer (
|
CoherentPciIoAllocateBuffer (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_ALLOCATE_TYPE Type,
|
IN EFI_ALLOCATE_TYPE Type,
|
||||||
|
@ -513,6 +526,7 @@ CoherentPciIoAllocateBuffer (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
CoherentPciIoFreeBuffer (
|
CoherentPciIoFreeBuffer (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN UINTN Pages,
|
IN UINTN Pages,
|
||||||
|
@ -526,6 +540,7 @@ CoherentPciIoFreeBuffer (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoFlush (
|
PciIoFlush (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This
|
IN EFI_PCI_IO_PROTOCOL *This
|
||||||
)
|
)
|
||||||
|
@ -535,6 +550,7 @@ PciIoFlush (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoGetLocation (
|
PciIoGetLocation (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
OUT UINTN *SegmentNumber,
|
OUT UINTN *SegmentNumber,
|
||||||
|
@ -560,6 +576,7 @@ PciIoGetLocation (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoAttributes (
|
PciIoAttributes (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
||||||
|
@ -616,6 +633,7 @@ PciIoAttributes (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoGetBarAttributes (
|
PciIoGetBarAttributes (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN UINT8 BarIndex,
|
IN UINT8 BarIndex,
|
||||||
|
@ -666,6 +684,7 @@ PciIoGetBarAttributes (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
PciIoSetBarAttributes (
|
PciIoSetBarAttributes (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN UINT64 Attributes,
|
IN UINT64 Attributes,
|
||||||
|
|
Loading…
Reference in New Issue