Lines Matching refs:ioaddr
65 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_from_card() local
69 ioaddr, COM20020_REG_W_ADDR_HI); in com20020_copy_from_card()
70 arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); in com20020_copy_from_card()
74 arcnet_insb(ioaddr, COM20020_REG_RW_MEMDATA, buf, count)); in com20020_copy_from_card()
80 int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; in com20020_copy_to_card() local
83 arcnet_outb((ofs >> 8) | AUTOINCflag, ioaddr, COM20020_REG_W_ADDR_HI); in com20020_copy_to_card()
84 arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); in com20020_copy_to_card()
88 arcnet_outsb(ioaddr, COM20020_REG_RW_MEMDATA, buf, count)); in com20020_copy_to_card()
94 int ioaddr = dev->base_addr, status; in com20020_check() local
97 arcnet_outb(XTOcfg(3) | RESETcfg, ioaddr, COM20020_REG_W_CONFIG); in com20020_check()
99 arcnet_outb(XTOcfg(3), ioaddr, COM20020_REG_W_CONFIG); in com20020_check()
109 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_check()
110 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_check()
113 com20020_set_subaddress(lp, ioaddr, SUB_SETUP2); in com20020_check()
114 arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG); in com20020_check()
118 arcnet_outb(STARTIOcmd, ioaddr, COM20020_REG_W_COMMAND); in com20020_check()
123 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_check()
124 arcnet_outb(0x42, ioaddr, COM20020_REG_W_XREG); in com20020_check()
126 status = arcnet_inb(ioaddr, COM20020_REG_R_STATUS); in com20020_check()
135 ioaddr, COM20020_REG_W_COMMAND); in com20020_check()
136 status = arcnet_inb(ioaddr, COM20020_REG_R_STATUS); in com20020_check()
142 ioaddr, COM20020_REG_W_ADDR_HI); in com20020_check()
143 arcnet_outb(0, ioaddr, COM20020_REG_W_ADDR_LO); in com20020_check()
145 status = arcnet_inb(ioaddr, COM20020_REG_RW_MEMDATA); in com20020_check()
156 int ioaddr = dev->base_addr; in com20020_set_hwaddr() local
161 com20020_set_subaddress(lp, ioaddr, SUB_NODE); in com20020_set_hwaddr()
162 arcnet_outb(dev->dev_addr[0], ioaddr, COM20020_REG_W_XREG); in com20020_set_hwaddr()
169 int ioaddr = dev->base_addr; in com20020_netdev_open() local
173 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_netdev_open()
180 int ioaddr = dev->base_addr; in com20020_netdev_close() local
187 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_netdev_close()
206 int ioaddr = dev->base_addr; in com20020_found() local
223 dev->dev_addr[0] = arcnet_inb(ioaddr, 8); in com20020_found()
225 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_found()
226 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_found()
229 com20020_set_subaddress(lp, ioaddr, SUB_SETUP2); in com20020_found()
230 arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG); in com20020_found()
234 arcnet_outb(STARTIOcmd, ioaddr, COM20020_REG_W_COMMAND); in com20020_found()
239 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_found()
240 arcnet_outb(dev->dev_addr[0], ioaddr, COM20020_REG_W_XREG); in com20020_found()
285 u_int ioaddr = dev->base_addr; in com20020_reset() local
291 dev->name, arcnet_inb(ioaddr, COM20020_REG_R_STATUS)); in com20020_reset()
296 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
301 arcnet_outb(lp->config | RESETcfg, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
303 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_reset()
310 ioaddr, COM20020_REG_W_COMMAND); in com20020_reset()
324 arcnet_outb(CONFIGcmd | EXTconf, ioaddr, COM20020_REG_W_COMMAND); in com20020_reset()
334 u_int ioaddr = dev->base_addr; in com20020_setmask() local
336 arc_printk(D_DURING, dev, "Setting mask to %x at %x\n", mask, ioaddr); in com20020_setmask()
337 arcnet_outb(mask, ioaddr, COM20020_REG_W_INTMASK); in com20020_setmask()
342 u_int ioaddr = dev->base_addr; in com20020_command() local
344 arcnet_outb(cmd, ioaddr, COM20020_REG_W_COMMAND); in com20020_command()
349 u_int ioaddr = dev->base_addr; in com20020_status() local
351 return arcnet_inb(ioaddr, COM20020_REG_R_STATUS) + in com20020_status()
352 (arcnet_inb(ioaddr, COM20020_REG_R_DIAGSTAT) << 8); in com20020_status()
358 int ioaddr = dev->base_addr; in com20020_close() local
362 arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG); in com20020_close()
375 int ioaddr = dev->base_addr; in com20020_set_mc_list() local
381 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
383 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()
388 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_set_mc_list()
390 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list()