3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 The generic memory test driver definition
27 #define GENERIC_CACHELINE_SIZE 0x40
30 // The SPARSE_SPAN_SIZE size can not small then the MonoTestSize
32 #define TEST_BLOCK_SIZE 0x2000000
33 #define QUICK_SPAN_SIZE (TEST_BLOCK_SIZE >> 2)
34 #define SPARSE_SPAN_SIZE (TEST_BLOCK_SIZE >> 4)
37 // This structure records every nontested memory range parsed through GCD
40 #define EFI_NONTESTED_MEMORY_RANGE_SIGNATURE EFI_SIGNATURE_32 ('N', 'T', 'M', 'E')
44 EFI_PHYSICAL_ADDRESS StartAddress
;
48 BOOLEAN AlreadyMapped
;
49 } NONTESTED_MEMORY_RANGE
;
51 #define NONTESTED_MEMORY_RANGE_FROM_LINK(link) \
52 CR(link, NONTESTED_MEMORY_RANGE, Link, EFI_NONTESTED_MEMORY_RANGE_SIGNATURE)
55 // This is the memory test driver's structure definition
57 #define EFI_GENERIC_MEMORY_TEST_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('G', 'E', 'M', 'T')