Home | History | Annotate | Download | only in netboot

Lines Matching refs:ioaddr

245     unsigned int	IOAddr;
256 a3c90x_internal_IssueCommand(int ioaddr, int cmd, int param)
266 outw(val, ioaddr + regCommandIntStatus_w);
269 while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
278 a3c90x_internal_SetWindow(int ioaddr, int window)
285 a3c90x_internal_IssueCommand(ioaddr, cmdSelectRegisterWindow, window);
295 a3c90x_internal_ReadEeprom(int ioaddr, int address)
300 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winEepromBios0);
303 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
306 outw(address + ((0x02)<<6), ioaddr + regEepromCommand_0_w);
307 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
308 val = inw(ioaddr + regEepromData_0_w);
320 a3c90x_internal_WriteEepromWord(int ioaddr, int address, unsigned short value)
323 a3c90x_internal_SetWindow(ioaddr, winEepromBios0);
326 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
329 outw(0x30, ioaddr + regEepromCommand_0_w);
330 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
333 outw(address + ((0x03)<<6), ioaddr + regEepromCommand_0_w);
334 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
337 outw(value, ioaddr + regEepromData_0_w);
338 outw(0x30, ioaddr + regEepromCommand_0_w);
339 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
342 outw(address + ((0x01)<<6), ioaddr + regEepromCommand_0_w);
343 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
353 a3c90x_internal_WriteEeprom(int ioaddr, int address, unsigned short value)
371 if (a3c90x_internal_WriteEepromWord(ioaddr, address, value) == -1)
377 v = a3c90x_internal_ReadEeprom(ioaddr, i);
382 if (a3c90x_internal_WriteEepromWord(ioaddr, cksumAddress, cksum) == -1)
403 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winTxRxOptions3);
404 cfg = inl(INF_3C90X.IOAddr + regInternalConfig_3_l);
409 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdGlobalReset, 0);
412 while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
417 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winAddressing2);
418 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+0);
419 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+2);
420 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+4);
424 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winTxRxOptions3);
425 outl(cfg, INF_3C90X.IOAddr + regInternalConfig_3_l);
430 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdEnableDcConverter, 0);
435 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxReset, 0);
436 while (inw(INF_3C90X.IOAddr
439 outb(0x01, INF_3C90X.IOAddr + regTxFreeThresh_b);
440 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxEnable, 0);
447 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxReset, 0x04);
449 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxReset, 0x00);
450 while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
452 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxEnable, 0);
454 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr,
457 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr,
460 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr,
493 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdStallCtl, 2);
496 inw(INF_3C90X.IOAddr + regCommandIntStatus_w);
497 inw(INF_3C90X.IOAddr + regCommandIntStatus_w);
499 while (inw(INF_3C90X.IOAddr+regCommandIntStatus_w) &
523 INF_3C90X.IOAddr + regDnListPtr_l);
526 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdStallCtl, 3);
527 while(inl(INF_3C90X.IOAddr + regDnListPtr_l) != 0)
532 while (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004) &&
536 if (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004))
542 status = inb(INF_3C90X.IOAddr + regTxStatus_b);
545 outb(0x00, INF_3C90X.IOAddr + regTxStatus_b);
562 outb(0x00, INF_3C90X.IOAddr + regTxStatus_b);
564 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxEnable, 0);
570 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxEnable, 0);
608 if (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0010))
625 INF_3C90X.IOAddr + regUpListPtr_l);
669 outw(cmdRxDisable, INF_3C90X.IOAddr + regCommandIntStatus_w);
670 outw(cmdTxDisable, INF_3C90X.IOAddr + regCommandIntStatus_w);
693 INF_3C90X.IOAddr = probeaddrs[0] & ~3;
695 switch (a3c90x_internal_ReadEeprom(INF_3C90X.IOAddr, 0x03))
721 eeprom[i] = a3c90x_internal_ReadEeprom(INF_3C90X.IOAddr, i);
727 a3c90x_internal_WriteEeprom(INF_3C90X.IOAddr, 0x13, 0x0160);
734 a3c90x_internal_WriteEeprom(INF_3C90X.IOAddr, 0x16, 0);
741 a3c90x_internal_WriteEeprom(INF_3C90X.IOAddr, 0x16,
750 eeprom[i] = a3c90x_internal_ReadEeprom(INF_3C90X.IOAddr, i);
772 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winAddressing2);
773 outw(htons(eeprom[0]), INF_3C90X.IOAddr + regStationAddress_2_3w);
774 outw(htons(eeprom[1]), INF_3C90X.IOAddr + regStationAddress_2_3w+2);
775 outw(htons(eeprom[2]), INF_3C90X.IOAddr + regStationAddress_2_3w+4);
776 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+0);
777 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+2);
778 outw(0, INF_3C90X.IOAddr + regStationMask_2_3w+4);
790 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winTxRxOptions3);
791 mopt = inw(INF_3C90X.IOAddr + regResetMediaOptions_3_w);
875 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdEnableDcConverter, 0);
879 a3c90x_internal_SetWindow(INF_3C90X.IOAddr, winTxRxOptions3);
880 cfg = inl(INF_3C90X.IOAddr + regInternalConfig_3_l);
883 outl(cfg, INF_3C90X.IOAddr + regInternalConfig_3_l);
886 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxReset, 0x00);
887 while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS)
891 outb(0x01, INF_3C90X.IOAddr + regTxFreeThresh_b);
893 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdTxEnable, 0);
900 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxReset, 0x04);
902 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxReset, 0x00);
903 while (inw(INF_3C90X.IOAddr + regCommandIntStatus_w) & INT_CMDINPROGRESS)
907 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdSetRxFilter, 0x01 + 0x04);
908 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdRxEnable, 0);
914 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdSetInterruptEnable, 0);
915 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr,
917 a3c90x_internal_IssueCommand(INF_3C90X.IOAddr,