Fix NVPCF compilation on newer iasl
Change-Id: Idb12db53b81c1805fc95dba197a62664d1973929
This commit is contained in:
@@ -7,27 +7,10 @@
|
|||||||
#define NVPCF_FUNC_GET_STATIC_CONFIG_TABLES 0x00000001
|
#define NVPCF_FUNC_GET_STATIC_CONFIG_TABLES 0x00000001
|
||||||
#define NVPCF_FUNC_UPDATE_DYNAMIC_PARAMS 0x00000002
|
#define NVPCF_FUNC_UPDATE_DYNAMIC_PARAMS 0x00000002
|
||||||
|
|
||||||
Name(CDIS, 0)
|
Name(_HID, "NVDA0820")
|
||||||
|
|
||||||
Method(_HID) {
|
|
||||||
CDIS = 0
|
|
||||||
Return("NVDA0820")
|
|
||||||
}
|
|
||||||
|
|
||||||
Name(_UID, "NPCF")
|
Name(_UID, "NPCF")
|
||||||
|
|
||||||
Method(_DIS) {
|
|
||||||
CDIS = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
Method(_STA) {
|
|
||||||
If (CDIS == 1) {
|
|
||||||
Return(0x0D)
|
|
||||||
} Else {
|
|
||||||
Return(0x0F)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Method(_DSM, 4, Serialized) {
|
Method(_DSM, 4, Serialized) {
|
||||||
Printf("NVPCF _DSM")
|
Printf("NVPCF _DSM")
|
||||||
If (Arg0 == ToUUID(NVPCF_DSM_GUID)) {
|
If (Arg0 == ToUUID(NVPCF_DSM_GUID)) {
|
||||||
@@ -39,6 +22,7 @@ Method(_DSM, 4, Serialized) {
|
|||||||
}
|
}
|
||||||
} Else {
|
} Else {
|
||||||
Printf(" Unsupported GUID: %o", IDST(Arg0))
|
Printf(" Unsupported GUID: %o", IDST(Arg0))
|
||||||
|
Return(NVPCF_ERROR_GENERIC)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user