Rev 5363 | Rev 7132 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5363 | Rev 7122 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | ;; ;; |
13 | ;; ;; |
14 | ;; See file COPYING for details ;; |
14 | ;; See file COPYING for details ;; |
15 | ;; ;; |
15 | ;; ;; |
16 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
16 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 17... | Line 17... | ||
17 | 17 | ||
Line 18... | Line 18... | ||
18 | $Revision: 5363 $ |
18 | $Revision: 7122 $ |
Line 19... | Line 19... | ||
19 | 19 | ||
Line 20... | Line 20... | ||
20 | 20 | ||
21 | init_pci_16: |
21 | init_pci_16: |
22 | 22 | ||
23 | pushad |
23 | pushad |
24 | 24 | ||
25 | xor ax, ax |
25 | xor ax, ax |
26 | mov es, ax |
26 | mov es, ax |
Line 27... | Line 27... | ||
27 | mov byte [es:0x9020], 1;default mechanism:1 |
27 | mov byte [es:BOOT_PCI_DATA], 1;default mechanism:1 |
28 | mov ax, 0xb101 |
28 | mov ax, 0xb101 |
29 | int 0x1a |
29 | int 0x1a |
Line 30... | Line 30... | ||
30 | or ah, ah |
30 | or ah, ah |
31 | jnz pci16skip |
31 | jnz pci16skip |
32 | 32 | ||
33 | mov [es:0x9021], cl;last PCI bus in system |
33 | mov [es:BOOT_PCI_DATA+1], cl;last PCI bus in system |
34 | mov [es:0x9022], bx |
34 | mov [es:BOOT_PCI_DATA+2], bx |
35 | mov [es:0x9024], edi |
35 | mov [es:BOOT_PCI_DATA+4], edi |
36 | 36 | ||
37 | ; we have a PCI BIOS, so check which configuration mechanism(s) |
37 | ; we have a PCI BIOS, so check which configuration mechanism(s) |
Line 38... | Line 38... | ||
38 | ; it supports |
38 | ; it supports |
Line 39... | Line 39... | ||
39 | ; AL = PCI hardware characteristics (bit0 => mechanism1, bit1 => mechanism2) |
39 | ; AL = PCI hardware characteristics (bit0 => mechanism1, bit1 => mechanism2) |
40 | test al, 1 |
40 | test al, 1 |