summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 06:09:37 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-11 06:09:37 +0000
commit36dadb8a63aa7a0f4499a9e1f67a176b87fb98c7 (patch)
treeac3c4dbd42568db0d0f4a57b52aed6e857761f3d /MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
parent4489c1fa437be9e664e0ddc104535c88928e1074 (diff)
downloadedk2-platforms-36dadb8a63aa7a0f4499a9e1f67a176b87fb98c7.tar.xz
1) Update file header.
2) Make use of standard macro defined in MdePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6988 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h')
-rw-r--r--MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
index 8c20cf26ba..5b686bc77a 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
+++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.h
@@ -70,11 +70,8 @@ extern UINT8 InventoryBin[];
//
extern UINT8 DriverSampleStrings[];
-#define VAR_OFFSET(Field) \
- ((UINT16) ((UINTN) &(((DRIVER_SAMPLE_CONFIGURATION *) 0)->Field)))
-
-#define DYNAMIC_ONE_OF_VAR_OFFSET VAR_OFFSET (DynamicOneof)
-#define DYNAMIC_ORDERED_LIST_VAR_OFFSET VAR_OFFSET (DynamicOrderedList)
+#define DYNAMIC_ONE_OF_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOneof)
+#define DYNAMIC_ORDERED_LIST_VAR_OFFSET OFFSET_OF (DRIVER_SAMPLE_CONFIGURATION, DynamicOrderedList)
#define DRIVER_SAMPLE_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('D', 'S', 'p', 's')