11 Replies Latest reply on Mar 13, 2018 11:38 AM by Carlos_A

    PMC Controller

    rvmuhilan1978 Green Belt

      Dear all,

      I have programmed APM controller in 8-series PCH to move to soft-off sleep state. But now it has been moved to Bus 0, Device 31 and Function 2.Below is the code for moving to soft-off sleep state upto X99 PCH.

       

       

      _BtLdrTurnOffPC:

       

      push ax

      push bx

      push cx

      push dx

      push si

      push di

      push ds

      push es

      cli

      mov eax,0x8000F840; Bus 0, Device 31, Function 0, Offset 0x40

      mov dx,0x0CF8

      out dx,eax

      mov dx,0x0CFC

      in ax,dx

      and ax,0xFFFE

      mov dx,ax

      add dx,0x0004

      mov eax,0x00003C00

      out dx,eax

      pop es

      pop ds

      pop di

      pop si

      pop dx

      pop cx

      pop bx

      pop ax

      ret

       

      Will the following code work with no change for 100-series PCH onwards?

       

       

      _BtLdrTurnOffPC:

       

      push ax

      push bx

      push cx

      push dx

      push si

      push di

      push ds

      push es

      cli

      mov eax,0x8000FA40 ; Bus 0, Device 31, Function 2, Offset 0x40

      mov dx,0x0CF8

      out dx,eax

      mov dx,0x0CFC

      in ax,dx

      and ax,0xFFFE

      mov dx,ax

      add dx,0x0004

      mov eax,0x00003C00

      out dx,eax

      pop es

      pop ds

      pop di

      pop si

      pop dx

      pop cx

      pop bx

      pop ax

      ret

       

      Thanks in advance. Kindly intimate me as early as possible since this is urgent.