Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/SmbusLib.h
- Timestamp:
- Apr 14, 2023 3:17:44 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156854
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/SmbusLib.h
r80721 r99404 25 25 26 26 **/ 27 #define SMBUS_LIB_ADDRESS(SlaveAddress, Command,Length,Pec) \27 #define SMBUS_LIB_ADDRESS(SlaveAddress, Command, Length, Pec) \ 28 28 ( ((Pec) ? BIT22: 0) | \ 29 29 (((SlaveAddress) & 0x7f) << 1) | \ … … 37 37 @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC 38 38 **/ 39 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress) 39 #define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress) (((SmBusAddress) >> 1) & 0x7f) 40 40 41 41 /** … … 44 44 @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC 45 45 **/ 46 #define SMBUS_LIB_COMMAND(SmBusAddress) 46 #define SMBUS_LIB_COMMAND(SmBusAddress) (((SmBusAddress) >> 8) & 0xff) 47 47 48 48 /** … … 51 51 @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC 52 52 **/ 53 #define SMBUS_LIB_LENGTH(SmBusAddress) 53 #define SMBUS_LIB_LENGTH(SmBusAddress) (((SmBusAddress) >> 16) & 0x3f) 54 54 55 55 /** … … 58 58 @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC 59 59 **/ 60 #define SMBUS_LIB_PEC(SmBusAddress) 60 #define SMBUS_LIB_PEC(SmBusAddress) ((BOOLEAN) (((SmBusAddress) & BIT22) != 0)) 61 61 62 62 /** … … 65 65 @param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC 66 66 **/ 67 #define SMBUS_LIB_RESERVED(SmBusAddress) 67 #define SMBUS_LIB_RESERVED(SmBusAddress) ((SmBusAddress) & ~(BIT23 - 2)) 68 68 69 69 /** … … 94 94 EFIAPI 95 95 SmBusQuickRead ( 96 IN UINTN 97 OUT RETURN_STATUS 96 IN UINTN SmBusAddress, 97 OUT RETURN_STATUS *Status OPTIONAL 98 98 ); 99 99 … … 125 125 EFIAPI 126 126 SmBusQuickWrite ( 127 IN UINTN 128 OUT RETURN_STATUS 127 IN UINTN SmBusAddress, 128 OUT RETURN_STATUS *Status OPTIONAL 129 129 ); 130 130 … … 488 488 ); 489 489 490 491 490 #endif
Note:
See TracChangeset
for help on using the changeset viewer.