#define COMEDI_NUM_BOARD_MINORS 0x30
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
-typedef struct comedi_driver_struct comedi_driver;
typedef struct comedi_lrange_struct comedi_lrange;
typedef struct device device_create_result_type;
unsigned int x);
};
-struct comedi_driver_struct {
- struct comedi_driver_struct *next;
+struct comedi_driver {
+ struct comedi_driver *next;
const char *driver_name;
struct module *module;
struct comedi_device {
int use_count;
- comedi_driver *driver;
+ struct comedi_driver *driver;
void *private;
device_create_result_type *class_dev;
void comedi_device_detach(struct comedi_device *dev);
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it);
-int comedi_driver_register(comedi_driver *);
-int comedi_driver_unregister(comedi_driver *);
+int comedi_driver_register(struct comedi_driver *);
+int comedi_driver_unregister(struct comedi_driver *);
void init_polling(void);
void cleanup_polling(void);
static int postconfig(struct comedi_device *dev);
static int insn_rw_emulate_bits(struct comedi_device *dev, struct comedi_subdevice *s,
comedi_insn *insn, unsigned int *data);
-static void *comedi_recognize(comedi_driver * driv, const char *name);
-static void comedi_report_boards(comedi_driver *driv);
+static void *comedi_recognize(struct comedi_driver * driv, const char *name);
+static void comedi_report_boards(struct comedi_driver *driv);
static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s);
int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned long new_size);
-comedi_driver *comedi_drivers;
+struct comedi_driver *comedi_drivers;
int comedi_modprobe(int minor)
{
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it)
{
- comedi_driver *driv;
+ struct comedi_driver *driv;
int ret;
if (dev->attached)
return 0;
}
-int comedi_driver_register(comedi_driver *driver)
+int comedi_driver_register(struct comedi_driver *driver)
{
driver->next = comedi_drivers;
comedi_drivers = driver;
return 0;
}
-int comedi_driver_unregister(comedi_driver *driver)
+int comedi_driver_unregister(struct comedi_driver *driver)
{
- comedi_driver *prev;
+ struct comedi_driver *prev;
int i;
/* check for devices using this driver */
}
/* generic recognize function for drivers that register their supported board names */
-void *comedi_recognize(comedi_driver * driv, const char *name)
+void *comedi_recognize(struct comedi_driver * driv, const char *name)
{
unsigned i;
const char *const *name_ptr = driv->board_name;
return NULL;
}
-void comedi_report_boards(comedi_driver *driv)
+void comedi_report_boards(struct comedi_driver *driv)
{
unsigned int i;
const char *const *name_ptr;
static int dev_8255_attach(struct comedi_device *dev, comedi_devconfig * it);
static int dev_8255_detach(struct comedi_device *dev);
-static comedi_driver driver_8255 = {
+static struct comedi_driver driver_8255 = {
driver_name:"8255",
module:THIS_MODULE,
attach:dev_8255_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_acl7225b = {
+static struct comedi_driver driver_acl7225b = {
driver_name:"acl7225b",
module:THIS_MODULE,
attach:acl7225b_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-comedi_driver driver_addi = {
+struct comedi_driver driver_addi = {
driver_name:"addi_common",
module:THIS_MODULE,
attach:i_ADDI_Attach,
#define pci6208_board_nbr \
(sizeof(pci6208_boards) / sizeof(pci6208_board))
-static comedi_driver driver_pci6208 = {
+static struct comedi_driver driver_pci6208 = {
driver_name:PCI6208_DRIVER_NAME,
module:THIS_MODULE,
attach:pci6208_attach,
static int adl_pci7296_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci7296_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci7296 = {
+static struct comedi_driver driver_adl_pci7296 = {
driver_name:"adl_pci7296",
module:THIS_MODULE,
attach:adl_pci7296_attach,
static int adl_pci7432_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci7432_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci7432 = {
+static struct comedi_driver driver_adl_pci7432 = {
driver_name:"adl_pci7432",
module:THIS_MODULE,
attach:adl_pci7432_attach,
static int adl_pci8164_attach(struct comedi_device * dev, comedi_devconfig * it);
static int adl_pci8164_detach(struct comedi_device * dev);
-static comedi_driver driver_adl_pci8164 = {
+static struct comedi_driver driver_adl_pci8164 = {
driver_name:"adl_pci8164",
module:THIS_MODULE,
attach:adl_pci8164_attach,
#define pci9111_board_nbr \
(sizeof(pci9111_boards)/sizeof(pci9111_board_struct))
-static comedi_driver pci9111_driver = {
+static struct comedi_driver pci9111_driver = {
driver_name:PCI9111_DRIVER_NAME,
module:THIS_MODULE,
attach:pci9111_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci9118 = {
+static struct comedi_driver driver_pci9118 = {
driver_name:"adl_pci9118",
module:THIS_MODULE,
attach:pci9118_attach,
#define devpriv ((adq12b_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int adq12b_attach(struct comedi_device *dev,comedi_devconfig *it);
static int adq12b_detach(struct comedi_device *dev);
-static comedi_driver driver_adq12b={
+static struct comedi_driver driver_adq12b={
driver_name: "adq12b",
module: THIS_MODULE,
attach: adq12b_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci1710 = {
+static struct comedi_driver driver_pci1710 = {
.driver_name = DRV_NAME,
.module = THIS_MODULE,
.attach = pci1710_attach,
MODULE_DEVICE_TABLE(pci, pci1723_pci_table);
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci1723 = {
+static struct comedi_driver driver_pci1723 = {
driver_name:"adv_pci1723",
module:THIS_MODULE,
attach:pci1723_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pci_dio = {
+static struct comedi_driver driver_pci_dio = {
driver_name:"adv_pci_dio",
module:THIS_MODULE,
attach:pci_dio_attach,
return 0;
}
-static comedi_driver driver_aio_aio12_8 = {
+static struct comedi_driver driver_aio_aio12_8 = {
driver_name:"aio_aio12_8",
module:THIS_MODULE,
attach:aio_aio12_8_attach,
static int aio_iiro_16_detach(struct comedi_device * dev);
-static comedi_driver driver_aio_iiro_16 = {
+static struct comedi_driver driver_aio_iiro_16 = {
driver_name:"aio_iiro_16",
module:THIS_MODULE,
attach:aio_iiro_16_attach,
} dio200_subdev_intr;
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int dio200_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dio200_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_dio200 = {
+static struct comedi_driver driver_amplc_dio200 = {
driver_name:DIO200_DRIVER_NAME,
module:THIS_MODULE,
attach:dio200_attach,
#define devpriv ((pc236_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pc236_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pc236_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pc236 = {
+static struct comedi_driver driver_amplc_pc236 = {
driver_name:PC236_DRIVER_NAME,
module:THIS_MODULE,
attach:pc236_attach,
#endif /* CONFIG_COMEDI_PCI */
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pc263_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pc263_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pc263 = {
+static struct comedi_driver driver_amplc_pc263 = {
driver_name:PC263_DRIVER_NAME,
module:THIS_MODULE,
attach:pc263_attach,
#define devpriv ((pci224_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pci224_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci224_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pci224 = {
+static struct comedi_driver driver_amplc_pci224 = {
driver_name:DRIVER_NAME,
module:THIS_MODULE,
attach:pci224_attach,
static const unsigned char pci230_ao_bipolar[2] = { 0, 1 };
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pci230_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci230_detach(struct comedi_device * dev);
-static comedi_driver driver_amplc_pci230 = {
+static struct comedi_driver driver_amplc_pci230 = {
driver_name:"amplc_pci230",
module:THIS_MODULE,
attach:pci230_attach,
static int c6xdigio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int c6xdigio_detach(struct comedi_device * dev);
-comedi_driver driver_c6xdigio = {
+struct comedi_driver driver_c6xdigio = {
driver_name:"c6xdigio",
module:THIS_MODULE,
attach:c6xdigio_attach,
static int das16cs_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16cs_detach(struct comedi_device * dev);
-static comedi_driver driver_das16cs = {
+static struct comedi_driver driver_das16cs = {
driver_name:"cb_das16_cs",
module:THIS_MODULE,
attach:das16cs_attach,
#define devpriv ((cb_pcidas_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int cb_pcidas_attach(struct comedi_device * dev, comedi_devconfig * it);
static int cb_pcidas_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidas = {
+static struct comedi_driver driver_cb_pcidas = {
driver_name:"cb_pcidas",
module:THIS_MODULE,
attach:cb_pcidas_attach,
*/
static int attach(struct comedi_device * dev, comedi_devconfig * it);
static int detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidas = {
+static struct comedi_driver driver_cb_pcidas = {
driver_name:"cb_pcidas64",
module:THIS_MODULE,
attach:attach,
unsigned int range);
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
-static comedi_driver driver_cb_pcidda = {
+static struct comedi_driver driver_cb_pcidda = {
driver_name:"cb_pcidda",
module:THIS_MODULE,
attach:cb_pcidda_attach,
#define devpriv ((pcidio_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int pcidio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcidio_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcidio = {
+static struct comedi_driver driver_cb_pcidio = {
driver_name:"cb_pcidio",
module:THIS_MODULE,
attach:pcidio_attach,
#define devpriv ((cb_pcimdas_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int cb_pcimdas_attach(struct comedi_device * dev, comedi_devconfig * it);
static int cb_pcimdas_detach(struct comedi_device * dev);
-static comedi_driver driver_cb_pcimdas = {
+static struct comedi_driver driver_cb_pcimdas = {
driver_name:"cb_pcimdas",
module:THIS_MODULE,
attach:cb_pcimdas_attach,
#define devpriv ((private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int attach(struct comedi_device * dev, comedi_devconfig * it);
static int detach(struct comedi_device * dev);
-static comedi_driver cb_pcimdda_driver = {
+static struct comedi_driver cb_pcimdda_driver = {
driver_name:"cb_pcimdda",
module:THIS_MODULE,
attach:attach,
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
#define devpriv ((struct Private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
* what can I say? I like to do wasteful memcopies.. :) */
static void *Realloc(const void *ptr, size_t len, size_t old_len);
-static comedi_driver driver_bonding = {
+static struct comedi_driver driver_bonding = {
.driver_name = MODULE_NAME,
.module = THIS_MODULE,
.attach = bonding_attach,
static int parport_attach(struct comedi_device *dev, comedi_devconfig *it);
static int parport_detach(struct comedi_device *dev);
-static comedi_driver driver_parport = {
+static struct comedi_driver driver_parport = {
.driver_name = "comedi_parport",
.module = THIS_MODULE,
.attach = parport_attach,
unsigned int trig_num);
static int timer_start_cmd(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_timer = {
+static struct comedi_driver driver_timer = {
module:THIS_MODULE,
driver_name:"comedi_rt_timer",
attach:timer_attach,
static int waveform_attach(struct comedi_device *dev, comedi_devconfig *it);
static int waveform_detach(struct comedi_device *dev);
-static comedi_driver driver_waveform = {
+static struct comedi_driver driver_waveform = {
.driver_name = "comedi_test",
.module = THIS_MODULE,
.attach = waveform_attach,
static int contec_attach(struct comedi_device * dev, comedi_devconfig * it);
static int contec_detach(struct comedi_device * dev);
-static comedi_driver driver_contec = {
+static struct comedi_driver driver_contec = {
driver_name:"contec_pci_dio",
module:THIS_MODULE,
attach:contec_attach,
static int daqboard2000_attach(struct comedi_device * dev, comedi_devconfig * it);
static int daqboard2000_detach(struct comedi_device * dev);
-static comedi_driver driver_daqboard2000 = {
+static struct comedi_driver driver_daqboard2000 = {
driver_name:"daqboard2000",
module:THIS_MODULE,
attach:daqboard2000_attach,
static int das08_attach(struct comedi_device * dev, comedi_devconfig * it);
-static comedi_driver driver_das08 = {
+static struct comedi_driver driver_das08 = {
driver_name: DRV_NAME,
module:THIS_MODULE,
attach:das08_attach,
static int das08_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
-static comedi_driver driver_das08_cs = {
+static struct comedi_driver driver_das08_cs = {
driver_name:"das08_cs",
module:THIS_MODULE,
attach:das08_cs_attach,
static int das16_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16_detach(struct comedi_device * dev);
-static comedi_driver driver_das16 = {
+static struct comedi_driver driver_das16 = {
driver_name:"das16",
module:THIS_MODULE,
attach:das16_attach,
static int das16m1_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das16m1_detach(struct comedi_device * dev);
-static comedi_driver driver_das16m1 = {
+static struct comedi_driver driver_das16m1 = {
driver_name:"das16m1",
module:THIS_MODULE,
attach:das16m1_attach,
};
*/
-static comedi_driver driver_das1800 = {
+static struct comedi_driver driver_das1800 = {
driver_name:"das1800",
module:THIS_MODULE,
attach:das1800_attach,
static int das6402_attach(struct comedi_device * dev, comedi_devconfig * it);
static int das6402_detach(struct comedi_device * dev);
-static comedi_driver driver_das6402 = {
+static struct comedi_driver driver_das6402 = {
driver_name:"das6402",
module:THIS_MODULE,
attach:das6402_attach,
static int das800_detach(struct comedi_device * dev);
static int das800_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_das800 = {
+static struct comedi_driver driver_das800 = {
driver_name:"das800",
module:THIS_MODULE,
attach:das800_attach,
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
#define devpriv ((dmm32at_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int dmm32at_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dmm32at_detach(struct comedi_device * dev);
-static comedi_driver driver_dmm32at = {
+static struct comedi_driver driver_dmm32at = {
driver_name:"dmm32at",
module:THIS_MODULE,
attach:dmm32at_attach,
static int dt2801_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2801_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2801 = {
+static struct comedi_driver driver_dt2801 = {
driver_name:"dt2801",
module:THIS_MODULE,
attach:dt2801_attach,
static int dt2811_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2811_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2811 = {
+static struct comedi_driver driver_dt2811 = {
driver_name:"dt2811",
module:THIS_MODULE,
attach:dt2811_attach,
static int dt2814_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2814_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2814 = {
+static struct comedi_driver driver_dt2814 = {
driver_name:"dt2814",
module:THIS_MODULE,
attach:dt2814_attach,
static int dt2815_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2815_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2815 = {
+static struct comedi_driver driver_dt2815 = {
driver_name:"dt2815",
module:THIS_MODULE,
attach:dt2815_attach,
static int dt2817_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt2817_detach(struct comedi_device * dev);
-static comedi_driver driver_dt2817 = {
+static struct comedi_driver driver_dt2817 = {
driver_name:"dt2817",
module:THIS_MODULE,
attach:dt2817_attach,
static int dt282x_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt282x_detach(struct comedi_device * dev);
-static comedi_driver driver_dt282x = {
+static struct comedi_driver driver_dt282x = {
driver_name:"dt282x",
module:THIS_MODULE,
attach:dt282x_attach,
static int dt3000_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dt3000_detach(struct comedi_device * dev);
-static comedi_driver driver_dt3000 = {
+static struct comedi_driver driver_dt3000 = {
driver_name:"dt3000",
module:THIS_MODULE,
attach:dt3000_attach,
return 0;
}
-static comedi_driver dt9812_comedi_driver = {
+static struct comedi_driver dt9812_comedi_driver = {
.module = THIS_MODULE,
.driver_name = "dt9812",
.attach = dt9812_attach,
static int fl512_attach(struct comedi_device * dev, comedi_devconfig * it);
static int fl512_detach(struct comedi_device * dev);
-static comedi_driver driver_fl512 = {
+static struct comedi_driver driver_fl512 = {
driver_name:"fl512",
module:THIS_MODULE,
attach:fl512_attach,
return dev->private;
}
-static comedi_driver driver_hpdi = {
+static struct comedi_driver driver_hpdi = {
driver_name:"gsc_hpdi",
module:THIS_MODULE,
attach:hpdi_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype))
-static comedi_driver driver_icp_multi = {
+static struct comedi_driver driver_icp_multi = {
driver_name:"icp_multi",
module : THIS_MODULE,
attach : icp_multi_attach,
static int pci20xxx_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pci20xxx_detach(struct comedi_device * dev);
-static comedi_driver driver_pci20xxx = {
+static struct comedi_driver driver_pci20xxx = {
driver_name:"ii_pci20kc",
module:THIS_MODULE,
attach:pci20xxx_attach,
static int jr3_pci_attach(struct comedi_device * dev, comedi_devconfig * it);
static int jr3_pci_detach(struct comedi_device * dev);
-static comedi_driver driver_jr3_pci = {
+static struct comedi_driver driver_jr3_pci = {
driver_name:"jr3_pci",
module:THIS_MODULE,
attach:jr3_pci_attach,
#define devpriv ((cnt_device_private *)dev->private)
-static comedi_driver cnt_driver = {
+static struct comedi_driver cnt_driver = {
driver_name:CNT_DRIVER_NAME,
module:THIS_MODULE,
attach:cnt_attach,
---------------------------------------------------------------------------*/
static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it);
static int me4000_detach(struct comedi_device *dev);
-static comedi_driver driver_me4000 = {
+static struct comedi_driver driver_me4000 = {
driver_name:"me4000",
module : THIS_MODULE,
attach : me4000_attach,
#define me_board_nbr (sizeof(me_boards)/sizeof(struct me_board))
-static comedi_driver me_driver = {
+
+static struct comedi_driver me_driver = {
.driver_name = ME_DRIVER_NAME,
.module = THIS_MODULE,
.attach = me_attach,
static int mpc624_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mpc624_detach(struct comedi_device * dev);
//----------------------------------------------------------------------------
-static comedi_driver driver_mpc624 = {
+static struct comedi_driver driver_mpc624 = {
driver_name:"mpc624",
module:THIS_MODULE,
attach:mpc624_attach,
static int mpc8260cpm_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mpc8260cpm_detach(struct comedi_device * dev);
-static comedi_driver driver_mpc8260cpm = {
+static struct comedi_driver driver_mpc8260cpm = {
driver_name:"mpc8260cpm",
module:THIS_MODULE,
attach:mpc8260cpm_attach,
static int multiq3_attach(struct comedi_device * dev, comedi_devconfig * it);
static int multiq3_detach(struct comedi_device * dev);
-static comedi_driver driver_multiq3 = {
+static struct comedi_driver driver_multiq3 = {
driver_name:"multiq3",
module:THIS_MODULE,
attach:multiq3_attach,
static int ni6527_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni6527_detach(struct comedi_device * dev);
-static comedi_driver driver_ni6527 = {
+static struct comedi_driver driver_ni6527 = {
driver_name:"ni6527",
module:THIS_MODULE,
attach:ni6527_attach,
static int ni_65xx_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_65xx_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_65xx = {
+static struct comedi_driver driver_ni_65xx = {
driver_name:"ni_65xx",
module:THIS_MODULE,
attach:ni_65xx_attach,
static void ni_660x_select_pfi_output(struct comedi_device * dev, unsigned pfi_channel,
unsigned output_select);
-static comedi_driver driver_ni_660x = {
+static struct comedi_driver driver_ni_660x = {
driver_name:"ni_660x",
module:THIS_MODULE,
attach:ni_660x_attach,
static int ni_670x_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_670x_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_670x = {
+static struct comedi_driver driver_ni_670x = {
driver_name:"ni_670x",
module:THIS_MODULE,
attach:ni_670x_attach,
static int a2150_detach(struct comedi_device * dev);
static int a2150_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_a2150 = {
+static struct comedi_driver driver_a2150 = {
driver_name:"ni_at_a2150",
module:THIS_MODULE,
attach:a2150_attach,
static int atao_attach(struct comedi_device * dev, comedi_devconfig * it);
static int atao_detach(struct comedi_device * dev);
-static comedi_driver driver_atao = {
+static struct comedi_driver driver_atao = {
driver_name:"ni_at_ao",
module:THIS_MODULE,
attach:atao_attach,
static int ni_atmio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int ni_atmio_detach(struct comedi_device * dev);
-static comedi_driver driver_atmio = {
+static struct comedi_driver driver_atmio = {
driver_name:"ni_atmio",
module:THIS_MODULE,
attach:ni_atmio_attach,
static void reset_atmio16d(struct comedi_device * dev);
/* main driver struct */
-static comedi_driver driver_atmio16d = {
+static struct comedi_driver driver_atmio16d = {
driver_name:"atmio16",
module:THIS_MODULE,
attach:atmio16d_attach,
#define devpriv ((dio700_private *)dev->private)
-static comedi_driver driver_dio700 = {
+static struct comedi_driver driver_dio700 = {
driver_name:"ni_daq_700",
module:THIS_MODULE,
attach:dio700_attach,
#define devpriv ((dio24_private *)dev->private)
-static comedi_driver driver_dio24 = {
+static struct comedi_driver driver_dio24 = {
driver_name:"ni_daq_dio24",
module:THIS_MODULE,
attach:dio24_attach,
#define devpriv ((labpc_private *)dev->private)
-static comedi_driver driver_labpc = {
+static struct comedi_driver driver_labpc = {
.driver_name = DRV_NAME,
.module = THIS_MODULE,
.attach = labpc_attach,
*/
#define thisboard ((const labpc_board *)dev->board_ptr)
-static comedi_driver driver_labpc_cs = {
+static struct comedi_driver driver_labpc_cs = {
.driver_name = "ni_labpc_cs",
.module = THIS_MODULE,
.attach = &labpc_attach,
static int mio_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
static int mio_cs_detach(struct comedi_device * dev);
-static comedi_driver driver_ni_mio_cs = {
+static struct comedi_driver driver_ni_mio_cs = {
driver_name:"ni_mio_cs",
module:THIS_MODULE,
attach:mio_cs_attach,
static int nidio_detach(struct comedi_device * dev);
static int ni_pcidio_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
-static comedi_driver driver_pcidio = {
+static struct comedi_driver driver_pcidio = {
driver_name:"ni_pcidio",
module:THIS_MODULE,
attach:nidio_attach,
static int pcimio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcimio_detach(struct comedi_device * dev);
-static comedi_driver driver_pcimio = {
+static struct comedi_driver driver_pcimio = {
driver_name: DRV_NAME,
module:THIS_MODULE,
attach:pcimio_attach,
static int pcl711_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcl711_detach(struct comedi_device * dev);
-static comedi_driver driver_pcl711 = {
+static struct comedi_driver driver_pcl711 = {
driver_name:"pcl711",
module:THIS_MODULE,
attach:pcl711_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl724 = {
+static struct comedi_driver driver_pcl724 = {
driver_name:"pcl724",
module:THIS_MODULE,
attach:pcl724_attach,
static int pcl725_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcl725_detach(struct comedi_device * dev);
-static comedi_driver driver_pcl725 = {
+static struct comedi_driver driver_pcl725 = {
driver_name:"pcl725",
module:THIS_MODULE,
attach:pcl725_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl726 = {
+static struct comedi_driver driver_pcl726 = {
driver_name:"pcl726",
module:THIS_MODULE,
attach:pcl726_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl730 = {
+static struct comedi_driver driver_pcl730 = {
driver_name:"pcl730",
module:THIS_MODULE,
attach:pcl730_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcl812 = {
+static struct comedi_driver driver_pcl812 = {
driver_name:"pcl812",
module:THIS_MODULE,
attach:pcl812_attach,
static int RTC_timer_lock = 0; /* RTC int lock */
#endif
-static comedi_driver driver_pcl816 = {
+static struct comedi_driver driver_pcl816 = {
driver_name:"pcl816",
module:THIS_MODULE,
attach:pcl816_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-static comedi_driver driver_pcl818 = {
+static struct comedi_driver driver_pcl818 = {
driver_name:"pcl818",
module:THIS_MODULE,
attach:pcl818_attach,
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
#define this_board ((const boardtype *)dev->board_ptr)
-static comedi_driver driver_pcm3724 = {
+static struct comedi_driver driver_pcm3724 = {
driver_name:"pcm3724",
module:THIS_MODULE,
attach:pcm3724_attach,
static int pcm3730_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcm3730_detach(struct comedi_device * dev);
-static comedi_driver driver_pcm3730 = {
+static struct comedi_driver driver_pcm3730 = {
driver_name:"pcm3730",
module:THIS_MODULE,
attach:pcm3730_attach,
static int pcmad_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmad_detach(struct comedi_device * dev);
-static comedi_driver driver_pcmad = {
+static struct comedi_driver driver_pcmad = {
driver_name:"pcmad",
module:THIS_MODULE,
attach:pcmad_attach,
#define devpriv ((pcmda12_private *)(dev->private))
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
static void zero_chans(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmda12",
module:THIS_MODULE,
attach:pcmda12_attach,
#define devpriv ((pcmmio_private *)dev->private)
#define subpriv ((pcmmio_subdev_private *)s->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
static int pcmmio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmmio_detach(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmmio",
module:THIS_MODULE,
attach:pcmmio_attach,
#define devpriv ((pcmuio_private *)dev->private)
#define subpriv ((pcmuio_subdev_private *)s->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
static int pcmuio_attach(struct comedi_device * dev, comedi_devconfig * it);
static int pcmuio_detach(struct comedi_device * dev);
-static comedi_driver driver = {
+static struct comedi_driver driver = {
driver_name:"pcmuio",
module:THIS_MODULE,
attach:pcmuio_attach,
#define n_boards (sizeof(boards)/sizeof(boards[0]))
#define this_board ((const struct boarddef_struct *)dev->board_ptr)
-static comedi_driver driver_poc = {
+static struct comedi_driver driver_poc = {
driver_name:"poc",
module:THIS_MODULE,
attach:poc_attach,
static int daqp_attach(struct comedi_device * dev, comedi_devconfig * it);
static int daqp_detach(struct comedi_device * dev);
-static comedi_driver driver_daqp = {
+static struct comedi_driver driver_daqp = {
driver_name:"quatech_daqp_cs",
module:THIS_MODULE,
attach:daqp_attach,
readb (devpriv->lcfg+LCFG_DMACSR1)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attac/detach)
* the board, and also about the kernel module that contains
* the device code.
static int rtd_attach(struct comedi_device *dev, comedi_devconfig *it);
static int rtd_detach(struct comedi_device *dev);
-static comedi_driver rtd520Driver = {
+static struct comedi_driver rtd520Driver = {
driver_name: DRV_NAME,
module : THIS_MODULE,
attach : rtd_attach,
static int rti800_attach(struct comedi_device * dev, comedi_devconfig * it);
static int rti800_detach(struct comedi_device * dev);
-static comedi_driver driver_rti800 = {
+static struct comedi_driver driver_rti800 = {
driver_name:"rti800",
module:THIS_MODULE,
attach:rti800_attach,
static int rti802_attach(struct comedi_device * dev, comedi_devconfig * it);
static int rti802_detach(struct comedi_device * dev);
-static comedi_driver driver_rti802 = {
+static struct comedi_driver driver_rti802 = {
driver_name:"rti802",
module:THIS_MODULE,
attach:rti802_attach,
#define devpriv ((s526_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int s526_attach(struct comedi_device * dev, comedi_devconfig * it);
static int s526_detach(struct comedi_device * dev);
-static comedi_driver driver_s526 = {
+static struct comedi_driver driver_s526 = {
driver_name:"s526",
module:THIS_MODULE,
attach:s526_attach,
static int s626_attach(struct comedi_device *dev, comedi_devconfig *it);
static int s626_detach(struct comedi_device *dev);
-static comedi_driver driver_s626 = {
+static struct comedi_driver driver_s626 = {
driver_name:"s626",
module : THIS_MODULE,
attach : s626_attach,
static int serial2002_attach(struct comedi_device * dev, comedi_devconfig * it);
static int serial2002_detach(struct comedi_device * dev);
-comedi_driver driver_serial2002 = {
+struct comedi_driver driver_serial2002 = {
driver_name:"serial2002",
module:THIS_MODULE,
attach:serial2002_attach,
* Devices: a full list of the boards that attempt to be supported by
* the driver. Format is "(manufacturer) board name [comedi name]",
* where comedi_name is the name that is used to configure the board.
- * See the comment near board_name: in the comedi_driver structure
+ * See the comment near board_name: in the struct comedi_driver structure
* below. If (manufacturer) or [comedi name] is missing, the previous
* value is used.
* Author: you
#define devpriv ((skel_private *)dev->private)
/*
- * The comedi_driver structure tells the Comedi core module
+ * The struct comedi_driver structure tells the Comedi core module
* which functions to call to configure/deconfigure (attach/detach)
* the board, and also about the kernel module that contains
* the device code.
*/
static int skel_attach(struct comedi_device * dev, comedi_devconfig * it);
static int skel_detach(struct comedi_device * dev);
-static comedi_driver driver_skel = {
+static struct comedi_driver driver_skel = {
driver_name:"dummy",
module:THIS_MODULE,
attach:skel_attach,
#define devpriv ((dnp_private *)dev->private)
/* ------------------------------------------------------------------------- */
-/* The comedi_driver structure tells the Comedi core module which functions */
+/* The struct comedi_driver structure tells the Comedi core module which functions */
/* to call to configure/deconfigure (attach/detach) the board, and also */
/* about the kernel module that contains the device code. */
/* */
static int dnp_attach(struct comedi_device * dev, comedi_devconfig * it);
static int dnp_detach(struct comedi_device * dev);
-static comedi_driver driver_dnp = {
+static struct comedi_driver driver_dnp = {
driver_name:"ssv_dnp",
module:THIS_MODULE,
attach:dnp_attach,
static int __unioxx5_define_chan_offset(int chan_num);
static void __unioxx5_analog_config(unioxx5_subd_priv * usp, int channel);
-static comedi_driver unioxx5_driver = {
+static struct comedi_driver unioxx5_driver = {
driver_name:DRIVER_NAME,
module:THIS_MODULE,
attach:unioxx5_attach,
}
/* main driver struct */
-static comedi_driver driver_usbdux = {
+static struct comedi_driver driver_usbdux = {
.driver_name = "usbdux",
.module = THIS_MODULE,
.attach = usbdux_attach,
/*
* main driver struct
*/
-static comedi_driver driver_usbduxfast = {
+static struct comedi_driver driver_usbduxfast = {
.driver_name = "usbduxfast",
.module = THIS_MODULE,
.attach = usbduxfast_attach,
int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int *eof, void *data);
-extern comedi_driver *comedi_drivers;
+extern struct comedi_driver *comedi_drivers;
int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
int *eof, void *data)
int i;
int devices_q = 0;
int l = 0;
- comedi_driver *driv;
+ struct comedi_driver *driv;
l += sprintf(buf + l,
"comedi version " COMEDI_RELEASE "\n"