git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*++
 | |
| 
 | |
| Copyright (c) 2006, Intel Corporation                                                         
 | |
| All rights reserved. This program and the accompanying materials                          
 | |
| are licensed and made available under the terms and conditions of the BSD License         
 | |
| which accompanies this distribution.  The full text of the license may be found at        
 | |
| http://opensource.org/licenses/bsd-license.php                                            
 | |
|                                                                                           
 | |
| THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
 | |
| WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
 | |
| 
 | |
| Module Name:
 | |
|   
 | |
|     Common.h
 | |
|   
 | |
| Abstract:
 | |
|   The generic memory test driver definition
 | |
| 
 | |
| --*/
 | |
| 
 | |
| #ifndef _COMMON_H
 | |
| #define _COMMON_H
 | |
| 
 | |
| //
 | |
| // Some global define
 | |
| //
 | |
| #define GENERIC_CACHELINE_SIZE  0x40
 | |
| 
 | |
| //
 | |
| // The SPARSE_SPAN_SIZE size can not small then the MonoTestSize
 | |
| //
 | |
| #define TEST_BLOCK_SIZE   0x2000000
 | |
| #define QUICK_SPAN_SIZE   (TEST_BLOCK_SIZE >> 2)
 | |
| #define SPARSE_SPAN_SIZE  (TEST_BLOCK_SIZE >> 4)
 | |
| 
 | |
| //
 | |
| // This structure records every nontested memory range parsed through GCD
 | |
| // service.
 | |
| //
 | |
| #define EFI_NONTESTED_MEMORY_RANGE_SIGNATURE  EFI_SIGNATURE_32 ('N', 'T', 'M', 'E')
 | |
| typedef struct {
 | |
|   UINTN                 Signature;
 | |
|   LIST_ENTRY            Link;
 | |
|   EFI_PHYSICAL_ADDRESS  StartAddress;
 | |
|   UINT64                Length;
 | |
|   UINT64                Capabilities;
 | |
|   BOOLEAN               Above4G;
 | |
|   BOOLEAN               AlreadyMapped;
 | |
| } NONTESTED_MEMORY_RANGE;
 | |
| 
 | |
| #define NONTESTED_MEMORY_RANGE_FROM_LINK(link) \
 | |
|         CR(link, NONTESTED_MEMORY_RANGE, Link, EFI_NONTESTED_MEMORY_RANGE_SIGNATURE)
 | |
| 
 | |
| //
 | |
| // This is the memory test driver's structure definition
 | |
| //
 | |
| #define EFI_GENERIC_MEMORY_TEST_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('G', 'E', 'M', 'T')
 | |
| 
 | |
| #endif
 |