• Home
  • Raw
  • Download

Lines Matching refs:ioaddr

267 #define eepro_full_reset(ioaddr)	outb(RESET_CMD, ioaddr); udelay(255);  argument
270 #define eepro_sel_reset(ioaddr) \ argument
272 outb ( SEL_RESET_CMD, ioaddr ); \
278 #define eepro_clear_int(ioaddr) outb(ALL_MASK, ioaddr + STATUS_REG) argument
281 #define eepro_en_rx(ioaddr) outb(RCV_ENABLE_CMD, ioaddr) argument
284 #define eepro_dis_rx(ioaddr) outb(RCV_DISABLE_CMD, ioaddr) argument
287 #define eepro_sw2bank0(ioaddr) outb(BANK0_SELECT, ioaddr) argument
288 #define eepro_sw2bank1(ioaddr) outb(BANK1_SELECT, ioaddr) argument
289 #define eepro_sw2bank2(ioaddr) outb(BANK2_SELECT, ioaddr) argument
305 eepro_sw2bank2(nic->ioaddr); /* be careful, bank2 now */ in eepro_reset()
306 temp_reg = inb(nic->ioaddr + eeprom_reg); in eepro_reset()
309 outb(temp_reg & 0xEF, nic->ioaddr + eeprom_reg); in eepro_reset()
311 outb(nic->node_addr[i], nic->ioaddr + I_ADD_REG0 + i); in eepro_reset()
312 temp_reg = inb(nic->ioaddr + REG1); in eepro_reset()
315 | RCV_Discard_BadFrame, nic->ioaddr + REG1); in eepro_reset()
316 temp_reg = inb(nic->ioaddr + REG2); /* match broadcast */ in eepro_reset()
317 outb(temp_reg | 0x14, nic->ioaddr + REG2); in eepro_reset()
318 temp_reg = inb(nic->ioaddr + REG3); in eepro_reset()
319 outb(temp_reg & 0x3F, nic->ioaddr + REG3); /* clear test mode */ in eepro_reset()
321 eepro_sw2bank1(nic->ioaddr); /* be careful, bank1 now */ in eepro_reset()
323 outb(RCV_LOWER_LIMIT, nic->ioaddr + RCV_LOWER_LIMIT_REG); in eepro_reset()
324 outb(RCV_UPPER_LIMIT, nic->ioaddr + RCV_UPPER_LIMIT_REG); in eepro_reset()
325 outb(XMT_LOWER_LIMIT, nic->ioaddr + xmt_lower_limit_reg); in eepro_reset()
326 outb(XMT_UPPER_LIMIT, nic->ioaddr + xmt_upper_limit_reg); in eepro_reset()
327 eepro_sw2bank0(nic->ioaddr); /* Switch back to bank 0 */ in eepro_reset()
328 eepro_clear_int(nic->ioaddr); in eepro_reset()
330 outw(rx_start = (RCV_LOWER_LIMIT << 8), nic->ioaddr + RCV_BAR); in eepro_reset()
331 outw(((RCV_UPPER_LIMIT << 8) | 0xFE), nic->ioaddr + RCV_STOP); in eepro_reset()
333 outw((RCV_LOWER_LIMIT << 8), nic->ioaddr + HOST_ADDRESS_REG); in eepro_reset()
334 outw(0, nic->ioaddr + IO_PORT); in eepro_reset()
336 outw((XMT_LOWER_LIMIT << 8), nic->ioaddr + xmt_bar); in eepro_reset()
337 eepro_sel_reset(nic->ioaddr); in eepro_reset()
340 eepro_en_rx(nic->ioaddr); in eepro_reset()
355 if ((inb(nic->ioaddr + STATUS_REG) & 0x40) == 0) in eepro_poll()
357 outb(0x40, nic->ioaddr + STATUS_REG); in eepro_poll()
359 outw(rcv_car, nic->ioaddr + HOST_ADDRESS_REG); in eepro_poll()
360 rcv_event = inw(nic->ioaddr + IO_PORT); in eepro_poll()
369 rcv_status = inw(nic->ioaddr + IO_PORT); in eepro_poll()
370 rcv_next_frame = inw(nic->ioaddr + IO_PORT); in eepro_poll()
371 rcv_size = inw(nic->ioaddr + IO_PORT); in eepro_poll()
374 inb(nic->ioaddr + STATUS_REG)); in eepro_poll()
381 insw(nic->ioaddr + IO_PORT, nic->packet, ((rcv_size + 3) >> 1)); in eepro_poll()
400 outw(rcv_car - 1, nic->ioaddr + RCV_STOP); in eepro_poll()
431 outw(last, nic->ioaddr + HOST_ADDRESS_REG); in eepro_transmit()
432 outw(XMT_CMD, nic->ioaddr + IO_PORT); in eepro_transmit()
433 outw(0, nic->ioaddr + IO_PORT); in eepro_transmit()
434 outw(end, nic->ioaddr + IO_PORT); in eepro_transmit()
435 outw(length, nic->ioaddr + IO_PORT); in eepro_transmit()
436 outsw(nic->ioaddr + IO_PORT, d, ETH_ALEN / 2); in eepro_transmit()
437 outsw(nic->ioaddr + IO_PORT, nic->node_addr, ETH_ALEN / 2); in eepro_transmit()
439 outsw(nic->ioaddr + IO_PORT, &type, sizeof(type) / 2); in eepro_transmit()
440 outsw(nic->ioaddr + IO_PORT, p, (s + 3) >> 1); in eepro_transmit()
442 status = inw(nic->ioaddr + IO_PORT); in eepro_transmit()
443 outw(last, nic->ioaddr + xmt_bar); in eepro_transmit()
444 outb(XMT_CMD, nic->ioaddr); in eepro_transmit()
452 if (((status = inw(nic->ioaddr + IO_PORT)) & TX_DONE_BIT) == 0) { in eepro_transmit()
467 eepro_sw2bank0(nic->ioaddr); /* Switch to bank 0 */ in eepro_disable()
469 outb(STOP_RCV_CMD, nic->ioaddr); in eepro_disable()
473 eepro_full_reset(nic->ioaddr); in eepro_disable()
491 static int read_eeprom(uint16_t ioaddr, int location) in read_eeprom() argument
495 int ee_addr = ioaddr + eeprom_reg; in read_eeprom()
500 eepro_sw2bank1(ioaddr); in read_eeprom()
501 outb(0x00, ioaddr + STATUS_REG); in read_eeprom()
503 eepro_sw2bank2(ioaddr); in read_eeprom()
528 eepro_sw2bank0(ioaddr); in read_eeprom()
532 static int eepro_probe1 ( isa_probe_addr_t ioaddr ) { in eepro_probe1() argument
535 id = inb(ioaddr + ID_REG); in eepro_probe1()
539 if (((id = inb(ioaddr + ID_REG)) & R_ROBIN_BITS) != (counter + 0x40)) in eepro_probe1()
566 nic->ioaddr = isa->ioaddr; in eepro_probe()
568 station_addr.saddr[2] = read_eeprom(nic->ioaddr,2); in eepro_probe()
577 station_addr.saddr[2] = read_eeprom(nic->ioaddr,2); in eepro_probe()
579 station_addr.saddr[1] = read_eeprom(nic->ioaddr,3); in eepro_probe()
580 station_addr.saddr[0] = read_eeprom(nic->ioaddr,4); in eepro_probe()
583 else if (read_eeprom(nic->ioaddr,7) == ee_FX_INT2IRQ) { in eepro_probe()
600 DBG ( "%s ioaddr %#hX, addr %s", name, nic->ioaddr, eth_ntoa ( nic->node_addr ) ); in eepro_probe()
610 GetBit(read_eeprom(nic->ioaddr,5), ee_BNC_TPE) ? "BNC" : "TP"); in eepro_probe()