EFI_LOCK_STATE Lock;\r
} EFI_LOCK;\r
\r
-\r
/**\r
Macro that returns the number of 100 ns units for a specified number of microseconds.\r
Useful for managing EFI timer events.\r
**/\r
#define EFI_TIMER_PERIOD_MICROSECONDS(Microseconds) MultU64x32((UINT64)(Microseconds), 10)\r
\r
-\r
/**\r
Macro that returns the number of 100 ns units for a specified number of milliseoconds.\r
Useful for managing EFI timer events.\r
**/\r
#define EFI_TIMER_PERIOD_MILLISECONDS(Milliseconds) MultU64x32((UINT64)(Milliseconds), 10000)\r
\r
-\r
/**\r
Macro that returns the number of 100 ns units for a specified number of seoconds.\r
Useful for managing EFI timer events.\r
**/\r
#define EFI_TIMER_PERIOD_SECONDS(Seconds) MultU64x32((UINT64)(Seconds), 10000000)\r
\r
+/**\r
+ Macro that returns the a pointer to the next EFI_MEMORY_DESCRIPTOR in an array \r
+ returned from GetMemoryMap(). \r
+\r
+ @param MemoryDescriptor Pointer tot he current EFI_MEMORY_DESCRIPTOR.\r
+\r
+ @param Size The size, in bytes, of the current EFI_MEMORY_DESCRIPTOR.\r
+\r
+ @return A pointer to the next EFI_MEMORY_DESCRIPTOR.\r
+\r
+**/\r
+#define NEXT_MEMORY_DESCRIPTOR(MemoryDescriptor, Size) \\r
+ ((EFI_MEMORY_DESCRIPTOR *)((UINT8 *)(MemoryDescriptor) + (Size)))\r
\r
/**\r
Retrieves a pointer to the system configuration table from the EFI System Table\r