Rev 3205 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3205 | Rev 3231 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | 58 | ||
59 | .io_addr dd ? |
59 | .io_addr dd ? |
60 | .pci_bus dd ? |
60 | .pci_bus dd ? |
61 | .pci_dev dd ? |
61 | .pci_dev dd ? |
62 | .irq_line db ? |
- | |
Line 63... | Line 62... | ||
63 | rb 3 ; alignment |
62 | .irq_line db ? |
Line 64... | Line 63... | ||
64 | 63 | ||
Line 533... | Line 532... | ||
533 | 532 | ||
534 | stdcall PciRead32, [device.pci_bus], [device.pci_dev], 0 ; get device/vendor id |
533 | stdcall PciRead32, [device.pci_bus], [device.pci_dev], 0 ; get device/vendor id |
Line 535... | Line 534... | ||
535 | DEBUGF 1,"Vendor id: 0x%x\n", ax |
534 | DEBUGF 1,"Vendor id: 0x%x\n", ax |
- | 535 | ||
- | 536 | cmp ax, 0x1011 |
|
- | 537 | je .dec |
|
536 | 538 | cmp ax, 0x1317 |
|
- | 539 | je .admtek |
|
- | 540 | jmp .notfound |
|
537 | cmp ax, 0x1011 |
541 | |
538 | jne .notfound |
542 | .dec: |
Line 539... | Line 543... | ||
539 | shr eax, 16 |
543 | shr eax, 16 |
540 | DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax ; TODO: use another method to detect chip! |
544 | DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax ; TODO: use another method to detect chip! |
Line 541... | Line 545... | ||
541 | 545 | ||
542 | cmp ax, 0x0009 |
546 | cmp ax, 0x0009 |
Line -... | Line 547... | ||
- | 547 | je .supported_device |
|
- | 548 | ||
- | 549 | cmp ax, 0x0019 |
|
- | 550 | je .supported_device2 |
|
- | 551 | ||
- | 552 | .admtek: |
|
- | 553 | shr eax, 16 |
|
543 | je .supported_device |
554 | DEBUGF 1,"Vendor ok!, device id: 0x%x\n", ax |
544 | 555 | ||
545 | cmp ax, 0x0019 |
556 | cmp ax, 0x0985 |
546 | je .supported_device2 |
557 | je .supported_device |