#Battery_HP_Elitebook_840_G7 #Works for #TBD #16-Bit Register edit in EC0 into device label EC0 code_regex CPWR,\s+16, replace_matched begin PWR0,8,PWR1,8, end; #nowhere used into device label EC0 code_regex CVLT,\s+16, replace_matched begin VLT0,8,VLT1,8, end; #nowhere used into device label EC0 code_regex CCUR,\s+16, replace_matched begin CUR0,8,CUR1,8, end; #nowhere used into device label EC0 code_regex WKTR,\s+16, replace_matched begin KTR0,8,KTR1,8, end; #nowhere used into device label EC0 code_regex S5TR,\s+16, replace_matched begin 5TR0,8,5TR1,8, end; #nowhere used into device label EC0 code_regex BDC,\s+16, replace_matched begin 0BDC,8,1BDC,8, end; into device label EC0 code_regex BFC,\s+16, replace_matched begin FC00,8,FC01,8, end; into device label EC0 code_regex BRTE,\s+16, replace_matched begin RTE0,8,RTE1,8, end; into device label EC0 code_regex BME,\s+16, replace_matched begin ME00,8,ME01,8, end; into device label EC0 code_regex BDV,\s+16, replace_matched begin DV00,8,DV01,8, end; into device label EC0 code_regex BCV1,\s+16, replace_matched begin CV10,8,CV11,8, end; into device label EC0 code_regex BATE,\s+16, replace_matched begin ATE0,8,ATE1,8, end; into device label EC0 code_regex BPR,\s+16, replace_matched begin BPR0,8,BPR1,8, end; into device label EC0 code_regex BCR,\s+16, replace_matched begin CR00,8,CR01,8, end; into device label EC0 code_regex BRC,\s+16, replace_matched begin RC00,8,RC01,8, end; into device label EC0 code_regex BCC,\s+16, replace_matched begin BCC0,8,BCC1,8, end; into device label EC0 code_regex BPV,\s+16, replace_matched begin BPV0,8,BPV1,8, end; into device label EC0 code_regex BCV2,\s+16, replace_matched begin CV20,8,CV21,8, end; into device label EC0 code_regex BCV3,\s+16, replace_matched begin CV30,8,CV31,8, end; into device label EC0 code_regex BCV4,\s+16, replace_matched begin CV40,8,CV41,8, end; into device label EC0 code_regex BCW,\s+16, replace_matched begin BCW0,8,BCW1,8, end; #nowhere used into device label EC0 code_regex BATF,\s+16, replace_matched begin ATF0,8,ATF1,8, end; into device label EC0 code_regex BCL,\s+16, replace_matched begin BCL0,8,BCL1,8, end; into device label EC0 code_regex MAXC,\s+16, replace_matched begin AXC0,8,AXC1,8, end; into device label EC0 code_regex BSTS,\s+16, replace_matched begin BST0,8,BST1,8, end; into device label EC0 code_regex BSN,\s+16, replace_matched begin BSN0,8,BSN1,8, end; into device label EC0 code_regex BDAT,\s+16, replace_matched begin BDA0,8,BDA1,8, end; into device label EC0 code_regex EC17,\s+16, replace_matched begin C170,8,C171,8, end; into device label EC0 code_regex CBT,\s+16, replace_matched begin CBT0,8,CBT1,8, end; into device label EC0 code_regex ACPR,\s+16, replace_matched begin CPR0,8,CPR1,8, end; #nowhere used # # # # # #Apply B1B2 Patch into method label B1B2 remove_entry; into definitionblock code_regex . insert begin Method (B1B2, 2, NotSerialized) { Return(Or(Arg0, ShiftLeft(Arg1, 8))) }\n end; # # # # # # #fix 16-bit methods into method label BTIF code_regex \(BDC, replaceall_matched begin (B1B2(0BDC,1BDC), end; into method label GBTI code_regex \(BDC, replaceall_matched begin (B1B2(0BDC,1BDC), end; into method label _Q08 code_regex \(BDC, replaceall_matched begin (B1B2(0BDC,1BDC), end; into method label _Q09 code_regex \(BDC, replaceall_matched begin (B1B2(0BDC,1BDC), end; into method label BTIF code_regex \(BFC, replaceall_matched begin (B1B2(FC00,FC01), end; into method label ITLB code_regex \(BFC, replaceall_matched begin (B1B2(FC00,FC01), end; into method label GBTI code_regex \(BFC, replaceall_matched begin (B1B2(FC00,FC01), end; into method label EC19 code_regex \(BFC, replaceall_matched begin (B1B2(FC00,FC01), end; into method label GBTI code_regex \(BRTE, replaceall_matched begin (B1B2(RTE0,RTE1), end; into method label GBTI code_regex \(BME, replaceall_matched begin (B1B2(ME00,ME01), end; into method label WSBS code_regex \(BME, replaceall_matched begin (B1B2(ME00,ME01), end; into method label WSSD code_regex \(BME, replaceall_matched begin (B1B2(ME00,ME01), end; into method label BTIF code_regex \(BDV, replaceall_matched begin (B1B2(DV00,DV01), end; into method label GBTI code_regex \(BDV, replaceall_matched begin (B1B2(DV00,DV01), end; into method label _Q08 code_regex \(BDV, replaceall_matched begin (B1B2(DV00,DV01), end; into method label _Q09 code_regex \(BDV, replaceall_matched begin (B1B2(DV00,DV01), end; into method label GBTI code_regex \(BCV1, replaceall_matched begin (B1B2(CV10,CV11), end; into method label GBTI code_regex \(BATE, replaceall_matched begin (B1B2(ATE0,ATE1), end; into method label BTST code_regex \(BPR, replaceall_matched begin (B1B2(BPR0,BPR1), end; into method label GBTI code_regex \(BPR, replaceall_matched begin (B1B2(BPR0,BPR1), end; into method label GBTI code_regex \(BCR, replaceall_matched begin (B1B2(CR00,CR01), end; into method label BTST code_regex \(BRC, replaceall_matched begin (B1B2(RC00,RC01), end; into method label GBTI code_regex \(BRC, replaceall_matched begin (B1B2(RC00,RC01), end; into method label EC19 code_regex \(BRC, replaceall_matched begin (B1B2(RC00,RC01), end; into method label GBTI code_regex \(BCC, replaceall_matched begin (B1B2(BCC0,BCC1), end; into method label BTST code_regex \(BPV, replaceall_matched begin (B1B2(BPV0,BPV1), end; into method label GBTI code_regex \(BPV, replaceall_matched begin (B1B2(BPV0,BPV1), end; into method label GBTI code_regex \(BCV2, replaceall_matched begin (B1B2(CV20,CV21), end; into method label GBTI code_regex \(BCV3, replaceall_matched begin (B1B2(CV30,CV31), end; into method label GBTI code_regex \(BCV4, replaceall_matched begin (B1B2(CV40,CV41), end; into method label GBTI code_regex \(BATF, replaceall_matched begin (B1B2(ATF0,ATF1), end; into method label _BCL code_regex \(BCL, replaceall_matched begin (B1B2(BCL0,BCL1), end; into method label GBTC code_regex \(MAXC, replaceall_matched begin (B1B2(AXC0,AXC1), end; into method label SBTC code_regex \(MAXC, replaceall_matched begin (B1B2(AXC0,AXC1), end; into method label GBTI code_regex \(BSTS, replaceall_matched begin (B1B2(BST0,BST1), end; into method label BTIF code_regex \(BSN, replaceall_matched begin (B1B2(BSN0,BSN1), end; into method label GBTI code_regex \(BSN, replaceall_matched begin (B1B2(BSN0,BSN1), end; into method label BTIF code_regex \(BDAT, replaceall_matched begin (B1B2(BDA0,BDA1), end; into method label GBTI code_regex \(BDAT, replaceall_matched begin (B1B2(BDA0,BDA1), end; into method label EC16 code_regex \(EC17, replaceall_matched begin (B1B2(C170,C171), end; into method label GBTI code_regex \(CBT, replaceall_matched begin (B1B2(CBT0,CBT1), end; # # #†› # # #Begin Patching 32-bit and over into device label EC0 code_regex PMCD,\s+32, replace_matched begin MCD0,8,MCD1,8,MCD2,8,MCD3,8 end; #nowhere used # #Apply B1B4 patch into method label B1B4 remove_entry; into definitionblock code_regex . insert begin Method (B1B4, 4, NotSerialized)\n {\n Store(Arg3, Local0)\n Or(Arg2, ShiftLeft(Local0, 8), Local0)\n Or(Arg1, ShiftLeft(Local0, 8), Local0)\n Or(Arg0, ShiftLeft(Local0, 8), Local0)\n Return(Local0)\n }\n end;