summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-09 14:35:34 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-09 14:35:34 +0000
commit27a57d47352665aa68fb6e3f7e0143156261b8f8 (patch)
tree96f846036cdbac630e78e1603d735968be3a970c /MdePkg
parent2cf14c7c93640f2aa8296fbc36b257ef31057d9a (diff)
downloadedk2-27a57d47352665aa68fb6e3f7e0143156261b8f8.tar.gz
edk2-27a57d47352665aa68fb6e3f7e0143156261b8f8.tar.bz2
edk2-27a57d47352665aa68fb6e3f7e0143156261b8f8.zip
Move common smbus structure from Smbus PPI to Industry Standard Smbus.h shared between Smbus PPI and Protocol
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6937 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/IndustryStandard/SmBus.h13
-rw-r--r--MdePkg/Include/Ppi/Smbus2.h14
2 files changed, 13 insertions, 14 deletions
diff --git a/MdePkg/Include/IndustryStandard/SmBus.h b/MdePkg/Include/IndustryStandard/SmBus.h
index fd2c253464..1fe7a9680b 100644
--- a/MdePkg/Include/IndustryStandard/SmBus.h
+++ b/MdePkg/Include/IndustryStandard/SmBus.h
@@ -41,6 +41,19 @@ typedef struct {
UINTN SmbusDeviceAddress : 7;
} EFI_SMBUS_DEVICE_ADDRESS;
+typedef struct {
+ ///
+ /// The SMBUS hardware address to which the SMBUS device is preassigned or
+ /// allocated. Type EFI_SMBUS_DEVICE_ADDRESS is defined in EFI_PEI_SMBUS2_PPI.Execute().
+ ///
+ EFI_SMBUS_DEVICE_ADDRESS SmbusDeviceAddress;
+ ///
+ /// The SMBUS Unique Device Identifier (UDID) as defined in EFI_SMBUS_UDID.
+ /// Type EFI_SMBUS_UDID is defined in EFI_PEI_SMBUS2_PPI.ArpDevice().
+ ///
+ EFI_SMBUS_UDID SmbusDeviceUdid;
+} EFI_SMBUS_DEVICE_MAP;
+
///
/// Smbus Operations
///
diff --git a/MdePkg/Include/Ppi/Smbus2.h b/MdePkg/Include/Ppi/Smbus2.h
index 175b2b70a7..091d5e29ae 100644
--- a/MdePkg/Include/Ppi/Smbus2.h
+++ b/MdePkg/Include/Ppi/Smbus2.h
@@ -115,20 +115,6 @@ EFI_STATUS
IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL
);
-
-typedef struct {
- ///
- /// The SMBUS hardware address to which the SMBUS device is preassigned or
- /// allocated. Type EFI_SMBUS_DEVICE_ADDRESS is defined in EFI_PEI_SMBUS2_PPI.Execute().
- ///
- EFI_SMBUS_DEVICE_ADDRESS SmbusDeviceAddress;
- ///
- /// The SMBUS Unique Device Identifier (UDID) as defined in EFI_SMBUS_UDID.
- /// Type EFI_SMBUS_UDID is defined in EFI_PEI_SMBUS2_PPI.ArpDevice().
- ///
- EFI_SMBUS_UDID SmbusDeviceUdid;
-} EFI_SMBUS_DEVICE_MAP;
-
/**
The GetArpMap() function returns the mapping of all the SMBus devices
that are enumerated by the SMBus host driver.