summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Library/PciCf8Lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Library/PciCf8Lib.h')
-rw-r--r--MdePkg/Include/Library/PciCf8Lib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/MdePkg/Include/Library/PciCf8Lib.h b/MdePkg/Include/Library/PciCf8Lib.h
index e2808418fa..13af84ed34 100644
--- a/MdePkg/Include/Library/PciCf8Lib.h
+++ b/MdePkg/Include/Library/PciCf8Lib.h
@@ -17,7 +17,6 @@
#ifndef __PCI_CF8_LIB_H__
#define __PCI_CF8_LIB_H__
-#include <Library/PciLib.h>
/**
Macro that converts PCI Bus, PCI Device, PCI Function and PCI Register to an
@@ -36,7 +35,7 @@
**/
#define PCI_CF8_LIB_ADDRESS(Bus,Device,Function,Offset) \
- PCI_LIB_ADDRESS (Bus, Device, Function, Offset)
+ (((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
/**
Reads an 8-bit PCI configuration register.