Lines Matching refs:hw
99 return (readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset)); in ReadISAC()
105 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset, value); in WriteISAC()
111 readfifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in ReadISACfifo()
117 writefifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in WriteISACfifo()
123 return (readreg(cs->hw.niccy.hscx_ale, in ReadHSCX()
124 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX()
130 writereg(cs->hw.niccy.hscx_ale, in WriteHSCX()
131 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX()
134 #define READHSCX(cs, nr, reg) readreg(cs->hw.niccy.hscx_ale, \
135 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0))
136 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.niccy.hscx_ale, \
137 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0), data)
139 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.niccy.hscx_ale, \
140 cs->hw.niccy.hscx, (nr ? 0x40 : 0), ptr, cnt)
142 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.niccy.hscx_ale, \
143 cs->hw.niccy.hscx, (nr ? 0x40 : 0), ptr, cnt)
159 ival = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_interrupt()
162 outl(ival, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_interrupt()
164 val = readreg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_ISTA + 0x40); in niccy_interrupt()
168 val = readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_ISTA); in niccy_interrupt()
172 val = readreg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_ISTA + 0x40); in niccy_interrupt()
178 val = readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_ISTA); in niccy_interrupt()
184 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK, 0xFF); in niccy_interrupt()
185 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK + 0x40, 0xFF); in niccy_interrupt()
186 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_MASK, 0xFF); in niccy_interrupt()
187 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_MASK, 0); in niccy_interrupt()
188 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK, 0); in niccy_interrupt()
189 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK + 0x40, 0); in niccy_interrupt()
198 val = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in release_io_niccy()
200 outl(val, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in release_io_niccy()
201 release_region(cs->hw.niccy.cfg_reg, 0x40); in release_io_niccy()
202 release_region(cs->hw.niccy.isac, 4); in release_io_niccy()
204 release_region(cs->hw.niccy.isac, 2); in release_io_niccy()
205 release_region(cs->hw.niccy.isac_ale, 2); in release_io_niccy()
215 val = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_reset()
217 outl(val, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_reset()
290 cs->hw.niccy.isac = card->para[1] + ISAC_PNP; in setup_niccy()
291 cs->hw.niccy.hscx = card->para[1] + HSCX_PNP; in setup_niccy()
292 cs->hw.niccy.isac_ale = card->para[2] + ISAC_PNP; in setup_niccy()
293 cs->hw.niccy.hscx_ale = card->para[2] + HSCX_PNP; in setup_niccy()
294 cs->hw.niccy.cfg_reg = 0; in setup_niccy()
297 if (check_region((cs->hw.niccy.isac), 2)) { in setup_niccy()
301 cs->hw.niccy.isac, in setup_niccy()
302 cs->hw.niccy.isac + 1); in setup_niccy()
305 request_region(cs->hw.niccy.isac, 2, "niccy data"); in setup_niccy()
306 if (check_region((cs->hw.niccy.isac_ale), 2)) { in setup_niccy()
310 cs->hw.niccy.isac_ale, in setup_niccy()
311 cs->hw.niccy.isac_ale + 1); in setup_niccy()
312 release_region(cs->hw.niccy.isac, 2); in setup_niccy()
315 request_region(cs->hw.niccy.isac_ale, 2, "niccy addr"); in setup_niccy()
334 cs->hw.niccy.cfg_reg = pci_resource_start(niccy_dev, 0); in setup_niccy()
335 if (!cs->hw.niccy.cfg_reg) { in setup_niccy()
350 cs->hw.niccy.isac = pci_ioaddr + ISAC_PCI_DATA; in setup_niccy()
351 cs->hw.niccy.isac_ale = pci_ioaddr + ISAC_PCI_ADDR; in setup_niccy()
352 cs->hw.niccy.hscx = pci_ioaddr + HSCX_PCI_DATA; in setup_niccy()
353 cs->hw.niccy.hscx_ale = pci_ioaddr + HSCX_PCI_ADDR; in setup_niccy()
354 if (check_region((cs->hw.niccy.isac), 4)) { in setup_niccy()
358 cs->hw.niccy.isac, in setup_niccy()
359 cs->hw.niccy.isac + 4); in setup_niccy()
362 request_region(cs->hw.niccy.isac, 4, "niccy"); in setup_niccy()
363 if (check_region(cs->hw.niccy.cfg_reg, 0x40)) { in setup_niccy()
367 cs->hw.niccy.cfg_reg, in setup_niccy()
368 cs->hw.niccy.cfg_reg + 0x40); in setup_niccy()
369 release_region(cs->hw.niccy.isac, 4); in setup_niccy()
372 request_region(cs->hw.niccy.cfg_reg, 0x40, "niccy pci"); in setup_niccy()
383 cs->irq, cs->hw.niccy.isac, cs->hw.niccy.isac_ale); in setup_niccy()