-//\r
-// Declare macro to convert PCI Library formatted address to CF8 formatted address\r
-//\r
-// PCI Library formatted address CF8 Formatted Address\r
-// ============================= ======================\r
-// Bits 00..11 Register Bits 00..07 Register\r
-// Bits 12..14 Function Bits 08..10 Function\r
-// Bits 15..19 Device Bits 11..15 Device\r
-// Bits 20..27 Bus Bits 16..23 Bus\r
-// Bits 28..31 Reserved(MBZ) Bits 24..30 Reserved(MBZ)\r
-// Bits 31..31 Must be 1\r
-//\r
+/**\r
+ Convert a PCI Library address to PCI CF8 formatted address.\r
+\r
+ Declare macro to convert PCI Library address to PCI CF8 formatted address.\r
+ Bit fields of PCI Library and CF8 formatted address is as follows:\r
+ PCI Library formatted address CF8 Formatted Address\r
+ ============================= ======================\r
+ Bits 00..11 Register Bits 00..07 Register\r
+ Bits 12..14 Function Bits 08..10 Function\r
+ Bits 15..19 Device Bits 11..15 Device\r
+ Bits 20..27 Bus Bits 16..23 Bus\r
+ Bits 28..31 Reserved(MBZ) Bits 24..30 Reserved(MBZ)\r
+ Bits 31..31 Must be 1\r
+\r
+ @param A The address to convert.\r
+\r
+ @retval The coverted address.\r
+\r
+**/\r
+#define PCI_TO_CF8_ADDRESS(A) \\r
+ ((UINT32) ((((A) >> 4) & 0x00ffff00) | ((A) & 0xfc) | 0x80000000))\r