forked from hiyohiyo/CrystalDiskInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNVMeInterpreter.h
More file actions
34 lines (26 loc) · 1.02 KB
/
NVMeInterpreter.h
File metadata and controls
34 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*---------------------------------------------------------------------------*/
// Author : Minkyu Kim
// Web : http://naraeon.net/
// https://github.com/ebangin127/
// License : MIT License
/*---------------------------------------------------------------------------*/
#pragma once
#include <windows.h>
static const int MAX_ATTRIBUTE = 30;
static const int NVME_ATTRIBUTE = 30;
#pragma pack(push,1)
typedef struct _SMART_ATTRIBUTE
{
BYTE Id;
WORD StatusFlags;
BYTE CurrentValue;
BYTE WorstValue;
BYTE RawValue[6];
BYTE Reserved;
} SMART_ATTRIBUTE;
#pragma pack(pop)
typedef SMART_ATTRIBUTE SMART_ATTRIBUTE_LIST[MAX_ATTRIBUTE];
void NVMeSmartToATASmart(UCHAR* NVMeSmartBuf, void* ATASmartBufUncasted);
void NVMeCompositeTemperatureSmartToATASmart(UCHAR* NVMeSmartBuf, void* ATASmartBufUncasted);
void NVMeTemperatureSensorSmartToATASmart(UCHAR* NVMeSmartBuf, void* ATASmartBufUncasted);
void NVMeThermalManagementTemperatureSmartToATASmart(UCHAR* NVMeSmartBuf, void* ATASmartBufUncasted);