Home
last modified time | relevance | path

Searched refs:iobase (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/linux-2.6.39/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci1500.c153 devpriv->iobase + APCI1500_Z8536_CONTROL_REGISTER); in i_APCI1500_ConfigDigitalInputEvent()
157 outb(0x00, devpriv->iobase + APCI1500_Z8536_CONTROL_REGISTER); in i_APCI1500_ConfigDigitalInputEvent()
280 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
286 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
292 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
295 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
303 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
306 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
313 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
316 devpriv->iobase + in i_APCI1500_ConfigDigitalInputEvent()
[all …]
Dhwdrv_apci035.c130 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
132 ui_Command = inl(devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
136 outl(data[3], devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 4); in i_APCI035_ConfigTimerWatchdog()
140 outl(data[2], devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 8); in i_APCI035_ConfigTimerWatchdog()
176 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
178 ui_Command = inl(devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
189 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
191 ui_Command = inl(devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
202 outl(ui_Command, devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
204 ui_Command = inl(devpriv->iobase + ((i_WatchdogNbr - 1) * 32) + 12); in i_APCI035_ConfigTimerWatchdog()
[all …]
Dhwdrv_apci3501.c83 *data = inl(devpriv->iobase + APCI3501_DIGITAL_IP); in i_APCI3501_ReadDigitalInput()
170 ui_Temp = inl(devpriv->iobase + APCI3501_DIGITAL_OP); in i_APCI3501_WriteDigitalOutput()
178 outl(data[0], devpriv->iobase + APCI3501_DIGITAL_OP); in i_APCI3501_WriteDigitalOutput()
184 devpriv->iobase + APCI3501_DIGITAL_OP); in i_APCI3501_WriteDigitalOutput()
203 devpriv->iobase + APCI3501_DIGITAL_OP); in i_APCI3501_WriteDigitalOutput()
216 devpriv->iobase + in i_APCI3501_WriteDigitalOutput()
259 *data = inl(devpriv->iobase + APCI3501_DIGITAL_OP); in i_APCI3501_ReadDigitalOutput()
305 devpriv->iobase + APCI3501_ANALOG_OUTPUT + in i_APCI3501_ConfigAnalogOutput()
365 ul_DAC_Ready = inl(devpriv->iobase + APCI3501_ANALOG_OUTPUT); in i_APCI3501_WriteAnalogOutput()
368 ul_DAC_Ready = inl(devpriv->iobase + APCI3501_ANALOG_OUTPUT); in i_APCI3501_WriteAnalogOutput()
[all …]
Dhwdrv_apci1032.c103 devpriv->iobase + APCI1032_DIGITAL_IP_INTERRUPT_MODE1); in i_APCI1032_ConfigDigitalInput()
105 devpriv->iobase + APCI1032_DIGITAL_IP_INTERRUPT_MODE2); in i_APCI1032_ConfigDigitalInput()
107 outl(0x4, devpriv->iobase + APCI1032_DIGITAL_IP_IRQ); in i_APCI1032_ConfigDigitalInput()
109 inl(devpriv->iobase + APCI1032_DIGITAL_IP_IRQ); in i_APCI1032_ConfigDigitalInput()
112 outl(0x6, devpriv->iobase + APCI1032_DIGITAL_IP_IRQ); in i_APCI1032_ConfigDigitalInput()
119 devpriv->iobase + APCI1032_DIGITAL_IP_INTERRUPT_MODE1); in i_APCI1032_ConfigDigitalInput()
121 devpriv->iobase + APCI1032_DIGITAL_IP_INTERRUPT_MODE2); in i_APCI1032_ConfigDigitalInput()
122 outl(0x0, devpriv->iobase + APCI1032_DIGITAL_IP_IRQ); in i_APCI1032_ConfigDigitalInput()
154 ui_TmpValue = (unsigned int) inl(devpriv->iobase + APCI1032_DIGITAL_IP); in i_APCI1032_Read1DigitalInput()
197 *data = (unsigned int) inl(devpriv->iobase + APCI1032_DIGITAL_IP); in i_APCI1032_ReadMoreDigitalInput()
[all …]
Dhwdrv_apci3120.c177 (unsigned short) inw(devpriv->iobase + APCI3120_RD_STATUS); in i_APCI3120_InsnReadAnalogInput()
197 inw(devpriv->iobase + APCI3120_RESET_FIFO); in i_APCI3120_InsnReadAnalogInput()
213 devpriv->iobase + APCI3120_TIMER_CRT1); in i_APCI3120_InsnReadAnalogInput()
228 inw(devpriv->iobase); in i_APCI3120_InsnReadAnalogInput()
238 devpriv->iobase + APCI3120_WRITE_MODE_SELECT); in i_APCI3120_InsnReadAnalogInput()
246 devpriv->iobase + APCI3120_WR_ADDRESS); in i_APCI3120_InsnReadAnalogInput()
252 outb(b_Tmp, devpriv->iobase + APCI3120_TIMER_CRT0); in i_APCI3120_InsnReadAnalogInput()
256 devpriv->iobase + APCI3120_TIMER_VALUE); in i_APCI3120_InsnReadAnalogInput()
259 (unsigned short) inw(dev->iobase + APCI3120_RD_STATUS); in i_APCI3120_InsnReadAnalogInput()
266 inw(devpriv->iobase + in i_APCI3120_InsnReadAnalogInput()
[all …]
/linux-2.6.39/drivers/net/irda/
Dvia-ircc.c83 int iobase);
92 static int via_ircc_read_dongle_id(int iobase);
98 static void via_ircc_change_dongle_speed(int iobase, int speed,
100 static int RxTimerHandler(struct via_ircc_cb *self, int iobase);
102 static int via_ircc_dma_xmit(struct via_ircc_cb *self, u16 iobase);
103 static int upload_rxdata(struct via_ircc_cb *self, int iobase);
429 int iobase; in via_remove_one() local
433 iobase = self->io.fir_base; in via_remove_one()
435 ResetChip(iobase, 5); //hardware reset. in via_remove_one()
465 int iobase = self->io.fir_base; in via_hw_init() local
[all …]
Dw83977af_ir.c89 static int w83977af_open(int i, unsigned int iobase, unsigned int irq,
92 static int w83977af_probe(int iobase, int irq, int dma);
97 static int w83977af_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
98 static void w83977af_dma_write(struct w83977af_ir *self, int iobase);
156 static int w83977af_open(int i, unsigned int iobase, unsigned int irq, in w83977af_open() argument
166 if (!request_region(iobase, CHIP_IO_EXTENT, driver_name)) { in w83977af_open()
168 __func__ , iobase); in w83977af_open()
172 if (w83977af_probe(iobase, irq, dma) == -1) { in w83977af_open()
192 self->io.fir_base = iobase; in w83977af_open()
263 release_region(iobase, CHIP_IO_EXTENT); in w83977af_open()
[all …]
Dvia-ircc.h286 static void SetMaxRxPacketSize(__u16 iobase, __u16 size) in SetMaxRxPacketSize() argument
292 WriteReg(iobase, I_CF_L_2, low); in SetMaxRxPacketSize()
293 WriteReg(iobase, I_CF_H_2, high); in SetMaxRxPacketSize()
301 static void SetFIFO(__u16 iobase, __u16 value) in SetFIFO() argument
305 WriteRegBit(iobase, 0x11, 0, 0); in SetFIFO()
306 WriteRegBit(iobase, 0x11, 7, 1); in SetFIFO()
309 WriteRegBit(iobase, 0x11, 0, 0); in SetFIFO()
310 WriteRegBit(iobase, 0x11, 7, 0); in SetFIFO()
313 WriteRegBit(iobase, 0x11, 0, 1); in SetFIFO()
314 WriteRegBit(iobase, 0x11, 7, 0); in SetFIFO()
[all …]
Dali-ircc.c119 static int ali_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len);
137 static void SIR2FIR(int iobase);
138 static void FIR2SIR(int iobase);
423 int iobase; in ali_ircc_close() local
429 iobase = self->io.fir_base; in ali_ircc_close()
560 int iobase = info->fir_base; in ali_ircc_setup() local
570 SIR2FIR(iobase); in ali_ircc_setup()
573 outb(0x40, iobase+FIR_MCR); // benjamin 2000/11/30 11:45AM in ali_ircc_setup()
576 switch_bank(iobase, BANK3); in ali_ircc_setup()
577 version = inb(iobase+FIR_ID_VR); in ali_ircc_setup()
[all …]
Dnsc-ircc.c175 static int nsc_ircc_dma_receive_complete(struct nsc_ircc_cb *self, int iobase);
180 static int nsc_ircc_pio_write(int iobase, __u8 *buf, int len, int fifo_size);
181 static void nsc_ircc_dma_xmit(struct nsc_ircc_cb *self, int iobase);
184 static int nsc_ircc_read_dongle_id (int iobase);
185 static void nsc_ircc_init_dongle_interface (int iobase, int dongle_id);
518 int iobase; in nsc_ircc_close() local
524 iobase = self->io.fir_base; in nsc_ircc_close()
986 int iobase = info->fir_base; in nsc_ircc_setup() local
989 switch_bank(iobase, BANK3); in nsc_ircc_setup()
990 version = inb(iobase+MID); in nsc_ircc_setup()
[all …]
Dsmsc-ircc2.c212 static int smsc_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len);
362 static inline void register_bank(int iobase, int bank) in register_bank() argument
364 outb(((inb(iobase + IRCC_MASTER) & 0xf0) | (bank & 0x07)), in register_bank()
365 iobase + IRCC_MASTER); in register_bank()
761 int iobase = self->io.fir_base; in smsc_ircc_init_chip() local
763 register_bank(iobase, 0); in smsc_ircc_init_chip()
764 outb(IRCC_MASTER_RESET, iobase + IRCC_MASTER); in smsc_ircc_init_chip()
765 outb(0x00, iobase + IRCC_MASTER); in smsc_ircc_init_chip()
767 register_bank(iobase, 1); in smsc_ircc_init_chip()
768 outb(((inb(iobase + IRCC_SCE_CFGA) & 0x87) | IRCC_CFGA_IRDA_SIR_A), in smsc_ircc_init_chip()
[all …]
/linux-2.6.39/drivers/net/
Dewrk3.h18 #define EWRK3_CSR iobase+0x00 /* Control and Status Register */
19 #define EWRK3_CR iobase+0x01 /* Control Register */
20 #define EWRK3_ICR iobase+0x02 /* Interrupt Control Register */
21 #define EWRK3_TSR iobase+0x03 /* Transmit Status Register */
22 #define EWRK3_RSVD1 iobase+0x04 /* RESERVED */
23 #define EWRK3_RSVD2 iobase+0x05 /* RESERVED */
24 #define EWRK3_FMQ iobase+0x06 /* Free Memory Queue */
25 #define EWRK3_FMQC iobase+0x07 /* Free Memory Queue Counter */
26 #define EWRK3_RQ iobase+0x08 /* Receive Queue */
27 #define EWRK3_RQC iobase+0x09 /* Receive Queue Counter */
[all …]
/linux-2.6.39/drivers/staging/comedi/drivers/
Dni_atmio16d.c221 outw(0xFFC2, dev->iobase + AM9513A_COM_REG); in reset_counters()
222 outw(0xFF02, dev->iobase + AM9513A_COM_REG); in reset_counters()
223 outw(0x4, dev->iobase + AM9513A_DATA_REG); in reset_counters()
224 outw(0xFF0A, dev->iobase + AM9513A_COM_REG); in reset_counters()
225 outw(0x3, dev->iobase + AM9513A_DATA_REG); in reset_counters()
226 outw(0xFF42, dev->iobase + AM9513A_COM_REG); in reset_counters()
227 outw(0xFF42, dev->iobase + AM9513A_COM_REG); in reset_counters()
229 outw(0xFFC4, dev->iobase + AM9513A_COM_REG); in reset_counters()
230 outw(0xFF03, dev->iobase + AM9513A_COM_REG); in reset_counters()
231 outw(0x4, dev->iobase + AM9513A_DATA_REG); in reset_counters()
[all …]
Ddas6402.c142 outb_p(p, dev->iobase + 15); in das6402_setcounter()
145 outb_p(p, dev->iobase + 12); in das6402_setcounter()
147 outb_p(p, dev->iobase + 12); in das6402_setcounter()
151 outb_p(p, dev->iobase + 15); in das6402_setcounter()
154 outb_p(p, dev->iobase + 13); in das6402_setcounter()
156 outb_p(p, dev->iobase + 13); in das6402_setcounter()
160 outb_p(p, dev->iobase + 15); in das6402_setcounter()
163 outb_p(p, dev->iobase + 14); in das6402_setcounter()
165 outb_p(p, dev->iobase + 14); in das6402_setcounter()
180 printk("das6402: iobase+2=%i\n", inw_p(dev->iobase + 2)); in intr_handler()
[all …]
Dmultiq3.c124 dev->iobase + MULTIQ3_CONTROL); in multiq3_ai_insn_read()
127 if (inw(dev->iobase + MULTIQ3_STATUS) & MULTIQ3_STATUS_EOC) in multiq3_ai_insn_read()
134 outw(0, dev->iobase + MULTIQ3_AD_CS); in multiq3_ai_insn_read()
136 if (inw(dev->iobase + in multiq3_ai_insn_read()
143 hi = inb(dev->iobase + MULTIQ3_AD_CS); in multiq3_ai_insn_read()
144 lo = inb(dev->iobase + MULTIQ3_AD_CS); in multiq3_ai_insn_read()
173 dev->iobase + MULTIQ3_CONTROL); in multiq3_ao_insn_write()
174 outw(data[i], dev->iobase + MULTIQ3_DAC_DATA); in multiq3_ao_insn_write()
175 outw(MULTIQ3_CONTROL_MUST, dev->iobase + MULTIQ3_CONTROL); in multiq3_ao_insn_write()
190 data[1] = inw(dev->iobase + MULTIQ3_DIGIN_PORT); in multiq3_di_insn_bits()
[all …]
Dpcl724.c111 unsigned long iobase = arg; in subdev_8255_cb() local
114 outb(data, iobase + port); in subdev_8255_cb()
117 return inb(iobase + port); in subdev_8255_cb()
122 unsigned long iobase) in subdev_8255mapped_cb() argument
124 int movport = SIZE_8255 * (iobase >> 12); in subdev_8255mapped_cb()
126 iobase &= 0x0fff; in subdev_8255mapped_cb()
129 outb(port + movport, iobase); in subdev_8255mapped_cb()
130 outb(data, iobase + 1); in subdev_8255mapped_cb()
133 outb(port + movport, iobase); in subdev_8255mapped_cb()
134 return inb(iobase + 1); in subdev_8255mapped_cb()
[all …]
Ddt2817.c107 outb(oe, dev->iobase + DT2817_CR); in dt2817_dio_insn_config()
129 outb(s->state & 0xff, dev->iobase + DT2817_DATA + 0); in dt2817_dio_insn_bits()
132 dev->iobase + DT2817_DATA + 1); in dt2817_dio_insn_bits()
135 dev->iobase + DT2817_DATA + 2); in dt2817_dio_insn_bits()
138 dev->iobase + DT2817_DATA + 3); in dt2817_dio_insn_bits()
140 data[1] = inb(dev->iobase + DT2817_DATA + 0); in dt2817_dio_insn_bits()
141 data[1] |= (inb(dev->iobase + DT2817_DATA + 1) << 8); in dt2817_dio_insn_bits()
142 data[1] |= (inb(dev->iobase + DT2817_DATA + 2) << 16); in dt2817_dio_insn_bits()
143 data[1] |= (inb(dev->iobase + DT2817_DATA + 3) << 24); in dt2817_dio_insn_bits()
152 unsigned long iobase; in dt2817_attach() local
[all …]
Dfl512.c87 unsigned long iobase = dev->iobase; in fl512_ai_insn() local
92 outb(chan, iobase + 2); /* select chan */ in fl512_ai_insn()
93 outb(0, iobase + 3); /* start conversion */ in fl512_ai_insn()
96 lo_byte = inb(iobase + 2); /* low 8 byte */ in fl512_ai_insn()
97 hi_byte = inb(iobase + 3) & 0xf; /* high 4 bit and mask */ in fl512_ai_insn()
112 unsigned long iobase = dev->iobase; /* get base address */ in fl512_ao_insn() local
116 outb(data[n] & 0x0ff, iobase + 4 + 2 * chan); in fl512_ao_insn()
118 outb((data[n] & 0xf00) >> 8, iobase + 4 + 2 * chan); in fl512_ao_insn()
119 inb(iobase + 4 + 2 * chan); /* trig */ in fl512_ao_insn()
148 unsigned long iobase; in fl512_attach() local
[all …]
Dni_at_ao.c232 unsigned long iobase; in atao_attach() local
235 iobase = it->options[0]; in atao_attach()
236 if (iobase == 0) in atao_attach()
237 iobase = 0x1c0; in atao_attach()
240 printk(KERN_INFO "comedi%d: ni_at_ao: 0x%04lx", dev->minor, iobase); in atao_attach()
242 if (!request_region(iobase, ATAO_SIZE, "ni_at_ao")) { in atao_attach()
246 dev->iobase = iobase; in atao_attach()
306 if (dev->iobase) in atao_detach()
307 release_region(dev->iobase, ATAO_SIZE); in atao_detach()
317 outw(devpriv->cfg1, dev->iobase + ATAO_CFG1); in atao_reset()
[all …]
Drti800.c93 #define Am9513_output_control(a) outb(a, dev->iobase+RTI800_9513A_CNTRL)
94 #define Am9513_output_data(a) outb(a, dev->iobase+RTI800_9513A_DATA)
95 #define Am9513_input_data() inb(dev->iobase+RTI800_9513A_DATA)
96 #define Am9513_input_status() inb(dev->iobase+RTI800_9513A_STATUS)
219 inb(dev->iobase + RTI800_ADCHI); in rti800_ai_insn_read()
220 outb(0, dev->iobase + RTI800_CLRFLAGS); in rti800_ai_insn_read()
225 outb(devpriv->muxgain_bits, dev->iobase + RTI800_MUXGAIN); in rti800_ai_insn_read()
235 outb(0, dev->iobase + RTI800_CONVERT); in rti800_ai_insn_read()
237 status = inb(dev->iobase + RTI800_CSR); in rti800_ai_insn_read()
240 outb(0, dev->iobase + RTI800_CLRFLAGS); in rti800_ai_insn_read()
[all …]
Dadv_pci_dio.c441 data[1] |= inb(dev->iobase + d->addr + i) << (8 * i); in pci_dio_insn_bits_di_b()
459 data[1] |= inw(dev->iobase + d->addr + 2 * i) << (16 * i); in pci_dio_insn_bits_di_w()
479 dev->iobase + d->addr + i); in pci_dio_insn_bits_do_b()
501 dev->iobase + d->addr + 2 * i); in pci_dio_insn_bits_do_w()
523 data[0] = i8254_read(dev->iobase + d->addr + (SIZE_8254 * chip), in pci_8254_insn_read()
544 i8254_write(dev->iobase + d->addr + (SIZE_8254 * chip), in pci_8254_insn_write()
559 unsigned long iobase; in pci_8254_insn_config() local
566 iobase = dev->iobase + d->addr + (SIZE_8254 * chip); in pci_8254_insn_config()
570 ret = i8254_set_mode(iobase, 0, chipchan, data[1]); in pci_8254_insn_config()
575 data[1] = i8254_status(iobase, 0, chipchan); in pci_8254_insn_config()
[all …]
/linux-2.6.39/drivers/bluetooth/
Dbt3c_cs.c117 static inline void bt3c_address(unsigned int iobase, unsigned short addr) in bt3c_address() argument
119 outb(addr & 0xff, iobase + ADDR_L); in bt3c_address()
120 outb((addr >> 8) & 0xff, iobase + ADDR_H); in bt3c_address()
124 static inline void bt3c_put(unsigned int iobase, unsigned short value) in bt3c_put() argument
126 outb(value & 0xff, iobase + DATA_L); in bt3c_put()
127 outb((value >> 8) & 0xff, iobase + DATA_H); in bt3c_put()
131 static inline void bt3c_io_write(unsigned int iobase, unsigned short addr, unsigned short value) in bt3c_io_write() argument
133 bt3c_address(iobase, addr); in bt3c_io_write()
134 bt3c_put(iobase, value); in bt3c_io_write()
138 static inline unsigned short bt3c_get(unsigned int iobase) in bt3c_get() argument
[all …]
Dbluecard_cs.c161 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_activity_led_timeout() local
168 outb(0x08 | 0x20, iobase + 0x30); in bluecard_activity_led_timeout()
171 outb(0x00, iobase + 0x30); in bluecard_activity_led_timeout()
178 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_enable_activity_led() local
185 outb(0x10 | 0x40, iobase + 0x30); in bluecard_enable_activity_led()
191 outb(0x08 | 0x20, iobase + 0x30); in bluecard_enable_activity_led()
203 static int bluecard_write(unsigned int iobase, unsigned int offset, __u8 *buf, int len) in bluecard_write() argument
209 outb_p(actual, iobase + offset); in bluecard_write()
212 outb_p(buf[i], iobase + offset + i + 1); in bluecard_write()
234 register unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_write_wakeup() local
[all …]
/linux-2.6.39/drivers/net/hamradio/
Dbaycom_ser_fdx.c105 #define RBR(iobase) (iobase+0) argument
106 #define THR(iobase) (iobase+0) argument
107 #define IER(iobase) (iobase+1) argument
108 #define IIR(iobase) (iobase+2) argument
109 #define FCR(iobase) (iobase+2) argument
110 #define LCR(iobase) (iobase+3) argument
111 #define MCR(iobase) (iobase+4) argument
112 #define LSR(iobase) (iobase+5) argument
113 #define MSR(iobase) (iobase+6) argument
114 #define SCR(iobase) (iobase+7) argument
[all …]
/linux-2.6.39/arch/arm/plat-mxc/include/mach/
Ddevices-common.h29 resource_size_t iobase; member
39 resource_size_t iobase; member
49 resource_size_t iobase; member
62 resource_size_t iobase; member
71 resource_size_t iobase; member
78 resource_size_t iobase; member
86 resource_size_t iobase; member
97 resource_size_t iobase; member
107 resource_size_t iobase; member
118 resource_size_t iobase; member
[all …]

12345678910>>...14