/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | mite.c | 72 struct mite_struct *mite; in mite_init() local 78 mite = kzalloc(sizeof(*mite), GFP_KERNEL); in mite_init() 79 if (!mite) { in mite_init() 84 spin_lock_init(&mite->lock); in mite_init() 85 mite->pcidev = pci_dev_get(pcidev); in mite_init() 87 mite->channels[i].mite = mite; in mite_init() 88 mite->channels[i].channel = i; in mite_init() 89 mite->channels[i].done = 1; in mite_init() 91 mite->next = mite_devices; in mite_init() 92 mite_devices = mite; in mite_init() [all …]
|
D | ni_6527.c | 118 struct mite_struct *mite; member 146 devpriv->mite->daq_io_addr + Filter_Interval(0)); in ni6527_di_insn_config() 148 devpriv->mite->daq_io_addr + Filter_Interval(1)); in ni6527_di_insn_config() 150 devpriv->mite->daq_io_addr + Filter_Interval(2)); in ni6527_di_insn_config() 153 devpriv->mite->daq_io_addr + Clear_Register); in ni6527_di_insn_config() 164 devpriv->mite->daq_io_addr + Filter_Enable(0)); in ni6527_di_insn_config() 166 devpriv->mite->daq_io_addr + Filter_Enable(1)); in ni6527_di_insn_config() 168 devpriv->mite->daq_io_addr + Filter_Enable(2)); in ni6527_di_insn_config() 180 data[1] = readb(devpriv->mite->daq_io_addr + Port_Register(0)); in ni6527_di_insn_bits() 181 data[1] |= readb(devpriv->mite->daq_io_addr + Port_Register(1)) << 8; in ni6527_di_insn_bits() [all …]
|
D | ni_pcidio.c | 396 struct mite_struct *mite; member 432 mite_request_channel_in_range(devpriv->mite, in ni_pcidio_request_di_mite_channel() 441 devpriv->mite->daq_io_addr + DMA_Line_Control_Group1); in ni_pcidio_request_di_mite_channel() 459 devpriv->mite->daq_io_addr + DMA_Line_Control_Group1); in ni_pcidio_release_di_mite_channel() 490 struct mite_struct *mite = devpriv->mite; in nidio_interrupt() local 508 status = readb(devpriv->mite->daq_io_addr + in nidio_interrupt() 510 flags = readb(devpriv->mite->daq_io_addr + Group_1_Flags); in nidio_interrupt() 534 mite->mite_io_addr + in nidio_interrupt() 553 devpriv->mite->daq_io_addr + in nidio_interrupt() 567 devpriv->mite->daq_io_addr + in nidio_interrupt() [all …]
|
D | ni_670x.c | 103 struct mite_struct *mite; member 196 ret = mite_setup(devpriv->mite); in ni_670x_attach() 202 dev->irq = mite_irq(devpriv->mite); in ni_670x_attach() 243 writel(0x10, devpriv->mite->daq_io_addr + MISC_CONTROL_OFFSET); in ni_670x_attach() 245 writel(0x00, devpriv->mite->daq_io_addr + AO_CONTROL_OFFSET); in ni_670x_attach() 258 if (dev->private && devpriv->mite) in ni_670x_detach() 259 mite_unsetup(devpriv->mite); in ni_670x_detach() 288 devpriv->mite->daq_io_addr + AO_CHAN_OFFSET); in ni_670x_ao_winsn() 290 writel(data[i], devpriv->mite->daq_io_addr + AO_VALUE_OFFSET); in ni_670x_ao_winsn() 323 devpriv->mite->daq_io_addr + DIO_PORT0_DATA_OFFSET); in ni_670x_dio_insn_bits() [all …]
|
D | ni_65xx.c | 297 struct mite_struct *mite; member 352 private(dev)->mite->daq_io_addr + in ni_65xx_config_filter() 365 private(dev)->mite->daq_io_addr + Filter_Enable(port)); in ni_65xx_config_filter() 388 writeb(0, private(dev)->mite->daq_io_addr + Port_Select(port)); in ni_65xx_dio_insn_config() 395 writeb(1, private(dev)->mite->daq_io_addr + Port_Select(port)); in ni_65xx_dio_insn_config() 455 private(dev)->mite->daq_io_addr + in ni_65xx_dio_insn_bits() 460 readb(private(dev)->mite->daq_io_addr + Port_Data(port)); in ni_65xx_dio_insn_bits() 485 status = readb(private(dev)->mite->daq_io_addr + Change_Status); in ni_65xx_interrupt() 492 private(dev)->mite->daq_io_addr + Clear_Register); in ni_65xx_interrupt() 584 private(dev)->mite->daq_io_addr + Clear_Register); in ni_65xx_intr_cmd() [all …]
|
D | mite.h | 56 struct mite_struct *mite; member 82 *mite) in mite_alloc_ring() 88 ring->hw_dev = get_device(&mite->pcidev->dev); in mite_alloc_ring() 116 static inline unsigned int mite_irq(struct mite_struct *mite) in mite_irq() argument 118 return mite->pcidev->irq; in mite_irq() 121 static inline unsigned int mite_device_id(struct mite_struct *mite) in mite_device_id() argument 123 return mite->pcidev->device; in mite_device_id() 128 int mite_setup(struct mite_struct *mite); 129 int mite_setup2(struct mite_struct *mite, unsigned use_iodwbsr_1); 130 void mite_unsetup(struct mite_struct *mite); [all …]
|
D | ni_pcimio.c | 1286 #define ni_writel(a, b) (writel((a), devpriv->mite->daq_io_addr + (b))) 1287 #define ni_readl(a) (readl(devpriv->mite->daq_io_addr + (a))) 1288 #define ni_writew(a, b) (writew((a), devpriv->mite->daq_io_addr + (b))) 1289 #define ni_readw(a) (readw(devpriv->mite->daq_io_addr + (a))) 1290 #define ni_writeb(a, b) (writeb((a), devpriv->mite->daq_io_addr + (b))) 1291 #define ni_readb(a) (readb(devpriv->mite->daq_io_addr + (a))) 1618 old_iodwbsr_bits = readl(devpriv->mite->mite_io_addr + MITE_IODWBSR); in m_series_init_eeprom_buffer() 1619 old_iodwbsr1_bits = readl(devpriv->mite->mite_io_addr + MITE_IODWBSR_1); in m_series_init_eeprom_buffer() 1620 old_iodwcr1_bits = readl(devpriv->mite->mite_io_addr + MITE_IODWCR_1); in m_series_init_eeprom_buffer() 1621 writel(0x0, devpriv->mite->mite_io_addr + MITE_IODWBSR); in m_series_init_eeprom_buffer() [all …]
|
D | ni_660x.c | 433 struct mite_struct *mite; member 765 private(dev)->mite->daq_io_addr + GPCT_OFFSET[chip_index] + in ni_660x_write_register() 788 private(dev)->mite->daq_io_addr + GPCT_OFFSET[chip_index] + in ni_660x_read_register() 881 mite_request_channel(private(dev)->mite, mite_ring(private(dev), in ni_660x_request_mite_channel() 1046 mite_alloc_ring(private(dev)->mite); in ni_660x_alloc_mite_rings() 1084 ret = mite_setup2(private(dev)->mite, 1); in ni_660x_attach() 1089 comedi_set_hw_dev(dev, &private(dev)->mite->pcidev->dev); in ni_660x_attach() 1175 ret = request_irq(mite_irq(private(dev)->mite), ni_660x_interrupt, in ni_660x_attach() 1181 dev->irq = mite_irq(private(dev)->mite); in ni_660x_attach() 1202 if (private(dev)->mite) { in ni_660x_detach() [all …]
|
D | ni_labpc.c | 735 retval = mite_setup(devpriv->mite); in labpc_attach() 738 iobase = (unsigned long)devpriv->mite->daq_io_addr; in labpc_attach() 739 irq = mite_irq(devpriv->mite); in labpc_attach() 764 struct mite_struct *mite; in labpc_find_device() local 766 for (mite = mite_devices; mite; mite = mite->next) { in labpc_find_device() 767 if (mite->used) in labpc_find_device() 771 if (bus != mite->pcidev->bus->number in labpc_find_device() 772 || slot != PCI_SLOT(mite->pcidev->devfn)) in labpc_find_device() 778 if (mite_device_id(mite) == labpc_boards[i].device_id) { in labpc_find_device() 779 devpriv->mite = mite; in labpc_find_device() [all …]
|
D | ni_labpc.h | 57 struct mite_struct *mite; /* for mite chip on pci-1200 */ member
|
D | ni_mio_common.c | 533 mite_request_channel(devpriv->mite, devpriv->ai_mite_ring); in ni_request_ai_mite_channel() 553 mite_request_channel(devpriv->mite, devpriv->ao_mite_ring); in ni_request_ao_mite_channel() 577 mite_request_channel(devpriv->mite, in ni_request_gpct_mite_channel() 603 mite_request_channel(devpriv->mite, devpriv->cdo_mite_ring); in ni_request_cdo_mite_channel() 823 struct mite_struct *mite = devpriv->mite; in ni_E_interrupt() local 835 if (mite) { in ni_E_interrupt() 843 devpriv->mite->mite_io_addr + in ni_E_interrupt() 851 mite->mite_io_addr + in ni_E_interrupt() 884 static void mite_handle_b_linkc(struct mite_struct *mite, in mite_handle_b_linkc() argument 1164 mite_handle_b_linkc(devpriv->mite, dev); in handle_b_interrupt() [all …]
|
D | Makefile | 131 obj-$(CONFIG_COMEDI_MITE) += mite.o
|
D | ni_tiocmd.c | 503 counter->mite_chan->mite->mite_io_addr + in ni_tio_handle_interrupt()
|
D | ni_stc.h | 1507 struct mite_struct *mite; \
|
/linux-2.6.39/drivers/staging/comedi/ |
D | Kconfig | 1270 called mite.
|