Searched defs:ioaddr (Results 1 - 15 of 15) sorted by relevance

/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Dnic.h35 unsigned int ioaddr; member in struct:nic
H A Dpci.c269 uint32_t l, membase, ioaddr, romaddr; local
361 /* Get the ``ioaddr'' */
363 pcibios_read_config_dword(bus, devfn, reg, &ioaddr);
364 if ((ioaddr & PCI_BASE_ADDRESS_IO_MASK) == 0 || (ioaddr & PCI_BASE_ADDRESS_SPACE_IO) == 0)
369 ioaddr &= PCI_BASE_ADDRESS_IO_MASK;
372 dev->ioaddr = ioaddr;
H A Ddavicom.c133 static unsigned long ioaddr; variable
156 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
219 io_dcr9 = ioaddr + CSR9;
263 io_dcr9 = ioaddr + CSR9;
358 outl(csr6, ioaddr + CSR6);
377 outl(csr6, ioaddr + CSR6);
393 static int read_eeprom(unsigned long ioaddr, int location, int addr_len)
397 long ee_addr = ioaddr + CSR9;
488 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr
389 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A Depic100.c62 static int ioaddr; variable
105 if (pci->ioaddr == 0)
113 ioaddr = pci->ioaddr;
115 nic->ioaddr = pci->ioaddr & ~3;
118 command = ioaddr + COMMAND; /* Control Register */
119 intstat = ioaddr + INTSTAT; /* Interrupt Status */
120 intmask = ioaddr + INTMASK; /* Interrupt Mask */
121 genctl = ioaddr
[all...]
H A Dsis900.c57 static unsigned long ioaddr; variable
201 /* long ioaddr = net_dev->base_addr; */
202 long ee_addr = ioaddr + mear;
282 rfcrSave = inl(rfcr + ioaddr);
284 outl(rfcrSave | RELOAD, ioaddr + cr);
285 outl(0, ioaddr + cr);
288 outl(rfcrSave & ~RFEN, rfcr + ioaddr);
292 outl((i << RFADDR_shift), ioaddr + rfcr);
293 *( ((u16 *)nic->node_addr) + i) = inw(ioaddr + rfdr);
297 outl(rfcrSave | RFEN, rfcr + ioaddr);
[all...]
H A Dnatsemi.c192 static unsigned long ioaddr; variable
236 * leaves the ioaddress of the natsemi chip in the variable ioaddr.
250 if (pci->ioaddr == 0)
258 nic->ioaddr = pci->ioaddr & ~3;
260 ioaddr = pci->ioaddr & ~3;
278 prev_eedata = eeprom_read(ioaddr, 6);
280 int eedata = eeprom_read(ioaddr, i + 7);
286 printf("\nnatsemi_probe: MAC addr %! at ioaddr
[all...]
H A D3c90x.c255 a3c90x_internal_IssueCommand(int ioaddr, int cmd, int param) argument
265 outw(val, ioaddr + regCommandIntStatus_w);
268 while (inw(ioaddr + regCommandIntStatus_w) & INT_CMDINPROGRESS);
277 a3c90x_internal_SetWindow(int ioaddr, int window) argument
284 a3c90x_internal_IssueCommand(ioaddr, cmdSelectRegisterWindow, window);
294 a3c90x_internal_ReadEeprom(int ioaddr, int address) argument
302 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
305 outw(address + ((0x02)<<6), ioaddr + regEepromCommand_0_w);
306 while((1<<15) & inw(ioaddr + regEepromCommand_0_w));
307 val = inw(ioaddr
[all...]
H A Deepro100.c102 static int ioaddr; variable
291 ioaddr + SCBCtrlMDI);
295 val = inl(ioaddr + SCBCtrlMDI);
312 outl(0x08000000 | (location<<16) | (phy_id<<21), ioaddr + SCBCtrlMDI);
316 val = inl(ioaddr + SCBCtrlMDI);
336 long ee_addr = ioaddr + SCBeeprom;
397 status = inw(ioaddr + SCBStatus);
399 outw(status & 0xfc00, ioaddr + SCBStatus);
403 t, s, status, inw (ioaddr + SCBCmd));
428 outl(virt_to_bus(&txfd), ioaddr
[all...]
H A Dpci.h272 /* membase and ioaddr are silly and depricated */
274 unsigned int ioaddr; member in struct:pci_device
H A Dpcnet32.c64 static u32 ioaddr; /* Globally used for the card's io address */ variable
444 lp->a.reset(ioaddr);
447 lp->a.write_bcr(ioaddr, 20, 2);
450 val = lp->a.read_bcr(ioaddr, 2) & ~2;
453 lp->a.write_bcr(ioaddr, 2, val);
456 val = lp->a.read_bcr(ioaddr, 9) & ~3;
465 read_csr(ioaddr,
466 88) | (lp->a.read_csr(ioaddr,
472 lp->a.write_bcr(ioaddr, 9, val);
476 val = lp->a.read_csr(ioaddr, 12
[all...]
H A Dr8169.c64 static u32 ioaddr; variable
121 #define RTL_W8(reg, val8) writeb ((val8), ioaddr + (reg))
122 #define RTL_W16(reg, val16) writew ((val16), ioaddr + (reg))
123 #define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg))
124 #define RTL_R8(reg) readb (ioaddr + (reg))
125 #define RTL_R16(reg) readw (ioaddr + (reg))
126 #define RTL_R32(reg) ((unsigned long) readl (ioaddr + (reg)))
381 ioaddr = (unsigned long) ioremap(rtreg_base, rtreg_len);
382 if (ioaddr == 0)
385 tpc->mmio_addr = &ioaddr;
[all...]
H A Dsundance.c309 static int eeprom_read(long ioaddr, int location);
454 intr_status = inw(nic->ioaddr + IntrStatus);
458 outw(intr_status, nic->ioaddr + IntrEnable);
485 intr_status = inw(nic->ioaddr + IntrStatus);
486 outw(intr_status, nic->ioaddr + IntrStatus);
508 nic->ioaddr + IntrStatus);
593 if (pci->ioaddr == 0)
597 BASE = pci->ioaddr;
627 printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
747 nic->ioaddr
754 eeprom_read(long ioaddr, int location) argument
[all...]
H A Dw89c840.c259 static int ioaddr; variable
264 static int eeprom_read(long ioaddr, int location);
309 writel(0x00000001, ioaddr + PCIBusCfg);
313 writel(virt_to_bus(w840private.rx_ring), ioaddr + RxRingPtr);
314 writel(virt_to_bus(w840private.tx_ring), ioaddr + TxRingPtr);
317 writeb(nic->node_addr[i], ioaddr + StationAddr + i);
331 writel(0xE010, ioaddr + PCIBusCfg);
333 writel(0, ioaddr + RxStartDemand);
340 writel(0x1A0F5, ioaddr + IntrStatus);
341 writel(0x1A0F5, ioaddr
[all...]
H A Dtulip.c392 static u32 ioaddr; variable
481 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
571 long mdio_addr = ioaddr + CSR9;
579 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
580 inl(ioaddr + 0xA0);
581 inl(ioaddr + 0xA0);
583 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000))
591 return inl(ioaddr + 0xB4 + (location<<2));
593 return inl(ioaddr + 0xD0);
595 return inl(ioaddr
690 read_eeprom(unsigned long ioaddr, int location, int addr_len) argument
[all...]
H A Dvia-rhine.c50 /* define all ioaddr */
52 #define byPAR0 ioaddr
53 #define byRCR ioaddr + 6
54 #define byTCR ioaddr + 7
55 #define byCR0 ioaddr + 8
56 #define byCR1 ioaddr + 9
57 #define byISR0 ioaddr + 0x0c
58 #define byISR1 ioaddr + 0x0d
59 #define byIMR0 ioaddr + 0x0e
60 #define byIMR1 ioaddr
640 unsigned short ioaddr; member in struct:rhine_private
713 QueryAuto(int ioaddr) argument
739 ReadMII(int byMIIIndex, int ioaddr) argument
777 WriteMII(char byMIISetByte, char byMIISetBit, char byMIIOP, int ioaddr) argument
936 int ioaddr = tp->ioaddr; local
947 rhine_probe1(struct nic *nic, int ioaddr, int chip_id, int options) argument
1076 int ioaddr = tp->ioaddr; local
1095 int ioaddr = tp->ioaddr; local
1253 int ioaddr = tp->ioaddr; local
[all...]

Completed in 69 milliseconds