Rev 4301 | Rev 4467 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4301 | Rev 4334 | ||
---|---|---|---|
Line 631... | Line 631... | ||
631 | 631 | ||
632 | call init_board |
632 | call init_board |
633 | call read_mac |
633 | call read_mac |
Line 634... | Line 634... | ||
634 | call PHY_config |
634 | call PHY_config |
635 | 635 | ||
636 | ; DEBUGF 1,"K : Set MAC Reg C+CR Offset 0x82h = 0x01h\n" |
636 | DEBUGF 1,"Set MAC Reg C+CR Offset 0x82h = 0x01h\n" |
637 | set_io 0 |
637 | set_io 0 |
638 | set_io 0x82 |
638 | set_io 0x82 |
639 | mov al, 0x01 |
639 | mov al, 0x01 |
640 | out dx, al |
640 | out dx, al |
641 | cmp [tpc.mcfg], MCFG_METHOD_03 |
641 | cmp [tpc.mcfg], MCFG_METHOD_03 |
642 | jae @f |
642 | jae @f |
643 | ; DEBUGF 1,"K : Set PCI Latency=0x40\n" |
643 | DEBUGF 1,"Set PCI Latency=0x40\n" |
644 | ; stdcall pci_write_config_byte,PCI_LATENCY_TIMER,0x40 |
644 | PCI_adjust_latency 0x40 |
645 | @@: |
645 | @@: |
646 | cmp [tpc.mcfg], MCFG_METHOD_02 |
646 | cmp [tpc.mcfg], MCFG_METHOD_02 |
647 | jne @f |
647 | jne @f |
648 | ; DEBUGF 1,"K : Set MAC Reg C+CR Offset 0x82h = 0x01h\n" |
648 | DEBUGF 1,"Set MAC Reg C+CR Offset 0x82h = 0x01h\n" |
649 | set_io 0x82 |
649 | set_io 0x82 |
650 | mov al, 0x01 |
650 | mov al, 0x01 |
651 | out dx, al |
651 | out dx, al |
652 | ; DEBUGF 1,"K : Set PHY Reg 0x0bh = 0x00h\n" |
652 | DEBUGF 1,"Set PHY Reg 0x0bh = 0x00h\n" |
653 | WRITE_GMII_REG 0x0b, 0x0000 ; w 0x0b 15 0 0 |
653 | WRITE_GMII_REG 0x0b, 0x0000 ; w 0x0b 15 0 0 |
654 | @@: |
654 | @@: |
655 | ; if TBI is not enabled |
655 | ; if TBI is not enabled |
Line 1101... | Line 1101... | ||
1101 | xor eax, eax |
1101 | xor eax, eax |
1102 | ret 8 |
1102 | ret 8 |
Line 1103... | Line 1103... | ||
1103 | 1103 | ||
1104 | .fail: |
1104 | .fail: |
1105 | DEBUGF 1,"transmit failed\n" |
- | |
1106 | or eax, -1 |
1105 | DEBUGF 1,"transmit failed\n" |
- | 1106 | stdcall KernelFree, [esp+4] |
|
1107 | stdcall KernelFree, [esp+4] |
1107 | or eax, -1 |
Line 1108... | Line 1108... | ||
1108 | ret 8 |
1108 | ret 8 |
Line 1120... | Line 1120... | ||
1120 | align 4 |
1120 | align 4 |
1121 | int_handler: |
1121 | int_handler: |
Line 1122... | Line 1122... | ||
1122 | 1122 | ||
Line 1123... | Line 1123... | ||
1123 | push ebx esi edi |
1123 | push ebx esi edi |
Line 1124... | Line 1124... | ||
1124 | 1124 | ||
Line 1125... | Line 1125... | ||
1125 | DEBUGF 1,"\n%s int\n", my_service |
1125 | DEBUGF 1,"INT\n" |
1126 | 1126 |