Commit 814900c9 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: more fix "foo * bar" should be "foo *bar"

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9b9bcba0
...@@ -124,23 +124,23 @@ int i_EepromReadMainHeader(unsigned short w_PCIBoardEepromAddress, ...@@ -124,23 +124,23 @@ int i_EepromReadMainHeader(unsigned short w_PCIBoardEepromAddress,
int i_EepromReadDigitalInputHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadDigitalInputHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
struct str_DigitalInputHeader * s_Header); struct str_DigitalInputHeader *s_Header);
int i_EepromReadDigitalOutputHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadDigitalOutputHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
struct str_DigitalOutputHeader * s_Header); struct str_DigitalOutputHeader *s_Header);
int i_EepromReadTimerHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadTimerHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
struct str_TimerMainHeader * s_Header); struct str_TimerMainHeader *s_Header);
int i_EepromReadAnlogOutputHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadAnlogOutputHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
str_AnalogOutputHeader * s_Header); str_AnalogOutputHeader *s_Header);
int i_EepromReadAnlogInputHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadAnlogInputHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
struct str_AnalogInputHeader * s_Header); struct str_AnalogInputHeader *s_Header);
/******************************************/ /******************************************/
/* Eeprom Specific Functions */ /* Eeprom Specific Functions */
...@@ -1082,7 +1082,7 @@ int i_EepromReadTimerHeader(unsigned short w_PCIBoardEepromAddress, ...@@ -1082,7 +1082,7 @@ int i_EepromReadTimerHeader(unsigned short w_PCIBoardEepromAddress,
int i_EepromReadAnlogOutputHeader(unsigned short w_PCIBoardEepromAddress, int i_EepromReadAnlogOutputHeader(unsigned short w_PCIBoardEepromAddress,
char *pc_PCIChipInformation, unsigned short w_Address, char *pc_PCIChipInformation, unsigned short w_Address,
str_AnalogOutputHeader * s_Header) str_AnalogOutputHeader *s_Header)
{ {
unsigned short w_Temp; unsigned short w_Temp;
/* No of channels for 1st hard component */ /* No of channels for 1st hard component */
......
...@@ -187,15 +187,15 @@ COMEDI_INITCLEANUP(driver_amplc_pc236); ...@@ -187,15 +187,15 @@ COMEDI_INITCLEANUP(driver_amplc_pc236);
static int pc236_request_region(unsigned minor, unsigned long from, static int pc236_request_region(unsigned minor, unsigned long from,
unsigned long extent); unsigned long extent);
static void pc236_intr_disable(struct comedi_device * dev); static void pc236_intr_disable(struct comedi_device *dev);
static void pc236_intr_enable(struct comedi_device * dev); static void pc236_intr_enable(struct comedi_device *dev);
static int pc236_intr_check(struct comedi_device * dev); static int pc236_intr_check(struct comedi_device *dev);
static int pc236_intr_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int pc236_intr_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int pc236_intr_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int pc236_intr_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int pc236_intr_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int pc236_intr_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int pc236_intr_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static irqreturn_t pc236_interrupt(int irq, void *d); static irqreturn_t pc236_interrupt(int irq, void *d);
/* /*
......
...@@ -617,32 +617,32 @@ static struct comedi_driver driver_amplc_pci230 = { ...@@ -617,32 +617,32 @@ static struct comedi_driver driver_amplc_pci230 = {
COMEDI_PCI_INITCLEANUP(driver_amplc_pci230, pci230_pci_table); COMEDI_PCI_INITCLEANUP(driver_amplc_pci230, pci230_pci_table);
static int pci230_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int pci230_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int pci230_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int pci230_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int pci230_ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int pci230_ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static void pci230_ct_setup_ns_mode(struct comedi_device * dev, unsigned int ct, static void pci230_ct_setup_ns_mode(struct comedi_device *dev, unsigned int ct,
unsigned int mode, uint64_t ns, unsigned int round); unsigned int mode, uint64_t ns, unsigned int round);
static void pci230_ns_to_single_timer(unsigned int *ns, unsigned int round); static void pci230_ns_to_single_timer(unsigned int *ns, unsigned int round);
static void pci230_cancel_ct(struct comedi_device * dev, unsigned int ct); static void pci230_cancel_ct(struct comedi_device *dev, unsigned int ct);
static irqreturn_t pci230_interrupt(int irq, void *d); static irqreturn_t pci230_interrupt(int irq, void *d);
static int pci230_ao_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int pci230_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int pci230_ao_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int pci230_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int pci230_ao_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int pci230_ao_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static void pci230_ao_stop(struct comedi_device * dev, struct comedi_subdevice * s); static void pci230_ao_stop(struct comedi_device *dev, struct comedi_subdevice *s);
static void pci230_handle_ao_nofifo(struct comedi_device * dev, struct comedi_subdevice * s); static void pci230_handle_ao_nofifo(struct comedi_device *dev, struct comedi_subdevice *s);
static int pci230_handle_ao_fifo(struct comedi_device * dev, struct comedi_subdevice * s); static int pci230_handle_ao_fifo(struct comedi_device *dev, struct comedi_subdevice *s);
static int pci230_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int pci230_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int pci230_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int pci230_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int pci230_ai_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int pci230_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static void pci230_ai_stop(struct comedi_device * dev, struct comedi_subdevice * s); static void pci230_ai_stop(struct comedi_device *dev, struct comedi_subdevice *s);
static void pci230_handle_ai(struct comedi_device * dev, struct comedi_subdevice * s); static void pci230_handle_ai(struct comedi_device *dev, struct comedi_subdevice *s);
static short pci230_ai_read(struct comedi_device * dev) static short pci230_ai_read(struct comedi_device *dev)
{ {
/* Read sample. */ /* Read sample. */
short data = (short) inw(dev->iobase + PCI230_ADCDATA); short data = (short) inw(dev->iobase + PCI230_ADCDATA);
......
...@@ -109,25 +109,25 @@ static const struct comedi_lrange das16cs_ai_range = { 4, { ...@@ -109,25 +109,25 @@ static const struct comedi_lrange das16cs_ai_range = { 4, {
}; };
static irqreturn_t das16cs_interrupt(int irq, void *d); static irqreturn_t das16cs_interrupt(int irq, void *d);
static int das16cs_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int das16cs_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int das16cs_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int das16cs_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_dio_insn_bits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_dio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_timer_insn_read(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_timer_insn_read(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16cs_timer_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, static int das16cs_timer_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int get_prodid(struct comedi_device * dev, struct pcmcia_device *link) static int get_prodid(struct comedi_device *dev, struct pcmcia_device *link)
{ {
tuple_t tuple; tuple_t tuple;
u_short buf[128]; u_short buf[128];
......
...@@ -451,56 +451,56 @@ static struct comedi_driver driver_cb_pcidas = { ...@@ -451,56 +451,56 @@ static struct comedi_driver driver_cb_pcidas = {
}; };
static int cb_pcidas_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice * s, static int cb_pcidas_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice * s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ai_config_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int ai_config_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int cb_pcidas_ao_nofifo_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int cb_pcidas_ao_nofifo_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int cb_pcidas_ao_fifo_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int cb_pcidas_ao_fifo_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int cb_pcidas_ao_readback_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int cb_pcidas_ao_readback_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int cb_pcidas_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int cb_pcidas_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int cb_pcidas_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int cb_pcidas_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int cb_pcidas_ao_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int cb_pcidas_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int cb_pcidas_ao_inttrig(struct comedi_device *dev, static int cb_pcidas_ao_inttrig(struct comedi_device *dev,
struct comedi_subdevice *subdev, struct comedi_subdevice *subdev,
unsigned int trig_num); unsigned int trig_num);
static int cb_pcidas_ao_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int cb_pcidas_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static irqreturn_t cb_pcidas_interrupt(int irq, void *d); static irqreturn_t cb_pcidas_interrupt(int irq, void *d);
static void handle_ao_interrupt(struct comedi_device * dev, unsigned int status); static void handle_ao_interrupt(struct comedi_device *dev, unsigned int status);
static int cb_pcidas_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int cb_pcidas_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int cb_pcidas_ao_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int cb_pcidas_ao_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static void cb_pcidas_load_counters(struct comedi_device * dev, unsigned int *ns, static void cb_pcidas_load_counters(struct comedi_device *dev, unsigned int *ns,
int round_flags); int round_flags);
static int eeprom_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int eeprom_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int caldac_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int caldac_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int caldac_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int caldac_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int trimpot_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int trimpot_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int cb_pcidas_trimpot_write(struct comedi_device * dev, unsigned int channel, static int cb_pcidas_trimpot_write(struct comedi_device *dev, unsigned int channel,
unsigned int value); unsigned int value);
static int trimpot_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int trimpot_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dac08_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int dac08_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dac08_write(struct comedi_device * dev, unsigned int value); static int dac08_write(struct comedi_device *dev, unsigned int value);
static int dac08_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int dac08_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int caldac_8800_write(struct comedi_device * dev, unsigned int address, static int caldac_8800_write(struct comedi_device *dev, unsigned int address,
uint8_t value); uint8_t value);
static int trimpot_7376_write(struct comedi_device * dev, uint8_t value); static int trimpot_7376_write(struct comedi_device *dev, uint8_t value);
static int trimpot_8402_write(struct comedi_device * dev, unsigned int channel, static int trimpot_8402_write(struct comedi_device *dev, unsigned int channel,
uint8_t value); uint8_t value);
static int nvram_read(struct comedi_device * dev, unsigned int address, static int nvram_read(struct comedi_device *dev, unsigned int address,
uint8_t * data); uint8_t *data);
static inline unsigned int cal_enable_bits(struct comedi_device * dev) static inline unsigned int cal_enable_bits(struct comedi_device *dev)
{ {
return CAL_EN_BIT | CAL_SRC_BITS(devpriv->calibration_source); return CAL_EN_BIT | CAL_SRC_BITS(devpriv->calibration_source);
} }
......
...@@ -1137,73 +1137,73 @@ static struct comedi_driver driver_cb_pcidas = { ...@@ -1137,73 +1137,73 @@ static struct comedi_driver driver_cb_pcidas = {
.detach = detach, .detach = detach,
}; };
static int ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ai_config_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int ai_config_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ao_readback_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int ao_readback_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int ao_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int ao_inttrig(struct comedi_device * dev, struct comedi_subdevice * subdev, static int ao_inttrig(struct comedi_device *dev, struct comedi_subdevice *subdev,
unsigned int trig_num); unsigned int trig_num);
static int ao_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static irqreturn_t handle_interrupt(int irq, void *d); static irqreturn_t handle_interrupt(int irq, void *d);
static int ai_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int ao_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int ao_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int dio_callback(int dir, int port, int data, unsigned long arg); static int dio_callback(int dir, int port, int data, unsigned long arg);
static int dio_callback_4020(int dir, int port, int data, unsigned long arg); static int dio_callback_4020(int dir, int port, int data, unsigned long arg);
static int di_rbits(struct comedi_device * dev, struct comedi_subdevice * s, static int di_rbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int do_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int do_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dio_60xx_config_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int dio_60xx_config_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dio_60xx_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int dio_60xx_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int calib_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int calib_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int calib_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int calib_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int ad8402_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int ad8402_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static void ad8402_write(struct comedi_device * dev, unsigned int channel, static void ad8402_write(struct comedi_device *dev, unsigned int channel,
unsigned int value); unsigned int value);
static int ad8402_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int ad8402_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int eeprom_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int eeprom_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static void check_adc_timing(struct comedi_device * dev, struct comedi_cmd * cmd); static void check_adc_timing(struct comedi_device *dev, struct comedi_cmd *cmd);
static unsigned int get_divisor(unsigned int ns, unsigned int flags); static unsigned int get_divisor(unsigned int ns, unsigned int flags);
static void i2c_write(struct comedi_device * dev, unsigned int address, static void i2c_write(struct comedi_device *dev, unsigned int address,
const uint8_t * data, unsigned int length); const uint8_t *data, unsigned int length);
static void caldac_write(struct comedi_device * dev, unsigned int channel, static void caldac_write(struct comedi_device *dev, unsigned int channel,
unsigned int value); unsigned int value);
static int caldac_8800_write(struct comedi_device * dev, unsigned int address, static int caldac_8800_write(struct comedi_device *dev, unsigned int address,
uint8_t value); uint8_t value);
/* static int dac_1590_write(struct comedi_device *dev, unsigned int dac_a, unsigned int dac_b); */ /* static int dac_1590_write(struct comedi_device *dev, unsigned int dac_a, unsigned int dac_b); */
static int caldac_i2c_write(struct comedi_device * dev, unsigned int caldac_channel, static int caldac_i2c_write(struct comedi_device *dev, unsigned int caldac_channel,
unsigned int value); unsigned int value);
static void abort_dma(struct comedi_device * dev, unsigned int channel); static void abort_dma(struct comedi_device *dev, unsigned int channel);
static void disable_plx_interrupts(struct comedi_device * dev); static void disable_plx_interrupts(struct comedi_device *dev);
static int set_ai_fifo_size(struct comedi_device * dev, unsigned int num_samples); static int set_ai_fifo_size(struct comedi_device *dev, unsigned int num_samples);
static unsigned int ai_fifo_size(struct comedi_device * dev); static unsigned int ai_fifo_size(struct comedi_device *dev);
static int set_ai_fifo_segment_length(struct comedi_device * dev, static int set_ai_fifo_segment_length(struct comedi_device *dev,
unsigned int num_entries); unsigned int num_entries);
static void disable_ai_pacing(struct comedi_device * dev); static void disable_ai_pacing(struct comedi_device *dev);
static void disable_ai_interrupts(struct comedi_device * dev); static void disable_ai_interrupts(struct comedi_device *dev);
static void enable_ai_interrupts(struct comedi_device * dev, const struct comedi_cmd * cmd); static void enable_ai_interrupts(struct comedi_device *dev, const struct comedi_cmd *cmd);
static unsigned int get_ao_divisor(unsigned int ns, unsigned int flags); static unsigned int get_ao_divisor(unsigned int ns, unsigned int flags);
static void load_ao_dma(struct comedi_device * dev, const struct comedi_cmd * cmd); static void load_ao_dma(struct comedi_device *dev, const struct comedi_cmd *cmd);
COMEDI_PCI_INITCLEANUP(driver_cb_pcidas, pcidas64_pci_table); COMEDI_PCI_INITCLEANUP(driver_cb_pcidas, pcidas64_pci_table);
static unsigned int ai_range_bits_6xxx(const struct comedi_device * dev, static unsigned int ai_range_bits_6xxx(const struct comedi_device *dev,
unsigned int range_index) unsigned int range_index)
{ {
const struct comedi_krange *range = const struct comedi_krange *range =
......
...@@ -326,34 +326,34 @@ struct munge_info { ...@@ -326,34 +326,34 @@ struct munge_info {
unsigned have_byte:1; unsigned have_byte:1;
}; };
static int das16_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16_do_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das16_do_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16_di_rbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das16_di_rbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16_cmd_test(struct comedi_device * dev, struct comedi_subdevice * s, static int das16_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int das16_cmd_exec(struct comedi_device * dev, struct comedi_subdevice * s); static int das16_cmd_exec(struct comedi_device *dev, struct comedi_subdevice *s);
static int das16_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int das16_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static void das16_ai_munge(struct comedi_device * dev, struct comedi_subdevice * s, static void das16_ai_munge(struct comedi_device *dev, struct comedi_subdevice *s,
void *array, unsigned int num_bytes, unsigned int start_chan_index); void *array, unsigned int num_bytes, unsigned int start_chan_index);
static void das16_reset(struct comedi_device * dev); static void das16_reset(struct comedi_device *dev);
static irqreturn_t das16_dma_interrupt(int irq, void *d); static irqreturn_t das16_dma_interrupt(int irq, void *d);
static void das16_timer_interrupt(unsigned long arg); static void das16_timer_interrupt(unsigned long arg);
static void das16_interrupt(struct comedi_device * dev); static void das16_interrupt(struct comedi_device *dev);
static unsigned int das16_set_pacer(struct comedi_device * dev, unsigned int ns, static unsigned int das16_set_pacer(struct comedi_device *dev, unsigned int ns,
int flags); int flags);
static int das1600_mode_detect(struct comedi_device * dev); static int das1600_mode_detect(struct comedi_device *dev);
static unsigned int das16_suggest_transfer_size(struct comedi_device * dev, static unsigned int das16_suggest_transfer_size(struct comedi_device *dev,
struct comedi_cmd cmd); struct comedi_cmd cmd);
static void reg_dump(struct comedi_device * dev); static void reg_dump(struct comedi_device *dev);
struct das16_board { struct das16_board {
const char *name; const char *name;
......
...@@ -131,23 +131,23 @@ static const struct comedi_lrange range_das16m1 = { 9, ...@@ -131,23 +131,23 @@ static const struct comedi_lrange range_das16m1 = { 9,
} }
}; };
static int das16m1_do_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das16m1_do_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16m1_di_rbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das16m1_di_rbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16m1_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das16m1_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das16m1_cmd_test(struct comedi_device * dev, struct comedi_subdevice * s, static int das16m1_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int das16m1_cmd_exec(struct comedi_device * dev, struct comedi_subdevice * s); static int das16m1_cmd_exec(struct comedi_device *dev, struct comedi_subdevice *s);
static int das16m1_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int das16m1_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int das16m1_poll(struct comedi_device * dev, struct comedi_subdevice * s); static int das16m1_poll(struct comedi_device *dev, struct comedi_subdevice *s);
static irqreturn_t das16m1_interrupt(int irq, void *d); static irqreturn_t das16m1_interrupt(int irq, void *d);
static void das16m1_handler(struct comedi_device * dev, unsigned int status); static void das16m1_handler(struct comedi_device *dev, unsigned int status);
static unsigned int das16m1_set_pacer(struct comedi_device * dev, unsigned int ns, static unsigned int das16m1_set_pacer(struct comedi_device *dev, unsigned int ns,
int round_flag); int round_flag);
static int das16m1_irq_bits(unsigned int irq); static int das16m1_irq_bits(unsigned int irq);
......
...@@ -180,37 +180,37 @@ enum { ...@@ -180,37 +180,37 @@ enum {
das1802hr, das1802hr_da, das1801hc, das1802hc, das1801ao, das1802ao das1802hr, das1802hr_da, das1801hc, das1802hc, das1801ao, das1802ao
}; };
static int das1800_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int das1800_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int das1800_detach(struct comedi_device * dev); static int das1800_detach(struct comedi_device *dev);
static int das1800_probe(struct comedi_device * dev); static int das1800_probe(struct comedi_device *dev);
static int das1800_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int das1800_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static irqreturn_t das1800_interrupt(int irq, void *d); static irqreturn_t das1800_interrupt(int irq, void *d);
static int das1800_ai_poll(struct comedi_device * dev, struct comedi_subdevice * s); static int das1800_ai_poll(struct comedi_device *dev, struct comedi_subdevice *s);
static void das1800_ai_handler(struct comedi_device * dev); static void das1800_ai_handler(struct comedi_device *dev);
static void das1800_handle_dma(struct comedi_device * dev, struct comedi_subdevice * s, static void das1800_handle_dma(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned int status); unsigned int status);
static void das1800_flush_dma(struct comedi_device * dev, struct comedi_subdevice * s); static void das1800_flush_dma(struct comedi_device *dev, struct comedi_subdevice *s);
static void das1800_flush_dma_channel(struct comedi_device * dev, struct comedi_subdevice * s, static void das1800_flush_dma_channel(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned int channel, uint16_t * buffer); unsigned int channel, uint16_t *buffer);
static void das1800_handle_fifo_half_full(struct comedi_device * dev, static void das1800_handle_fifo_half_full(struct comedi_device *dev,
struct comedi_subdevice * s); struct comedi_subdevice *s);
static void das1800_handle_fifo_not_empty(struct comedi_device * dev, static void das1800_handle_fifo_not_empty(struct comedi_device *dev,
struct comedi_subdevice * s); struct comedi_subdevice *s);
static int das1800_ai_do_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int das1800_ai_do_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int das1800_ai_do_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int das1800_ai_do_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int das1800_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das1800_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das1800_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das1800_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das1800_di_rbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das1800_di_rbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das1800_do_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das1800_do_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das1800_set_frequency(struct comedi_device * dev); static int das1800_set_frequency(struct comedi_device *dev);
static unsigned int burst_convert_arg(unsigned int convert_arg, int round_mode); static unsigned int burst_convert_arg(unsigned int convert_arg, int round_mode);
static unsigned int suggest_transfer_size(struct comedi_cmd * cmd); static unsigned int suggest_transfer_size(struct comedi_cmd *cmd);
/* analog input ranges */ /* analog input ranges */
static const struct comedi_lrange range_ai_das1801 = { static const struct comedi_lrange range_ai_das1801 = {
......
...@@ -257,22 +257,22 @@ static struct comedi_driver driver_das800 = { ...@@ -257,22 +257,22 @@ static struct comedi_driver driver_das800 = {
}; };
static irqreturn_t das800_interrupt(int irq, void *d); static irqreturn_t das800_interrupt(int irq, void *d);
static void enable_das800(struct comedi_device * dev); static void enable_das800(struct comedi_device *dev);
static void disable_das800(struct comedi_device * dev); static void disable_das800(struct comedi_device *dev);
static int das800_ai_do_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int das800_ai_do_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int das800_ai_do_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int das800_ai_do_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int das800_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int das800_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das800_di_rbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das800_di_rbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das800_do_wbits(struct comedi_device * dev, struct comedi_subdevice * s, static int das800_do_wbits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int das800_probe(struct comedi_device * dev); static int das800_probe(struct comedi_device *dev);
static int das800_set_frequency(struct comedi_device * dev); static int das800_set_frequency(struct comedi_device *dev);
/* checks and probes das-800 series board type */ /* checks and probes das-800 series board type */
static int das800_probe(struct comedi_device * dev) static int das800_probe(struct comedi_device *dev)
{ {
int id_bits; int id_bits;
unsigned long irq_flags; unsigned long irq_flags;
......
...@@ -289,23 +289,23 @@ static struct comedi_driver driver_dmm32at = { ...@@ -289,23 +289,23 @@ static struct comedi_driver driver_dmm32at = {
}; };
/* prototypes for driver functions below */ /* prototypes for driver functions below */
static int dmm32at_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dmm32at_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dmm32at_ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dmm32at_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_dio_insn_bits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dmm32at_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_dio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int dmm32at_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int dmm32at_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int dmm32at_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int dmm32at_ai_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int dmm32at_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int dmm32at_ns_to_timer(unsigned int *ns, int round); static int dmm32at_ns_to_timer(unsigned int *ns, int round);
static irqreturn_t dmm32at_isr(int irq, void *d); static irqreturn_t dmm32at_isr(int irq, void *d);
void dmm32at_setaitimer(struct comedi_device * dev, unsigned int nansec); void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec);
/* /*
* Attach is called by the Comedi core to configure the driver * Attach is called by the Comedi core to configure the driver
......
...@@ -52,15 +52,15 @@ support could be added to this driver. ...@@ -52,15 +52,15 @@ support could be added to this driver.
#include "plx9080.h" #include "plx9080.h"
#include "comedi_fc.h" #include "comedi_fc.h"
static int hpdi_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int hpdi_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int hpdi_detach(struct comedi_device * dev); static int hpdi_detach(struct comedi_device *dev);
void abort_dma(struct comedi_device * dev, unsigned int channel); void abort_dma(struct comedi_device *dev, unsigned int channel);
static int hpdi_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int hpdi_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int hpdi_cmd_test(struct comedi_device * dev, struct comedi_subdevice * s, static int hpdi_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int hpdi_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int hpdi_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static irqreturn_t handle_interrupt(int irq, void *d); static irqreturn_t handle_interrupt(int irq, void *d);
static int dio_config_block_size(struct comedi_device * dev, unsigned int * data); static int dio_config_block_size(struct comedi_device *dev, unsigned int *data);
#undef HPDI_DEBUG /* disable debugging messages */ #undef HPDI_DEBUG /* disable debugging messages */
/* #define HPDI_DEBUG enable debugging code */ /* #define HPDI_DEBUG enable debugging code */
......
...@@ -181,15 +181,15 @@ static struct comedi_driver driver_a2150 = { ...@@ -181,15 +181,15 @@ static struct comedi_driver driver_a2150 = {
}; };
static irqreturn_t a2150_interrupt(int irq, void *d); static irqreturn_t a2150_interrupt(int irq, void *d);
static int a2150_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int a2150_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int a2150_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int a2150_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int a2150_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int a2150_get_timing(struct comedi_device * dev, unsigned int *period, static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
int flags); int flags);
static int a2150_probe(struct comedi_device * dev); static int a2150_probe(struct comedi_device *dev);
static int a2150_set_chanlist(struct comedi_device * dev, unsigned int start_channel, static int a2150_set_chanlist(struct comedi_device *dev, unsigned int start_channel,
unsigned int num_channels); unsigned int num_channels);
/* /*
* A convenient macro that defines init_module() and cleanup_module(), * A convenient macro that defines init_module() and cleanup_module(),
......
...@@ -125,15 +125,15 @@ static const struct atmio16_board_t atmio16_boards[] = { ...@@ -125,15 +125,15 @@ static const struct atmio16_board_t atmio16_boards[] = {
#define boardtype ((const struct atmio16_board_t *)dev->board_ptr) #define boardtype ((const struct atmio16_board_t *)dev->board_ptr)
/* function prototypes */ /* function prototypes */
static int atmio16d_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int atmio16d_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int atmio16d_detach(struct comedi_device * dev); static int atmio16d_detach(struct comedi_device *dev);
static irqreturn_t atmio16d_interrupt(int irq, void *d); static irqreturn_t atmio16d_interrupt(int irq, void *d);
static int atmio16d_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int atmio16d_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int atmio16d_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int atmio16d_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int atmio16d_ai_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int atmio16d_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static void reset_counters(struct comedi_device * dev); static void reset_counters(struct comedi_device *dev);
static void reset_atmio16d(struct comedi_device * dev); static void reset_atmio16d(struct comedi_device *dev);
/* main driver struct */ /* main driver struct */
static struct comedi_driver driver_atmio16d = { static struct comedi_driver driver_atmio16d = {
......
...@@ -163,46 +163,46 @@ NI manuals: ...@@ -163,46 +163,46 @@ NI manuals:
#define INIT_A1_BITS 0x70 /* put hardware conversion counter output in harmless state (a1 mode 0) */ #define INIT_A1_BITS 0x70 /* put hardware conversion counter output in harmless state (a1 mode 0) */
#define COUNTER_B_BASE_REG 0x18 #define COUNTER_B_BASE_REG 0x18
static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it);
static int labpc_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int labpc_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static irqreturn_t labpc_interrupt(int irq, void *d); static irqreturn_t labpc_interrupt(int irq, void *d);
static int labpc_drain_fifo(struct comedi_device * dev); static int labpc_drain_fifo(struct comedi_device *dev);
static void labpc_drain_dma(struct comedi_device * dev); static void labpc_drain_dma(struct comedi_device *dev);
static void handle_isa_dma(struct comedi_device * dev); static void handle_isa_dma(struct comedi_device *dev);
static void labpc_drain_dregs(struct comedi_device * dev); static void labpc_drain_dregs(struct comedi_device *dev);
static int labpc_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
static int labpc_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int labpc_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_ao_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_calib_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_calib_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_calib_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_calib_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_eeprom_read_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_eeprom_read_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int labpc_eeprom_write_insn(struct comedi_device * dev, struct comedi_subdevice * s, static int labpc_eeprom_write_insn(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static unsigned int labpc_suggest_transfer_size(struct comedi_cmd cmd); static unsigned int labpc_suggest_transfer_size(struct comedi_cmd cmd);
static void labpc_adc_timing(struct comedi_device * dev, struct comedi_cmd * cmd); static void labpc_adc_timing(struct comedi_device *dev, struct comedi_cmd *cmd);
#ifdef CONFIG_COMEDI_PCI #ifdef CONFIG_COMEDI_PCI
static int labpc_find_device(struct comedi_device *dev, int bus, int slot); static int labpc_find_device(struct comedi_device *dev, int bus, int slot);
#endif #endif
static int labpc_dio_mem_callback(int dir, int port, int data, static int labpc_dio_mem_callback(int dir, int port, int data,
unsigned long arg); unsigned long arg);
static void labpc_serial_out(struct comedi_device * dev, unsigned int value, static void labpc_serial_out(struct comedi_device *dev, unsigned int value,
unsigned int num_bits); unsigned int num_bits);
static unsigned int labpc_serial_in(struct comedi_device * dev); static unsigned int labpc_serial_in(struct comedi_device *dev);
static unsigned int labpc_eeprom_read(struct comedi_device * dev, static unsigned int labpc_eeprom_read(struct comedi_device *dev,
unsigned int address); unsigned int address);
static unsigned int labpc_eeprom_read_status(struct comedi_device * dev); static unsigned int labpc_eeprom_read_status(struct comedi_device *dev);
static unsigned int labpc_eeprom_write(struct comedi_device * dev, static unsigned int labpc_eeprom_write(struct comedi_device *dev,
unsigned int address, unsigned int value); unsigned int address, unsigned int value);
static void write_caldac(struct comedi_device * dev, unsigned int channel, static void write_caldac(struct comedi_device *dev, unsigned int channel,
unsigned int value); unsigned int value);
enum scan_mode { enum scan_mode {
......
...@@ -295,24 +295,24 @@ static struct comedi_driver driver = { ...@@ -295,24 +295,24 @@ static struct comedi_driver driver = {
.num_names = sizeof(pcmmio_boards) / sizeof(struct pcmmio_board), .num_names = sizeof(pcmmio_boards) / sizeof(struct pcmmio_board),
}; };
static int pcmmio_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmmio_dio_insn_bits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int pcmmio_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmmio_dio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static irqreturn_t interrupt_pcmmio(int irq, void *d); static irqreturn_t interrupt_pcmmio(int irq, void *d);
static void pcmmio_stop_intr(struct comedi_device *, struct comedi_subdevice *); static void pcmmio_stop_intr(struct comedi_device *, struct comedi_subdevice *);
static int pcmmio_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int pcmmio_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int pcmmio_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int pcmmio_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int pcmmio_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmmio_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
/* some helper functions to deal with specifics of this device's registers */ /* some helper functions to deal with specifics of this device's registers */
static void init_asics(struct comedi_device * dev); /* sets up/clears ASIC chips to defaults */ static void init_asics(struct comedi_device *dev); /* sets up/clears ASIC chips to defaults */
static void switch_page(struct comedi_device * dev, int asic, int page); static void switch_page(struct comedi_device *dev, int asic, int page);
#ifdef notused #ifdef notused
static void lock_port(struct comedi_device * dev, int asic, int port); static void lock_port(struct comedi_device *dev, int asic, int port);
static void unlock_port(struct comedi_device * dev, int asic, int port); static void unlock_port(struct comedi_device *dev, int asic, int port);
#endif #endif
/* /*
......
...@@ -253,24 +253,24 @@ static struct comedi_driver driver = { ...@@ -253,24 +253,24 @@ static struct comedi_driver driver = {
.num_names = sizeof(pcmuio_boards) / sizeof(struct pcmuio_board), .num_names = sizeof(pcmuio_boards) / sizeof(struct pcmuio_board),
}; };
static int pcmuio_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmuio_dio_insn_bits(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static int pcmuio_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmuio_dio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_insn * insn, unsigned int * data); struct comedi_insn *insn, unsigned int *data);
static irqreturn_t interrupt_pcmuio(int irq, void *d); static irqreturn_t interrupt_pcmuio(int irq, void *d);
static void pcmuio_stop_intr(struct comedi_device *, struct comedi_subdevice *); static void pcmuio_stop_intr(struct comedi_device *, struct comedi_subdevice *);
static int pcmuio_cancel(struct comedi_device * dev, struct comedi_subdevice * s); static int pcmuio_cancel(struct comedi_device *dev, struct comedi_subdevice *s);
static int pcmuio_cmd(struct comedi_device * dev, struct comedi_subdevice * s); static int pcmuio_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
static int pcmuio_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, static int pcmuio_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
struct comedi_cmd * cmd); struct comedi_cmd *cmd);
/* some helper functions to deal with specifics of this device's registers */ /* some helper functions to deal with specifics of this device's registers */
static void init_asics(struct comedi_device * dev); /* sets up/clears ASIC chips to defaults */ static void init_asics(struct comedi_device *dev); /* sets up/clears ASIC chips to defaults */
static void switch_page(struct comedi_device * dev, int asic, int page); static void switch_page(struct comedi_device *dev, int asic, int page);
#ifdef notused #ifdef notused
static void lock_port(struct comedi_device * dev, int asic, int port); static void lock_port(struct comedi_device *dev, int asic, int port);
static void unlock_port(struct comedi_device * dev, int asic, int port); static void unlock_port(struct comedi_device *dev, int asic, int port);
#endif #endif
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment