alder_lake_bios/Lcfc/LfcPkg/AcpiTable/Dsdt/SuperResolutionWmi.asl

223 lines
11 KiB
Plaintext

//*****************************************************************************
//
// Copyright (c) 2020 - 2020, 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:
LCFC EC common asl code definition, it's for all Hefei LBG projects.
History:
Date Name Version Change Notes
2020.05.12 Feng.Gu V1.00 Initial Release.
Module Name:
LSRWMI.asl
Note:
You must take care about the prompt string "LCFCTODO:" and customize your
project.
Support Version:
Lenovo Super Resolution Feature Specification V1.1
--*/
Device(WMIS)
{
// PNP0C14 is pnp id assigned to WMI
Name(_HID, "PNP0C14")
Name(_UID, "LSR")
Name(SDat,0)
Name(_WDG, Buffer() {
// Method Guids
// 77E614ED-F19E-46D6-A613-A8669FEE1FF0
0xED, 0x14, 0xE6, 0x77,
0x9E, 0xF1,
0xD6, 0x46,
0xA6, 0x13,
0xA8, 0x66, 0x9F, 0xEE, 0x1F, 0xF0,
83, 82, // Object Id (SR)
1, // Instance Count
0x02, // Flags (WMIACPI_REGFLAG_METHOD)
// The GUID for returning the MOF data, DO NOT CHANGE!!!!!
0x21, 0x12, 0x90, 0x05, 0x66, 0xD5, 0xD1, 0x11, 0xB2, 0xF0, 0x00, 0xA0, 0xC9, 0x06, 0x29, 0x10,
68, 70, // Object Id (DF) DF should same as WQDF
1, // Instance Count
0x00, // Flags
//
// Event Guids
// 95D1DF76-D6C0-4E16-9193-7B2A849F3DF2
0x76, 0xDF, 0xD1, 0x95,
0xC0, 0xD6,
0x16, 0x4E,
0x91, 0x93,
0x7B, 0x2A, 0x84, 0x9F, 0x3D, 0xF2,
0xd0, 0, // Object Id
1, // Instance Count
0x08, // Flags (WMIACPI_REGFLAG_EVENT)
})
Method (WMSR, 3)// NotSerialized
{
// MethodId 1 - get status
if (LEqual(Arg1, 1))
{
Return(SDat)
}
// MethodId 2 - start monitor
if (LEqual(Arg1, 2))
{
Store(0x01, EC0_SCOPE.EC0.LESR)
Return(1)
}
// MethodId 3 - stop monitor
if (LEqual(Arg1, 3))
{
Store(0x00, EC0_SCOPE.EC0.LESR)
Return(1)
}
// MethodId 4 - GetCapability
if (LEqual(Arg1, 4))
{
//Check VGA device ID support LSR
Switch(VGA_SCOPE.VIDG)
{
//Intel
Case (0x8086){
Switch(VGA_SCOPE.DIDG)
{
//Some Graphic Device support Super Resolution
Case (0x9A49){
Return(1)
}
//LCFCTODO:If Super Resolution is supported on the specific project,please add the support Graphic Device ID.
//Case (xxxx){
// Return(1)
//}
Default {
Return(0)
}
}//switch
}//case
//AMD
Case (0x1002){
Return(0)
}
Default {
Return(0)
}
}//switch
}//if
}//method
Method (_WED, 1)
{
Return(1)
}
Name (WQDF, Buffer ()
{ 0x46,0x4f,0x4d,0x42,0x01,0x00,0x00,0x00,0x9e,0x05,0x00,0x00,0xc8,0x1f,0x00,0x00,
0x44,0x53,0x00,0x01,0x1a,0x7d,0xda,0x54,0x18,0x4b,0x8f,0x00,0x01,0x06,0x18,0x42,
0x10,0x05,0x10,0x8a,0x27,0x81,0x42,0x04,0x0a,0x40,0xa4,0x40,0x30,0x28,0x0d,0x20,
0x92,0x03,0x21,0x17,0x4c,0x4c,0x80,0x08,0x08,0x79,0x15,0x60,0x53,0x80,0x49,0x10,
0xf5,0xef,0x0f,0x51,0x12,0x1c,0x4a,0x08,0x84,0x24,0x0a,0x30,0x2f,0x40,0xb7,0x00,
0xc3,0x02,0x6c,0x0b,0x30,0x2d,0xc0,0x31,0x24,0x95,0x06,0x4e,0x09,0x2c,0x05,0x42,
0x42,0x05,0x28,0x17,0xe0,0x5b,0x80,0x76,0x44,0x49,0x16,0x60,0x19,0x46,0x04,0x1e,
0x45,0x64,0xa3,0x71,0x68,0xec,0x30,0x2c,0x13,0x4c,0x83,0x38,0x8c,0xb2,0x91,0x45,
0xe0,0x09,0x75,0x2a,0x40,0xae,0x00,0x61,0x02,0xc4,0xa3,0x0a,0xa3,0x39,0x28,0x32,
0x87,0xd0,0x18,0x31,0x63,0x22,0xb0,0x9d,0x63,0x6b,0x14,0xa7,0x51,0xb8,0x00,0xe9,
0x18,0x1a,0xc1,0x71,0x1d,0x83,0xc1,0x82,0x1c,0x8a,0x21,0x0a,0x1a,0x82,0xac,0x0e,
0x47,0x16,0x05,0x28,0x85,0x11,0x44,0x64,0x63,0x9d,0x49,0xeb,0xc0,0x08,0xac,0x70,
0x51,0x23,0x1b,0x29,0x41,0xb4,0x23,0xc1,0xc8,0x80,0x90,0x67,0x54,0x0d,0xd1,0x04,
0x76,0x3f,0x24,0x59,0x9b,0x8d,0x8c,0x41,0x48,0xa3,0x00,0x6f,0x02,0xb4,0x09,0xb0,
0x85,0x22,0x8c,0x0e,0x27,0x26,0x94,0x43,0x3b,0x84,0x68,0xa1,0x8c,0x19,0x24,0x44,
0x67,0x28,0x82,0xac,0x50,0x80,0x32,0x01,0x06,0x05,0x88,0xc3,0x13,0x52,0xe8,0x50,
0xd1,0x8d,0xd4,0xfe,0x20,0x88,0x20,0x07,0x07,0x02,0x16,0x69,0x34,0xa8,0x43,0x40,
0x82,0x87,0x02,0x1f,0x08,0x0e,0xea,0xd4,0x4e,0xea,0xa4,0x83,0x9c,0xe8,0x79,0xd5,
0x79,0x1a,0x20,0xe3,0x66,0x43,0x33,0xbb,0x8e,0x07,0x10,0x5c,0x03,0xea,0x5e,0x90,
0xe0,0xff,0xff,0x54,0xe0,0x59,0x86,0xc3,0x0c,0xd1,0x23,0x0f,0x77,0x02,0x87,0xc8,
0x00,0x3d,0xb9,0x07,0x02,0xec,0x08,0x4f,0xe6,0x69,0xa0,0x54,0x01,0x66,0xc7,0x4e,
0x08,0x8e,0xc7,0xc7,0x00,0xcf,0xe7,0x84,0x13,0x58,0xfe,0x20,0x50,0x23,0x33,0xb4,
0x87,0x79,0x5a,0x6f,0x00,0x9e,0xbf,0x09,0x2c,0xf6,0x2c,0x41,0xc7,0x03,0x7e,0xc5,
0xc7,0x02,0x9d,0x0c,0x8c,0xed,0x43,0x82,0x45,0x1d,0x2d,0xe4,0x64,0x3c,0xa8,0x53,
0x85,0x51,0x23,0x1e,0x99,0xef,0x09,0x27,0x1b,0xc4,0xb0,0xe7,0x1d,0xe6,0xe0,0x0d,
0xf1,0x72,0x10,0x29,0x81,0x83,0x43,0xe8,0xab,0x61,0x51,0x83,0xa7,0x07,0x0b,0x7e,
0xa6,0x60,0x57,0x82,0xb0,0x86,0x38,0x9e,0xd3,0xf2,0xd1,0xc3,0xc3,0x83,0x7f,0x92,
0x78,0xa0,0x00,0x56,0xd3,0x3d,0xc2,0x03,0x88,0xf6,0x4a,0x81,0x1d,0x3a,0x18,0xae,
0x15,0x86,0xf5,0x2d,0xe2,0x25,0x22,0x81,0x07,0x15,0x98,0xfd,0xff,0x81,0xf9,0xd8,
0xed,0x57,0x00,0x42,0xf0,0x93,0x7a,0x36,0x38,0xa4,0x08,0xc7,0x65,0xf4,0x67,0x88,
0x3e,0x05,0x68,0x85,0x10,0x5a,0xa4,0x93,0x8a,0x11,0x29,0x4e,0x2c,0x4f,0x23,0x41,
0x91,0x23,0x45,0x8f,0x80,0xe3,0x9d,0xc0,0xf1,0xc4,0x8c,0x7c,0x3c,0x51,0x4e,0xe2,
0x80,0x7c,0x46,0x31,0xc2,0x01,0x3d,0x9a,0x3c,0xaa,0x58,0xf3,0xd8,0x35,0xa9,0xd3,
0x3c,0x3e,0x36,0x26,0xdc,0xd1,0xc2,0x43,0xe0,0x73,0xc6,0xcc,0x0a,0x77,0x9a,0xe1,
0x03,0xc6,0x0e,0x80,0xc7,0x35,0x03,0xc2,0x84,0xbf,0x0c,0x24,0xe9,0x89,0x40,0x61,
0x7c,0xbe,0x01,0x5c,0x9d,0x03,0x7c,0x7e,0x00,0xcb,0xc1,0x00,0x06,0xec,0xa1,0x1f,
0x40,0x88,0x07,0x87,0xc0,0x47,0x72,0x28,0xc1,0x1f,0x34,0xd8,0xd9,0x06,0xde,0xff,
0xff,0x6c,0xc3,0xce,0x33,0x11,0x8e,0xe1,0xa1,0xe6,0x99,0xe6,0xb5,0xc6,0x23,0x78,
0xa7,0x79,0x9d,0x79,0xac,0x31,0xcc,0xb3,0x8d,0xc1,0x5e,0x6f,0x8c,0x72,0x16,0x11,
0x7d,0xb6,0xf1,0xcd,0xc6,0x30,0x11,0x1e,0x6d,0x0c,0xf9,0x8c,0x63,0x90,0x08,0x07,
0xf8,0x6c,0xc3,0xa2,0x1d,0x06,0x74,0x06,0xf1,0xd9,0x06,0xe0,0xc7,0x89,0x04,0xbc,
0x27,0x05,0x4e,0xe0,0x13,0x09,0xf8,0xff,0xff,0x27,0x12,0x1e,0x49,0xcb,0xc9,0x83,
0x65,0x78,0x10,0xc8,0xc6,0x52,0x7d,0x24,0xa0,0xc9,0x96,0x2b,0x8f,0xb8,0xc2,0x7c,
0xe2,0xe1,0x53,0x7a,0xbf,0x30,0xfa,0x71,0xb3,0x2c,0x80,0x3a,0xbe,0xf1,0x14,0x14,
0x52,0x46,0xa3,0x11,0x19,0xce,0x5a,0x60,0x04,0x67,0x10,0x03,0x3a,0x28,0x84,0xce,
0x45,0x38,0x25,0x47,0x33,0x32,0x0b,0x06,0xf1,0x98,0xc3,0x08,0xa6,0xba,0x12,0xd1,
0x39,0xfa,0x2e,0xc0,0xa7,0xe5,0xd3,0x81,0xc1,0x7d,0xf3,0x7a,0xef,0x00,0xcb,0x68,
0x83,0xf8,0xae,0xe0,0xd3,0x80,0x37,0x79,0x22,0x18,0x35,0x27,0x25,0xd4,0x34,0x7c,
0x33,0x78,0x25,0x30,0x81,0x75,0xdd,0x80,0x40,0xa6,0xef,0x80,0x00,0x0a,0x20,0x5f,
0x08,0x7c,0x3c,0x78,0x28,0x60,0x63,0x78,0xc8,0x31,0x9a,0xd1,0xb9,0xd4,0xc9,0xa3,
0xc4,0x4d,0x9e,0x82,0x78,0xf2,0xbe,0x55,0x79,0xf2,0xb8,0xdb,0x84,0x8f,0x04,0x9c,
0xc0,0x97,0x00,0x8f,0xdd,0x97,0x0f,0xfc,0x64,0x9f,0x9e,0x7c,0xab,0x60,0x82,0x07,
0x0f,0xf9,0xff,0x3f,0x78,0xcc,0x79,0x0a,0x0c,0xd3,0xe1,0x28,0x4f,0x0c,0xb8,0xf1,
0xf8,0x0e,0xc0,0x87,0xe2,0x3b,0x00,0x1f,0xa2,0x6f,0x55,0xe0,0x13,0x78,0x09,0x00,
0x39,0x3c,0x26,0xe0,0xa8,0xa8,0xac,0x71,0xa1,0xc6,0xeb,0x7b,0x11,0xc3,0x7e,0xc8,
0xb0,0xe8,0x59,0xea,0x3e,0xf1,0x92,0x86,0x81,0xf5,0x09,0x80,0xc3,0x1a,0x2d,0xec,
0x81,0xbf,0x9b,0xf8,0x60,0xe3,0x99,0x19,0x23,0xac,0x4f,0x01,0x60,0x9b,0xe8,0xd3,
0x84,0xc1,0x1e,0xd2,0xc0,0x70,0x4c,0xc0,0xa9,0x7c,0x25,0xe8,0x46,0xc2,0x39,0xac,
0x79,0x85,0xba,0xdc,0xb1,0x29,0xc4,0x38,0xd8,0x83,0x3e,0xc2,0x03,0xf0,0x0c,0xe2,
0x04,0x79,0x9d,0x62,0x1a,0x21,0x75,0x25,0xe1,0xea,0x60,0x94,0xff,0x18,0x81,0x4a,
0x7c,0x8c,0xa0,0x20,0x1e,0xb4,0xaf,0x24,0x98,0xff,0xff,0x95,0x04,0xb0,0x18,0xf3,
0xe8,0x01,0xe5,0x7e,0xf4,0x64,0x81,0x89,0x35,0x45,0xe8,0x57,0x22,0xdc,0x14,0xc1,
0x35,0x12,0xdc,0x18,0x61,0xdd,0x06,0x7c,0x8b,0x01,0xce,0x17,0x18,0xdf,0x17,0xb8,
0x9c,0xfb,0x02,0x05,0xf1,0xbd,0xc1,0x51,0xe7,0x8e,0xfa,0xff,0x43,0x1a,0xda,0x67,
0x2c,0x5f,0x5e,0x1c,0xee,0x12,0x03,0x8a,0xd3,0x14,0x7e,0xee,0xe0,0x19,0x89,0x41,
0x9f,0xa6,0x30,0xd7,0x17,0x78,0x23,0xf3,0xf5,0x05,0x78,0x5f,0x3b,0x7c,0x7d,0x01,
0xd7,0xd8,0x7c,0x7d,0x01,0xd7,0xb1,0x15,0x3c,0xd7,0x17,0xdc,0x11,0x00,0x7f,0xc2,
0xf3,0x88,0xde,0x22,0xa2,0xbc,0xc4,0xbd,0x82,0xbc,0xbd,0x7a,0x56,0x3e,0x48,0xfb,
0x62,0x06,0x43,0xe3,0x15,0x06,0x75,0x18,0xb0,0xe2,0x2b,0x0c,0x9d,0xc2,0x79,0x3c,
0xc2,0xf8,0xff,0x7f,0x84,0xc1,0xdf,0x60,0x00,0xbe,0xff,0xff,0x6f,0x30,0x00,0x0b,
0x61,0xf9,0x0d,0x06,0x18,0xff,0xff,0x6f,0x30,0x60,0xb9,0xb5,0xc2,0x9c,0x45,0xcc,
0x13,0x09,0x71,0x04,0x47,0x13,0xf7,0x11,0xc6,0x57,0x63,0xdf,0x5a,0x01,0xa6,0xfe,
0xff,0x6f,0xad,0x00,0x37,0x4e,0x00,0xbe,0xb5,0x02,0xeb,0x5b,0x08,0x2c,0xed,0x37,
0x12,0x94,0x14,0x08,0x65,0x7a,0x33,0x68,0x00,0x6c,0x0c,0xbe,0xdb,0x7b,0x4a,0x8d,
0x81,0x29,0xc9,0x7d,0x04,0x95,0x81,0x42,0xba,0xce,0x10,0x28,0x25,0x67,0x08,0x0a,
0x62,0x40,0xff,0xff,0x4f,0x5b,0xf8,0x61,0x78,0x3a,0x1e,0x44,0x88,0x13,0xf5,0x40,
0x7d,0x6c,0x73,0xa4,0x03,0x09,0x74,0x79,0xe3,0x05,0xcd,0xc9,0xe0,0x38,0x60,0x5c,
0x47,0x00,0xee,0xfd,0xff,0xaf,0x23,0xc0,0x32,0xde,0x75,0x04,0x74,0x16,0xae,0x23,
0xa0,0x93,0x7b,0x1d,0x01,0x22,0x87,0x10,0xfc,0x01,0x4b,0xb7,0x11,0x50,0xcc,0xdd,
0xb7,0x11,0xc0,0xda,0xff,0xff,0x36,0x02,0x70,0xfb,0x46,0x09,0x8e,0xff,0xff,0x6d,
0x04,0x77,0x63,0xf0,0x8d,0x12,0xf8,0xdd,0x46,0xc0,0x82,0x54,0x33,0xa0,0xd0,0x8e,
0xe1,0x0c,0x30,0x04,0x15,0xda,0xf4,0xa9,0xd1,0xa8,0x55,0x83,0x32,0x35,0xca,0x34,
0xa8,0xd5,0xa7,0x52,0x63,0xc6,0x0c,0x41,0x49,0xd2,0xc3,0x41,0xe3,0x74,0x20,0x10,
0x1a,0x92,0x42,0xe7,0x6a,0xb2,0x46,0x81,0x58,0xa6,0x07,0x10,0x16,0x7d,0x69,0x32,
0x02,0x22,0x1d,0x26,0x80,0x98,0x42,0x15,0x40,0x4c,0x2f,0x88,0x80,0xac,0xff,0x15,
0x21,0x20,0x87,0x01,0x11,0x90,0x55,0xda,0x00,0x62,0x92,0x41,0x04,0x64,0xf9,0x3a,
0x00,0x29,0x88,0x80,0x1c,0xf1,0x59,0x20,0x20,0xe7,0x05,0x11,0x90,0x83,0xd0,0x08,
0xc8,0xa9,0x28,0x04,0xe4,0x84,0x3f,0x4c,0x01,0x12,0x10,0x01,0x59,0x85,0x15,0x20,
0x26,0x09,0x44,0x40,0x16,0xab,0x05,0x88,0x49,0x07,0x11,0x90,0x23,0x3c,0x00,0x04,
0xe4,0x3c,0x20,0x02,0x72,0x52,0x33,0x40,0x2c,0x37,0x88,0x80,0x9c,0xde,0x0d,0x10,
0x93,0xf2,0x94,0x10,0x90,0x45,0xda,0x19,0x18,0x05,0x11,0x90,0xff,0xff,
})
}