Copyright (C) 2012, Red Hat, Inc.\r
Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
Copyright (C) 2013, ARM Ltd.\r
+ Copyright (C) 2017, AMD Inc, All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
VirtioPciGetDeviceStatus, // GetDeviceStatus\r
VirtioPciSetDeviceStatus, // SetDeviceStatus\r
VirtioPciDeviceWrite, // WriteDevice\r
- VirtioPciDeviceRead // ReadDevice\r
+ VirtioPciDeviceRead, // ReadDevice\r
+ VirtioPciAllocateSharedPages, // AllocateSharedPages\r
+ VirtioPciFreeSharedPages, // FreeSharedPages\r
+ VirtioPciMapSharedBuffer, // MapSharedBuffer\r
+ VirtioPciUnmapSharedBuffer, // UnmapSharedBuffer\r
};\r
\r
/**\r
goto ClosePciIo;\r
}\r
\r
- Status = Device->PciIo->Attributes (Device->PciIo,\r
- EfiPciIoAttributeOperationEnable,\r
- EFI_PCI_IO_ATTRIBUTE_IO, NULL);\r
+ Status = Device->PciIo->Attributes (\r
+ Device->PciIo,\r
+ EfiPciIoAttributeOperationEnable,\r
+ (EFI_PCI_IO_ATTRIBUTE_IO |\r
+ EFI_PCI_IO_ATTRIBUTE_BUS_MASTER),\r
+ NULL\r
+ );\r
if (EFI_ERROR (Status)) {\r
goto ClosePciIo;\r
}\r