Use BIT22 instead of SMBUS_LIB_PEC_BIT
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6108 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
#define SMBUS_LIB_ADDRESS(SlaveAddress,Command,Length,Pec) \
|
#define SMBUS_LIB_ADDRESS(SlaveAddress,Command,Length,Pec) \
|
||||||
( ((Pec) ? SMBUS_LIB_PEC_BIT: 0) | \
|
( ((Pec) ? BIT22: 0) | \
|
||||||
(((SlaveAddress) & 0x7f) << 1) | \
|
(((SlaveAddress) & 0x7f) << 1) | \
|
||||||
(((Command) & 0xff) << 8) | \
|
(((Command) & 0xff) << 8) | \
|
||||||
(((Length) & 0x3f) << 16) \
|
(((Length) & 0x3f) << 16) \
|
||||||
|
Reference in New Issue
Block a user