Rev 1161 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1161 | Rev 1173 | ||
---|---|---|---|
Line 147... | Line 147... | ||
147 | ISR_OVW equ 0x10 ; Overflow |
147 | ISR_OVW equ 0x10 ; Overflow |
148 | ISR_CNT equ 0x20 ; Counter overflow |
148 | ISR_CNT equ 0x20 ; Counter overflow |
149 | ISR_RDC equ 0x40 ; Remote DMA complete |
149 | ISR_RDC equ 0x40 ; Remote DMA complete |
150 | ISR_RST equ 0x80 ; reset |
150 | ISR_RST equ 0x80 ; reset |
Line 151... | Line 151... | ||
151 | 151 | ||
Line 152... | Line 152... | ||
152 | IRQ_MASK equ ISR_PRX + ISR_PTX + ISR_TXE |
152 | IRQ_MASK equ ISR_PRX ; + ISR_PTX + ISR_TXE |
153 | 153 | ||
154 | RSTAT_PRX equ 0x01 ; successful recv |
154 | RSTAT_PRX equ 0x01 ; successful recv |
155 | RSTAT_CRC equ 0x02 ; CRC error |
155 | RSTAT_CRC equ 0x02 ; CRC error |
Line 457... | Line 457... | ||
457 | add ax, NE_ASIC_OFFSET |
457 | add ax, NE_ASIC_OFFSET |
458 | mov [ebp + device.asic_base], ax |
458 | mov [ebp + device.asic_base], ax |
Line 459... | Line 459... | ||
459 | 459 | ||
Line 460... | Line 460... | ||
460 | DEBUGF 2,"Trying 16-bit mode\n" |
460 | DEBUGF 2,"Trying 16-bit mode\n" |
461 | 461 | ||
462 | or [ebp + device.flags], FLAG_16BIT |
462 | or [ebp + device.flags], FLAG_16BIT or FLAG_PIO |
463 | mov [ebp + device.memsize], MEM_32768 |
463 | mov [ebp + device.memsize], MEM_32768 |
Line 464... | Line 464... | ||
464 | mov [ebp + device.tx_start], 64 |
464 | mov [ebp + device.tx_start], 64 |
Line 705... | Line 705... | ||
705 | ; Read MAC address |
705 | ; Read MAC address |
706 | mov ebx, ebp ;---- |
706 | mov ebx, ebp ;---- |
707 | call read_mac |
707 | call read_mac |
Line 708... | Line 708... | ||
708 | 708 | ||
- | 709 | ; clear interupt status |
|
709 | ; clear interupt status |
710 | set_io 0 |
710 | set_io P0_ISR |
711 | set_io P0_ISR |
711 | mov al, 0xff |
712 | mov al, 0xff |
Line 712... | Line 713... | ||
712 | out dx, al |
713 | out dx, al |