]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Universal/GenericMemoryTest/Dxe/Common.h
Convert backslashes to forward slashes in many build files. This is necessary for...
[mirror_edk2.git] / EdkModulePkg / Universal / GenericMemoryTest / Dxe / Common.h
1 /*++
2
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
8
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.
11
12 Module Name:
13
14 Common.h
15
16 Abstract:
17 The generic memory test driver definition
18
19 --*/
20
21 #ifndef _COMMON_H
22 #define _COMMON_H
23
24 //
25 // Some global define
26 //
27 #define GENERIC_CACHELINE_SIZE 0x40
28
29 //
30 // The SPARSE_SPAN_SIZE size can not small then the MonoTestSize
31 //
32 #define TEST_BLOCK_SIZE 0x2000000
33 #define QUICK_SPAN_SIZE (TEST_BLOCK_SIZE >> 2)
34 #define SPARSE_SPAN_SIZE (TEST_BLOCK_SIZE >> 4)
35
36 //
37 // This structure records every nontested memory range parsed through GCD
38 // service.
39 //
40 #define EFI_NONTESTED_MEMORY_RANGE_SIGNATURE EFI_SIGNATURE_32 ('N', 'T', 'M', 'E')
41 typedef struct {
42 UINTN Signature;
43 LIST_ENTRY Link;
44 EFI_PHYSICAL_ADDRESS StartAddress;
45 UINT64 Length;
46 UINT64 Capabilities;
47 BOOLEAN Above4G;
48 BOOLEAN AlreadyMapped;
49 } NONTESTED_MEMORY_RANGE;
50
51 #define NONTESTED_MEMORY_RANGE_FROM_LINK(link) \
52 CR(link, NONTESTED_MEMORY_RANGE, Link, EFI_NONTESTED_MEMORY_RANGE_SIGNATURE)
53
54 //
55 // This is the memory test driver's structure definition
56 //
57 #define EFI_GENERIC_MEMORY_TEST_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('G', 'E', 'M', 'T')
58
59 #endif