Lines Matching refs:niccy
80 return readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset); in ReadISAC()
85 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset, value); in WriteISAC()
90 readfifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in ReadISACfifo()
95 writefifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in WriteISACfifo()
100 return readreg(cs->hw.niccy.hscx_ale, in ReadHSCX()
101 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0)); in ReadHSCX()
107 writereg(cs->hw.niccy.hscx_ale, in WriteHSCX()
108 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX()
111 #define READHSCX(cs, nr, reg) readreg(cs->hw.niccy.hscx_ale, \
112 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0))
113 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.niccy.hscx_ale, \
114 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0), data)
116 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.niccy.hscx_ale, \
117 cs->hw.niccy.hscx, (nr ? 0x40 : 0), ptr, cnt)
119 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.niccy.hscx_ale, \
120 cs->hw.niccy.hscx, (nr ? 0x40 : 0), ptr, cnt)
133 ival = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_interrupt()
138 outl(ival, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_interrupt()
140 val = readreg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, in niccy_interrupt()
145 val = readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_ISTA); in niccy_interrupt()
149 val = readreg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, in niccy_interrupt()
156 val = readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_ISTA); in niccy_interrupt()
162 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK, 0xFF); in niccy_interrupt()
163 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK + 0x40, in niccy_interrupt()
165 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_MASK, 0xFF); in niccy_interrupt()
166 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, ISAC_MASK, 0); in niccy_interrupt()
167 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK, 0); in niccy_interrupt()
168 writereg(cs->hw.niccy.hscx_ale, cs->hw.niccy.hscx, HSCX_MASK + 0x40, 0); in niccy_interrupt()
178 val = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in release_io_niccy()
180 outl(val, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in release_io_niccy()
181 release_region(cs->hw.niccy.cfg_reg, 0x40); in release_io_niccy()
182 release_region(cs->hw.niccy.isac, 4); in release_io_niccy()
184 release_region(cs->hw.niccy.isac, 2); in release_io_niccy()
185 release_region(cs->hw.niccy.isac_ale, 2); in release_io_niccy()
194 val = inl(cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_reset()
196 outl(val, cs->hw.niccy.cfg_reg + PCI_IRQ_CTRL_REG); in niccy_reset()
278 cs->hw.niccy.isac = card->para[1] + ISAC_PNP; in setup_niccy()
279 cs->hw.niccy.hscx = card->para[1] + HSCX_PNP; in setup_niccy()
280 cs->hw.niccy.isac_ale = card->para[2] + ISAC_PNP; in setup_niccy()
281 cs->hw.niccy.hscx_ale = card->para[2] + HSCX_PNP; in setup_niccy()
282 cs->hw.niccy.cfg_reg = 0; in setup_niccy()
285 if (!request_region(cs->hw.niccy.isac, 2, "niccy data")) { in setup_niccy()
288 cs->hw.niccy.isac, cs->hw.niccy.isac + 1); in setup_niccy()
291 if (!request_region(cs->hw.niccy.isac_ale, 2, "niccy addr")) { in setup_niccy()
294 cs->hw.niccy.isac_ale, in setup_niccy()
295 cs->hw.niccy.isac_ale + 1); in setup_niccy()
296 release_region(cs->hw.niccy.isac, 2); in setup_niccy()
317 cs->hw.niccy.cfg_reg = pci_resource_start(niccy_dev, 0); in setup_niccy()
318 if (!cs->hw.niccy.cfg_reg) { in setup_niccy()
335 cs->hw.niccy.isac = pci_ioaddr + ISAC_PCI_DATA; in setup_niccy()
336 cs->hw.niccy.isac_ale = pci_ioaddr + ISAC_PCI_ADDR; in setup_niccy()
337 cs->hw.niccy.hscx = pci_ioaddr + HSCX_PCI_DATA; in setup_niccy()
338 cs->hw.niccy.hscx_ale = pci_ioaddr + HSCX_PCI_ADDR; in setup_niccy()
339 if (!request_region(cs->hw.niccy.isac, 4, "niccy")) { in setup_niccy()
342 cs->hw.niccy.isac, cs->hw.niccy.isac + 4); in setup_niccy()
345 if (!request_region(cs->hw.niccy.cfg_reg, 0x40, "niccy pci")) { in setup_niccy()
348 cs->hw.niccy.cfg_reg, in setup_niccy()
349 cs->hw.niccy.cfg_reg + 0x40); in setup_niccy()
350 release_region(cs->hw.niccy.isac, 4); in setup_niccy()
361 cs->irq, cs->hw.niccy.isac, cs->hw.niccy.isac_ale); in setup_niccy()