| 4811 | #endif |
| 4812 | #if 0 |
| 4813 | UINT32 FIXPWRB (UINT8* dsdt, UINT32 len) |
| 4814 | { |
| 4815 | UINT32 i, j=0; |
| 4816 | UINT32 adr=0, hid=0, size = 0; |
| 4817 | CHAR8 Name[4]; |
| 4818 | INT32 sizeoffset; |
| 4819 | //search PWRB PNP0C0C |
| 4820 | for (i=0x20; i<len-6; i++) { |
| 4821 | if (CmpPNP(dsdt, i, 0x0C0C)) { |
| 4822 | adr = devFind(dsdt, i); |
| 4823 | if (!adr) { |
| 4824 | continue; |
| 4825 | } |
| 4826 | size = get_size(dsdt, adr); |
| 4827 | if(size){ |
| 4828 | hid = i + 10; //the place after HID PNP0C0C |
| 4829 | break; |
| 4830 | } |
| 4831 | } |
| 4832 | } |
| 4833 | |
| 4834 | if (size) { |
| 4835 | //check name and replace |
| 4836 | if (size < 0x40) { |
| 4837 | j = adr + 1; |
| 4838 | } else { |
| 4839 | j = adr + 2; |
| 4840 | } |
| 4841 | for (i=0; i<4; i++) { |
| 4842 | Name[i] = dsdt[j+i]; |
| 4843 | } |
| 4844 | ReplaceName(dsdt, len, Name, "PWRB"); |
| 4845 | sizeoffset = sizeof(pwrbprw); |
| 4846 | len = move_data(hid, dsdt, len, sizeoffset); |
| 4847 | CopyMem(dsdt+hid, pwrbprw, sizeoffset); |
| 4848 | i = write_size(adr, dsdt, len, sizeoffset); |
| 4849 | sizeoffset += i; |
| 4850 | len += i; |
| 4851 | len = CorrectOuters(dsdt, len, adr-3, sizeoffset); |
| 4852 | } |
| 4853 | |
| 4854 | return len; |
| 4855 | } |
| 4856 | #endif |
| 4857 | UINT32 FIXSHUTDOWN_ASUS (UINT8 *dsdt, UINT32 len) |
| 4858 | { |
nothing calls this directly
no test coverage detected