Lines Matching full:board

53  * The board configuration is probably following:
120 struct kvaser_pci *board = priv->priv; in kvaser_pci_disable_irq() local
124 intcsr = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq()
126 iowrite32(intcsr, board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq()
132 struct kvaser_pci *board = priv->priv; in kvaser_pci_enable_irq() local
136 tmp_en_io = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq()
138 iowrite32(tmp_en_io, board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq()
163 struct kvaser_pci *board; in kvaser_pci_del_chan() local
169 board = priv->priv; in kvaser_pci_del_chan()
170 if (!board) in kvaser_pci_del_chan()
173 dev_info(&board->pci_dev->dev, "Removing device %s\n", in kvaser_pci_del_chan()
179 for (i = 0; i < board->no_channels - 1; i++) { in kvaser_pci_del_chan()
180 if (board->slave_dev[i]) { in kvaser_pci_del_chan()
181 dev_info(&board->pci_dev->dev, "Removing device %s\n", in kvaser_pci_del_chan()
182 board->slave_dev[i]->name); in kvaser_pci_del_chan()
183 unregister_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan()
184 free_sja1000dev(board->slave_dev[i]); in kvaser_pci_del_chan()
189 pci_iounmap(board->pci_dev, priv->reg_base); in kvaser_pci_del_chan()
190 pci_iounmap(board->pci_dev, board->conf_addr); in kvaser_pci_del_chan()
191 pci_iounmap(board->pci_dev, board->res_addr); in kvaser_pci_del_chan()
204 struct kvaser_pci *board; in kvaser_pci_add_chan() local
212 board = priv->priv; in kvaser_pci_add_chan()
214 board->pci_dev = pdev; in kvaser_pci_add_chan()
215 board->channel = channel; in kvaser_pci_add_chan()
218 board->conf_addr = conf_addr; in kvaser_pci_add_chan()
220 /* XILINX board wide address */ in kvaser_pci_add_chan()
221 board->res_addr = res_addr; in kvaser_pci_add_chan()
224 board->xilinx_ver = in kvaser_pci_add_chan()
225 ioread8(board->res_addr + XILINX_VERINT) >> 4; in kvaser_pci_add_chan()
229 iowrite32(0x80808080UL, board->conf_addr + S5920_PTCR); in kvaser_pci_add_chan()
238 board->xilinx_ver = master_board->xilinx_ver; in kvaser_pci_add_chan()
255 priv->reg_base, board->conf_addr, dev->irq); in kvaser_pci_add_chan()
284 struct kvaser_pci *board; in kvaser_pci_init_one() local
309 /* XILINX board wide address */ in kvaser_pci_init_one()
337 board = priv->priv; in kvaser_pci_init_one()
340 board->xilinx_ver, board->no_channels); in kvaser_pci_init_one()