]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskNVData.h
MdeModulePkg/RamDiskDxe: Add Memory Type selection support in Ramdisk HII
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / RamDiskDxe / RamDiskNVData.h
1 /** @file
2 Header file for NV data structure definition.
3
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef _RAM_DISK_NVDATA_H_
17 #define _RAM_DISK_NVDATA_H_
18
19 #include <Guid/HiiPlatformSetupFormset.h>
20 #include <Guid/RamDiskHii.h>
21
22 #define MAIN_FORM_ID 0x1000
23 #define MAIN_GOTO_FILE_EXPLORER_ID 0x1001
24 #define MAIN_REMOVE_RD_QUESTION_ID 0x1002
25 #define MAIN_LABEL_LIST_START 0x1003
26 #define MAIN_LABEL_LIST_END 0x1004
27 #define MAIN_CHECKBOX_QUESTION_ID_START 0x1100
28
29 #define CREATE_RAW_RAM_DISK_FORM_ID 0x2000
30 #define CREATE_RAW_SIZE_QUESTION_ID 0x2001
31 #define CREATE_RAW_SUBMIT_QUESTION_ID 0x2002
32 #define CREATE_RAW_DISCARD_QUESTION_ID 0x2003
33 #define CREATE_RAW_MEMORY_TYPE_QUESTION_ID 0x2004
34
35 #define RAM_DISK_BOOT_SERVICE_DATA_MEMORY 0x00
36 #define RAM_DISK_RESERVED_MEMORY 0x01
37 #define RAM_DISK_MEMORY_TYPE_MAX 0x02
38
39 typedef struct {
40 //
41 // The size of the RAM disk to be created.
42 //
43 UINT64 Size;
44 //
45 // Selected RAM Disk Memory Type
46 //
47 UINT8 MemType;
48 } RAM_DISK_CONFIGURATION;
49
50 #endif