242 lines
7.5 KiB
Plaintext
242 lines
7.5 KiB
Plaintext
//*****************************************************************************
|
|
// Copyright (c) 2012 - 2021, Hefei LCFC Information Technology Co.Ltd.
|
|
// And/or its affiliates. All rights reserved.
|
|
// Hefei LCFC Information Technology Co.Ltd. PROPRIETARY/CONFIDENTIAL.
|
|
// Use is subject to license terms.
|
|
//******************************************************************************
|
|
/*++
|
|
Abstract:
|
|
This MOF file is used for Lenovo LBG product MFG and MBV tools WMI service interface.
|
|
|
|
History:
|
|
Date Name Version Change Notes
|
|
2020.02.23 Steven Wang V1.00 Initial release.
|
|
2021.08.31 Ru.Xu V1.01 Add intelligent thermal tool interface.
|
|
2021.10.11 Mandy.xiao V1.02 Add Lfc MBV EC Common Command Handler Interface WMI Service.
|
|
|
|
Module Name:
|
|
LfcWmiService.mof
|
|
--*/
|
|
|
|
//#PRAGMA AUTORECOVER
|
|
//[abstract]
|
|
//
|
|
// Wmi internal classes, for event notify
|
|
//
|
|
class WMIEvent : __ExtrinsicEvent
|
|
{
|
|
};
|
|
|
|
//
|
|
// Customized classes
|
|
//
|
|
class Lfc_Common_Wmi_Service
|
|
{
|
|
};
|
|
|
|
[WMI,
|
|
Locale("MS\\0x409"),
|
|
Description("This class contains the definition of the package used in other classes"),
|
|
guid("{7D728687-50AE-44C4-AAB2-D1F1AACAC9AA}")
|
|
]
|
|
|
|
class LfcPackage
|
|
{
|
|
[WmiDataId(1),
|
|
read, write,
|
|
Description("128 bytes of data")
|
|
] uint8 Bytes[128];
|
|
};
|
|
|
|
[WMI,
|
|
Locale("MS\\0x409"),
|
|
Description("This class contains the definition of the package used in other classes"),
|
|
guid("{df1fb46e-4a6b-41da-bb92-3737fa5ce851}")
|
|
]
|
|
class LfcbatteryPackage
|
|
{
|
|
[WmiDataId(1),
|
|
read, write,
|
|
Description("83 bytes of data")
|
|
] uint8 Bytes[83];
|
|
};
|
|
|
|
[WMI, Dynamic: ToInstance, Provider("WMIProv"), WmiExpense(1),
|
|
Description("Lfc Tools WMI Service"),
|
|
GUID("{7B0D0CF0-5D6C-439E-86A5-A3619B623492}"),
|
|
Locale("MS\\0x409")
|
|
]
|
|
class Lfc_Tools_Wmi_Service : Lfc_Common_Wmi_Service
|
|
{
|
|
[key, read] string InstanceName;
|
|
[read] boolean Active;
|
|
[Implemented, WmiMethodId(1), Description("EC control function")]
|
|
void LfcWmiEcControlUlong([in] uint32 parameter, [out] uint32 return);
|
|
[Implemented, WmiMethodId(2), Description("read edid function")]
|
|
void Lfcreadedid([out] LfcPackage return);
|
|
[Implemented, WmiMethodId(3), Description("Lfc Data function")]
|
|
void LfcData([in] uint32 HostIp,[in] uint32 ClientIp,[in] uint32 LocalMask,[in] uint32 GateWay,[in] uint32 Port, [out] uint32 return);
|
|
[Implemented, WmiMethodId(4), Description("read battery info")]
|
|
void Lfcreadbattery([out] LfcbatteryPackage return);
|
|
[Implemented, WmiMethodId(5), Description("read write BIOS variable")]
|
|
void LfcWmiwritevariable([in] uint32 guid1, [in] uint32 guid2, [in] uint32 guid3, [in] uint32 guid4,[in] uint32 guidv,[out] uint32 return);
|
|
[Implemented, WmiMethodId(6), Description("AMD read GPIO")]
|
|
void LfcWmiReadAMDGPIO([in] uint32 gpionum, [out] uint32 return);
|
|
};
|
|
|
|
[WMI,
|
|
Dynamic,
|
|
Provider("WmiProv"),
|
|
Description("Class containing event generated ULong data"),
|
|
Locale("MS\\0x409"),
|
|
guid("{83D7DB01-3C6D-42DC-BA1B-56DAA597F2B2}")
|
|
]
|
|
|
|
class Lfc_EventULong : WmiEvent
|
|
{
|
|
[key, read]
|
|
string InstanceName;
|
|
[read] boolean Active;
|
|
|
|
[WmiDataId(1),
|
|
read, write,
|
|
Description("Notification value")
|
|
] uint32 NotifyValue;
|
|
};
|
|
|
|
[WMI,
|
|
Dynamic,
|
|
Provider("WmiProv"),
|
|
Locale("MS\\0x409"),
|
|
Description("Lfc_thermal_interface class"),
|
|
guid("{777B54E3-DDDC-4B2C-8B88-68A26A8835D0}")
|
|
]
|
|
|
|
class Lfc_thermal_interface
|
|
{
|
|
[key, read]
|
|
string InstanceName;
|
|
[read] boolean Active;
|
|
|
|
[WmiMethodId(1),
|
|
Implemented,
|
|
Description("GetVersion")
|
|
] void GetVersion([out, Description("GetVersion")] UINT32 Data);
|
|
|
|
[WmiMethodId(2),
|
|
Implemented,
|
|
Description("GetPlatformVersion")
|
|
] void GetPlatformVersion([out, Description("GetPlatformVersion")] UINT32 Data);
|
|
|
|
[WmiMethodId(3),
|
|
Implemented,
|
|
Description("GetFan1Speed")
|
|
] void GetFan1Speed([out, Description("GetFan1Speed")] UINT32 Data);
|
|
|
|
[WmiMethodId(4),
|
|
Implemented,
|
|
Description("SetFan1Speed")
|
|
] void SetFan1Speed ([in, Description("SetFan1Speed")] UINT32 Data);
|
|
|
|
[WmiMethodId(5),
|
|
Implemented,
|
|
Description("GetFan2Speed")
|
|
] void GetFan2Speed([out, Description("GetFan2Speed")] UINT32 Data);
|
|
|
|
[WmiMethodId(6),
|
|
Implemented,
|
|
Description("SetFan2Speed")
|
|
] void SetFan2Speed ([in, Description("SetFan2Speed")] UINT32 Data);
|
|
|
|
[WmiMethodId(7),
|
|
Implemented,
|
|
Description("GetPowerLimit1")
|
|
] void GetPowerLimit1([out, Description("GetPowerLimit1")] UINT32 Data);
|
|
|
|
[WmiMethodId(8),
|
|
Implemented,
|
|
Description("SetPowerLimit1")
|
|
] void SetPowerLimit1 ([in, Description("SetPowerLimit1")] UINT32 Data);
|
|
|
|
[WmiMethodId(9),
|
|
Implemented,
|
|
Description("GetPowerLimit2")
|
|
] void GetPowerLimit2([out, Description("GetPowerLimit2")] UINT32 Data);
|
|
|
|
[WmiMethodId(10),
|
|
Implemented,
|
|
Description("SetPowerLimit2")
|
|
] void SetPowerLimit2 ([in, Description("SetPowerLimit2")] UINT32 Data);
|
|
|
|
[WmiMethodId(11),
|
|
Implemented,
|
|
Description("GetCPUTemperature")
|
|
] void GetCPUTemperature ([out, Description("GetCPUTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(12),
|
|
Implemented,
|
|
Description("GetGPUTemperature")
|
|
] void GetGPUTemperature ([out, Description("GetGPUTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(13),
|
|
Implemented,
|
|
Description("GetNearCPUTemperature")
|
|
] void GetNearCPUTemperature ([out, Description("GetNearCPUTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(14),
|
|
Implemented,
|
|
Description("GetNearGPUTemperature")
|
|
] void GetNearGPUTemperature ([out, Description("GetNearGPUTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(15),
|
|
Implemented,
|
|
Description("GetChargerTemperature")
|
|
] void GetChargerTemperature ([out, Description("GetChargerTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(16),
|
|
Implemented,
|
|
Description("GetEnvironmentTemperature")
|
|
] void GetEnvironmentTemperature ([out, Description("GetEnvironmentTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(17),
|
|
Implemented,
|
|
Description("GetSSDTemperature")
|
|
] void GetSSDTemperature ([out, Description("GetSSDTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(18),
|
|
Implemented,
|
|
Description("GetRAMTemperature")
|
|
] void GetRAMTemperature ([out, Description("GetRAMTemperature")] UINT32 Data);
|
|
|
|
[WmiMethodId(19),
|
|
Implemented,
|
|
Description("DisableDPTF")
|
|
] void DisableDPTF ([in, Description("DisableDPTF")] UINT32 Data);
|
|
};
|
|
|
|
[WMI, Dynamic: ToInstance, Provider("WMIProv"), WmiExpense(1),
|
|
Description("Lfc MBV EC Common Command Handler Interface WMI Service"),
|
|
GUID("{033D22A2-8254-46B8-BB7B-59C488C96A3F}"),
|
|
Locale("MS\\0x409")
|
|
]
|
|
class Lfc_Mbv_Ec_Common_Cmd_Service
|
|
{
|
|
[key, read] string InstanceName;
|
|
[read] boolean Active;
|
|
|
|
[Implemented, WmiMethodId(1), Description("Get MBV Fan Data")]
|
|
void LfcGetMbvFanData([in] uint32 parameter, [out] uint32 return);
|
|
[Implemented, WmiMethodId(2), Description("Set MBV Fan Data")]
|
|
void LfcSetMbvFanData([in] uint32 parameter, [out] uint32 return);
|
|
|
|
[Implemented, WmiMethodId(3), Description("Get MBV Battery Data")]
|
|
void LfcGetMbvBatteryData([in] uint32 parameter, [out] uint32 return);
|
|
[Implemented, WmiMethodId(4), Description("Get MBV Battery Data")]
|
|
void LfcSetMbvBatteryData([in] uint32 parameter, [out] uint32 return);
|
|
|
|
[Implemented, WmiMethodId(5), Description("Get MBV Battery Data")]
|
|
void LfcGetMbvControlData([in] uint32 parameter, [out] uint32 return);
|
|
[Implemented, WmiMethodId(6), Description("Get MBV Battery Data")]
|
|
void LfcSetMbvControlData([in] uint32 parameter, [out] uint32 return);
|
|
};
|