mirror of https://github.com/acidanthera/audk.git
Refine PCI Segment Library to avoid possible intrinsic function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7752 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
053b13f296
commit
f5305d5a99
|
@ -42,7 +42,7 @@
|
|||
|
||||
**/
|
||||
#define PCI_TO_PCICFG2_ADDRESS(A) \
|
||||
((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
|
||||
((((UINT32)(A) << 4) & 0xff000000) | (((UINT32)(A) >> 4) & 0x00000700) | (((UINT32)(A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
|
||||
|
||||
/**
|
||||
Gets PCI CFG2 PPI.
|
||||
|
|
|
@ -54,6 +54,6 @@ typedef struct {
|
|||
|
||||
**/
|
||||
#define PCI_TO_PCI_ROOT_BRIDGE_IO_ADDRESS(A) \
|
||||
((((A) << 4) & 0xff000000) | (((A) >> 4) & 0x00000700) | (((A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
|
||||
((((UINT32)(A) << 4) & 0xff000000) | (((UINT32)(A) >> 4) & 0x00000700) | (((UINT32)(A) << 1) & 0x001f0000) | (LShiftU64((A) & 0xfff, 32)))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue