UEFITool/common/types.h
Nikolaj Schlej 40200bca12 Support for _FDC and Fsys NVRAM formats
- only one format remains - EVSA
- added scope to text search UI, because of NVRAM variables having texts
in headers
2016-04-05 00:47:34 +02:00

117 lines
No EOL
2.4 KiB
C++

/* types.h
Copyright (c) 2016, Nikolaj Schlej. 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.
*/
#ifndef __TYPES_H__
#define __TYPES_H__
#include "basetypes.h"
// Actions
namespace Actions
{
enum ActionTypes {
NoAction = 50,
Erase,
Create,
Insert,
Replace,
Remove,
Rebuild,
Rebase
};
}
// Types
namespace Types {
enum ItemTypes {
Root = 60,
Capsule,
Image,
Region,
Padding,
Volume,
File,
Section,
FreeSpace,
NvramVariableNvar,
NvramStorageVss,
NvramStorageFdc,
NvramStorageFsys,
NvramVariableVss,
NvramVariableFsys
};
}
namespace Subtypes {
enum ImageSubtypes{
IntelImage = 70,
UefiImage
};
enum CapsuleSubtypes {
AptioSignedCapsule = 80,
AptioUnsignedCapsule,
UefiCapsule,
ToshibaCapsule
};
enum VolumeSubtypes {
UnknownVolume = 90,
Ffs2Volume,
Ffs3Volume,
VssNvramVolume
};
enum RegionSubtypes {
DescriptorRegion = 0,
BiosRegion,
MeRegion,
GbeRegion,
PdrRegion,
Reserved1Region,
Reserved2Region,
Reserved3Region,
EcRegion,
Reserved4Region
};
enum PaddingSubtypes {
ZeroPadding = 110,
OnePadding,
DataPadding
};
enum NvarVariableSubtypes {
InvalidNvar = 120,
InvalidLinkNvar,
LinkNvar,
DataNvar,
FullNvar
};
enum VssVariableSubtypes {
InvalidVss = 130,
StandardVss,
AppleCrc32Vss,
AuthVss
};
};
// *ToQString conversion routines
extern QString actionTypeToQString(const UINT8 action);
extern QString itemTypeToQString(const UINT8 type);
extern QString itemSubtypeToQString(const UINT8 type, const UINT8 subtype);
extern QString compressionTypeToQString(const UINT8 algorithm);
extern QString regionTypeToQString(const UINT8 type);
#endif