Lines Matching refs:njet
36 if (!((sval = bytein(cs->hw.njet.base + NETJET_IRQSTAT1)) & in netjet_u_interrupt()
49 if (inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR) < in netjet_u_interrupt()
50 inl(cs->hw.njet.base + NETJET_DMA_WRITE_IRQ)) in netjet_u_interrupt()
55 if (inl(cs->hw.njet.base + NETJET_DMA_READ_ADR) < in netjet_u_interrupt()
56 inl(cs->hw.njet.base + NETJET_DMA_READ_IRQ)) in netjet_u_interrupt()
61 if (sval != cs->hw.njet.last_is0) /* we have a DMA interrupt */ in netjet_u_interrupt()
67 cs->hw.njet.irqstat0 = sval; in netjet_u_interrupt()
68 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_READ) != in netjet_u_interrupt()
69 (cs->hw.njet.last_is0 & NETJET_IRQM0_READ)) in netjet_u_interrupt()
72 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_WRITE) != in netjet_u_interrupt()
73 (cs->hw.njet.last_is0 & NETJET_IRQM0_WRITE)) in netjet_u_interrupt()
86 cs->hw.njet.ctrl_reg = 0xff; /* Reset On */ in reset_netjet_u()
87 byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg); in reset_netjet_u()
89 cs->hw.njet.ctrl_reg = 0x40; /* Reset Off and status read clear */ in reset_netjet_u()
91 byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg); in reset_netjet_u()
93 cs->hw.njet.auxd = 0xC0; in reset_netjet_u()
94 cs->hw.njet.dmactrl = 0; in reset_netjet_u()
95 byteout(cs->hw.njet.auxa, 0); in reset_netjet_u()
96 byteout(cs->hw.njet.base + NETJET_AUXCTRL, ~NETJET_ISACIRQ); in reset_netjet_u()
97 byteout(cs->hw.njet.base + NETJET_IRQMASK1, NETJET_ISACIRQ); in reset_netjet_u()
98 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in reset_netjet_u()
141 cs->hw.njet.base = pci_resource_start(dev_netjet, 0); in nju_pci_probe()
142 if (!cs->hw.njet.base) { in nju_pci_probe()
152 cs->hw.njet.auxa = cs->hw.njet.base + NETJET_AUXDATA; in nju_cs_init()
153 cs->hw.njet.isac = cs->hw.njet.base | NETJET_ISAC_OFF; in nju_cs_init()
156 cs->hw.njet.ctrl_reg = 0xff; /* Reset On */ in nju_cs_init()
157 byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg); in nju_cs_init()
160 cs->hw.njet.ctrl_reg = 0x00; /* Reset Off and status read clear */ in nju_cs_init()
161 byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg); in nju_cs_init()
164 cs->hw.njet.auxd = 0xC0; in nju_cs_init()
165 cs->hw.njet.dmactrl = 0; in nju_cs_init()
167 byteout(cs->hw.njet.auxa, 0); in nju_cs_init()
168 byteout(cs->hw.njet.base + NETJET_AUXCTRL, ~NETJET_ISACIRQ); in nju_cs_init()
169 byteout(cs->hw.njet.base + NETJET_IRQMASK1, NETJET_ISACIRQ); in nju_cs_init()
170 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in nju_cs_init()
194 cs->hw.njet.base, cs->irq); in nju_cs_init_rest()
195 if (!request_region(cs->hw.njet.base, bytecnt, "netspider-u isdn")) { in nju_cs_init_rest()
199 cs->hw.njet.base, in nju_cs_init_rest()
200 cs->hw.njet.base + bytecnt); in nju_cs_init_rest()