Lines Matching refs:spt
56 return (bytein(calc_off(cs->hw.spt.isac, offset))); in ReadISAC()
62 byteout(calc_off(cs->hw.spt.isac, offset), value); in WriteISAC()
68 read_fifo(cs->hw.spt.isac, data, size); in ReadISACfifo()
74 write_fifo(cs->hw.spt.isac, data, size); in WriteISACfifo()
80 return (bytein(calc_off(cs->hw.spt.hscx[hscx], offset))); in ReadHSCX()
86 byteout(calc_off(cs->hw.spt.hscx[hscx], offset), value); in WriteHSCX()
93 #define READHSCX(cs, nr, reg) bytein(calc_off(cs->hw.spt.hscx[nr], reg))
94 #define WRITEHSCX(cs, nr, reg, data) byteout(calc_off(cs->hw.spt.hscx[nr], reg), data)
95 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.spt.hscx[nr], ptr, cnt)
96 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.spt.hscx[nr], ptr, cnt)
129 bytein(cs->hw.spt.cfg_reg + SPORTSTER_RES_IRQ + 1); in sportster_interrupt()
139 byteout(cs->hw.spt.cfg_reg + SPORTSTER_RES_IRQ, 0); in release_io_sportster()
141 adr = cs->hw.spt.cfg_reg + i * 1024; in release_io_sportster()
149 cs->hw.spt.res_irq |= SPORTSTER_RESET; /* Reset On */ in reset_sportster()
150 byteout(cs->hw.spt.cfg_reg + SPORTSTER_RES_IRQ, cs->hw.spt.res_irq); in reset_sportster()
152 cs->hw.spt.res_irq &= ~SPORTSTER_RESET; /* Reset Off */ in reset_sportster()
153 byteout(cs->hw.spt.cfg_reg + SPORTSTER_RES_IRQ, cs->hw.spt.res_irq); in reset_sportster()
175 cs->hw.spt.res_irq |= SPORTSTER_INTE; /* IRQ On */ in Sportster_card_msg()
176 byteout(cs->hw.spt.cfg_reg + SPORTSTER_RES_IRQ, cs->hw.spt.res_irq); in Sportster_card_msg()
191 adr = cs->hw.spt.cfg_reg + i * 1024; in get_io_range()
203 adr = cs->hw.spt.cfg_reg + j * 1024; in get_io_range()
220 cs->hw.spt.cfg_reg = card->para[1]; in setup_sportster()
224 cs->hw.spt.isac = cs->hw.spt.cfg_reg + SPORTSTER_ISAC; in setup_sportster()
225 cs->hw.spt.hscx[0] = cs->hw.spt.cfg_reg + SPORTSTER_HSCXA; in setup_sportster()
226 cs->hw.spt.hscx[1] = cs->hw.spt.cfg_reg + SPORTSTER_HSCXB; in setup_sportster()
229 case 5: cs->hw.spt.res_irq = 1; in setup_sportster()
231 case 7: cs->hw.spt.res_irq = 2; in setup_sportster()
233 case 10:cs->hw.spt.res_irq = 3; in setup_sportster()
235 case 11:cs->hw.spt.res_irq = 4; in setup_sportster()
237 case 12:cs->hw.spt.res_irq = 5; in setup_sportster()
239 case 14:cs->hw.spt.res_irq = 6; in setup_sportster()
241 case 15:cs->hw.spt.res_irq = 7; in setup_sportster()
248 cs->irq, cs->hw.spt.cfg_reg); in setup_sportster()