]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | Common.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | The generic memory test driver definition\r | |
18 | \r | |
19 | --*/\r | |
20 | \r | |
21 | #ifndef _COMMON_H\r | |
22 | #define _COMMON_H\r | |
23 | \r | |
24 | //\r | |
25 | // Some global define\r | |
26 | //\r | |
27 | #define GENERIC_CACHELINE_SIZE 0x40\r | |
28 | \r | |
29 | //\r | |
30 | // The SPARSE_SPAN_SIZE size can not small then the MonoTestSize\r | |
31 | //\r | |
32 | #define TEST_BLOCK_SIZE 0x2000000\r | |
33 | #define QUICK_SPAN_SIZE (TEST_BLOCK_SIZE >> 2)\r | |
34 | #define SPARSE_SPAN_SIZE (TEST_BLOCK_SIZE >> 4)\r | |
35 | \r | |
36 | //\r | |
37 | // This structure records every nontested memory range parsed through GCD\r | |
38 | // service.\r | |
39 | //\r | |
40 | #define EFI_NONTESTED_MEMORY_RANGE_SIGNATURE EFI_SIGNATURE_32 ('N', 'T', 'M', 'E')\r | |
41 | typedef struct {\r | |
42 | UINTN Signature;\r | |
43 | LIST_ENTRY Link;\r | |
44 | EFI_PHYSICAL_ADDRESS StartAddress;\r | |
45 | UINT64 Length;\r | |
46 | UINT64 Capabilities;\r | |
47 | BOOLEAN Above4G;\r | |
48 | BOOLEAN AlreadyMapped;\r | |
49 | } NONTESTED_MEMORY_RANGE;\r | |
50 | \r | |
51 | #define NONTESTED_MEMORY_RANGE_FROM_LINK(link) \\r | |
52 | CR(link, NONTESTED_MEMORY_RANGE, Link, EFI_NONTESTED_MEMORY_RANGE_SIGNATURE)\r | |
53 | \r | |
54 | //\r | |
55 | // This is the memory test driver's structure definition\r | |
56 | //\r | |
57 | #define EFI_GENERIC_MEMORY_TEST_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('G', 'E', 'M', 'T')\r | |
58 | \r | |
59 | #endif\r |