Subversion Repositories Kolibri OS

Rev

Rev 8038 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8038 Rev 9160
Line 188... Line 188...
188
 
188
 
Line 189... Line 189...
189
        invoke  PciWrite32, [bus], [devfn], 0x44, 1
189
        invoke  PciWrite32, [bus], [devfn], 0x44, 1
Line 190... Line 190...
190
 
190
 
191
; Enable power
191
; Enable power
192
 
192
 
193
        invoke  PciRead8, [bus], [devfn], 0x14                  ; get capabilities offset
193
        invoke  PciRead8, [bus], [devfn], PCI_header02.cap_list_offs    ; get capabilities offset
194
        movzx   eax, al                                         ; (A0 for TI bridges)
194
        movzx   eax, al                                                 ; (A0 for TI bridges)
Line 195... Line 195...
195
        DEBUGF  1, "Capabilities offset=0x%x\n", eax:2
195
        DEBUGF  1, "Capabilities offset=0x%x\n", eax:2
Line 196... Line 196...
196
        add     al, 4                                           ; Power management control/status
196
        add     al, 4                                                   ; Power management control/status
Line 197... Line 197...
197
        invoke  PciWrite16, [bus], [devfn], eax, 0x0100         ; Enable PME signaling, power state=D0
197
        invoke  PciWrite16, [bus], [devfn], eax, 0x0100                 ; Enable PME signaling, power state=D0
Line 198... Line 198...
198
 
198
 
199
; Enable Bus master, io space, memory space
199
; Enable Bus master, io space, memory space