UINT8 Mn[41];\r
\r
//\r
- // Save original PCI attributes and enable this controller.\r
+ // Enable this controller.\r
//\r
PciIo = Private->PciIo;\r
- Status = PciIo->Attributes (\r
- PciIo,\r
- EfiPciIoAttributeOperationGet,\r
- 0,\r
- &Private->PciAttributes\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
-\r
Status = PciIo->Attributes (\r
PciIo,\r
EfiPciIoAttributeOperationSupported,\r
return Status;\r
}\r
\r
- //\r
- // Enable 64-bit DMA support in the PCI layer.\r
- //\r
- Status = PciIo->Attributes (\r
- PciIo,\r
- EfiPciIoAttributeOperationEnable,\r
- EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE,\r
- NULL\r
- );\r
- if (EFI_ERROR (Status)) {\r
- DEBUG ((DEBUG_WARN, "NvmeControllerInit: failed to enable 64-bit DMA (%r)\n", Status));\r
- }\r
-\r
//\r
// Read the Controller Capabilities register and verify that the NVM command set is supported\r
//\r