Rev 5544 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5544 | Rev 9160 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;; simple AGP driver for KolibriOS ;; |
6 | ;; simple AGP driver for KolibriOS ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
8 | ;; Written by hidnplayr@kolibrios.org ;; |
Line 119... | Line 119... | ||
119 | push eax edx |
119 | push eax edx |
120 | movzx ebx, [eax + PCIDEV.bus] |
120 | movzx ebx, [eax + PCIDEV.bus] |
121 | mov [bus], ebx |
121 | mov [bus], ebx |
122 | movzx ebx, [eax + PCIDEV.devfn] |
122 | movzx ebx, [eax + PCIDEV.devfn] |
123 | mov [devfn], ebx |
123 | mov [devfn], ebx |
124 | invoke PciRead8, [bus], [devfn], PCI_header00.prog_if |
124 | invoke PciRead16, [bus], [devfn], PCI_header00.status |
125 | test al, 1 shl 4 ; got capabilities list? |
125 | test ax, PCI_STATUS_CAPA ; got capabilities list? |
126 | jnz .got_capabilities_list |
126 | jnz .got_capabilities_list |
Line 127... | Line 127... | ||
127 | 127 | ||
128 | ; TODO: Do it the old way: detect device and check with a list of known capabilities |
128 | ; TODO: Do it the old way: detect device and check with a list of known capabilities |