if (Write) {\r
switch (OperationWidth) {\r
case EfiPciWidthUint8:\r
- IoWrite8 ((UINTN)Address, *Uint8Buffer);\r
+ MmioWrite8 ((UINTN)Address, *Uint8Buffer);\r
break;\r
case EfiPciWidthUint16:\r
- IoWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer));\r
+ MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer));\r
break;\r
case EfiPciWidthUint32:\r
- IoWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer));\r
+ MmioWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer));\r
break;\r
default:\r
//\r
} else {\r
switch (OperationWidth) {\r
case EfiPciWidthUint8:\r
- *Uint8Buffer = IoRead8 ((UINTN)Address);\r
+ *Uint8Buffer = MmioRead8 ((UINTN)Address);\r
break;\r
case EfiPciWidthUint16:\r
- *((UINT16 *)Uint8Buffer) = IoRead16 ((UINTN)Address);\r
+ *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address);\r
break;\r
case EfiPciWidthUint32:\r
- *((UINT32 *)Uint8Buffer) = IoRead32 ((UINTN)Address);\r
+ *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address);\r
break;\r
default:\r
//\r