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>
return EFI_NOT_FOUND;\r
}\r
\r
return EFI_NOT_FOUND;\r
}\r
\r
- BarIndex -= Dev->BarOffset;\r
+ BarIndex -= (UINT8)Dev->BarOffset;\r
\r
for (Desc = Dev->Device->Resources;\r
Desc->Desc != ACPI_END_TAG_DESCRIPTOR;\r
\r
for (Desc = Dev->Device->Resources;\r
Desc->Desc != ACPI_END_TAG_DESCRIPTOR;\r
PciIoPollMem (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPollMem (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPollIo (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPollIo (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoMemRW (\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
IN UINTN Count,\r
PciIoMemRW (\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
IN UINTN Count,\r
PciIoMemRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoMemRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoMemWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoMemWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoIoRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoIoRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoIoWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoIoWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPciRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPciRead (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPciWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoPciWrite (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoCopyMem (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
PciIoCopyMem (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,\r
CoherentPciIoMap (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_OPERATION Operation,\r
CoherentPciIoMap (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_OPERATION Operation,\r
CoherentPciIoUnmap (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN VOID *Mapping\r
CoherentPciIoUnmap (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN VOID *Mapping\r
CoherentPciIoAllocateBuffer (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_ALLOCATE_TYPE Type,\r
CoherentPciIoAllocateBuffer (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_ALLOCATE_TYPE Type,\r
CoherentPciIoFreeBuffer (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINTN Pages,\r
CoherentPciIoFreeBuffer (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINTN Pages,\r
PciIoFlush (\r
IN EFI_PCI_IO_PROTOCOL *This\r
)\r
PciIoFlush (\r
IN EFI_PCI_IO_PROTOCOL *This\r
)\r
PciIoGetLocation (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
OUT UINTN *SegmentNumber,\r
PciIoGetLocation (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
OUT UINTN *SegmentNumber,\r
PciIoAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,\r
PciIoAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,\r
PciIoGetBarAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINT8 BarIndex,\r
PciIoGetBarAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINT8 BarIndex,\r
PciIoSetBarAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINT64 Attributes,\r
PciIoSetBarAttributes (\r
IN EFI_PCI_IO_PROTOCOL *This,\r
IN UINT64 Attributes,\r