forked from Minki/linux
Staging: comedi: Remove comedi_devconfig typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
063db04b89
commit
0707bb04be
@ -291,7 +291,7 @@ enum comedi_support_level {
|
||||
/* ioctls */
|
||||
|
||||
#define CIO 'd'
|
||||
#define COMEDI_DEVCONFIG _IOW(CIO, 0, comedi_devconfig)
|
||||
#define COMEDI_DEVCONFIG _IOW(CIO, 0, struct comedi_devconfig)
|
||||
#define COMEDI_DEVINFO _IOR(CIO, 1, struct comedi_devinfo)
|
||||
#define COMEDI_SUBDINFO _IOR(CIO, 2, struct comedi_subdinfo)
|
||||
#define COMEDI_CHANINFO _IOR(CIO, 3, struct comedi_chaninfo)
|
||||
@ -310,7 +310,6 @@ enum comedi_support_level {
|
||||
|
||||
/* structures */
|
||||
|
||||
typedef struct comedi_devconfig_struct comedi_devconfig;
|
||||
typedef struct comedi_rangeinfo_struct comedi_rangeinfo;
|
||||
typedef struct comedi_krange_struct comedi_krange;
|
||||
typedef struct comedi_bufconfig_struct comedi_bufconfig;
|
||||
@ -415,7 +414,7 @@ struct comedi_devinfo {
|
||||
int unused[30];
|
||||
};
|
||||
|
||||
struct comedi_devconfig_struct {
|
||||
struct comedi_devconfig {
|
||||
char board_name[COMEDI_NAMELEN];
|
||||
int options[COMEDI_NDEVCONFOPTS];
|
||||
};
|
||||
|
@ -69,7 +69,7 @@ static DEFINE_SPINLOCK(comedi_file_info_table_lock);
|
||||
static struct comedi_device_file_info
|
||||
*comedi_file_info_table[COMEDI_NUM_MINORS];
|
||||
|
||||
static int do_devconfig_ioctl(struct comedi_device *dev, comedi_devconfig *arg);
|
||||
static int do_devconfig_ioctl(struct comedi_device *dev, struct comedi_devconfig *arg);
|
||||
static int do_bufconfig_ioctl(struct comedi_device *dev, void *arg);
|
||||
static int do_devinfo_ioctl(struct comedi_device *dev, struct comedi_devinfo *arg,
|
||||
struct file *file);
|
||||
@ -192,9 +192,9 @@ done:
|
||||
writes:
|
||||
none
|
||||
*/
|
||||
static int do_devconfig_ioctl(struct comedi_device *dev, comedi_devconfig *arg)
|
||||
static int do_devconfig_ioctl(struct comedi_device *dev, struct comedi_devconfig *arg)
|
||||
{
|
||||
comedi_devconfig it;
|
||||
struct comedi_devconfig it;
|
||||
int ret;
|
||||
unsigned char *aux_data = NULL;
|
||||
int aux_len;
|
||||
@ -213,7 +213,7 @@ static int do_devconfig_ioctl(struct comedi_device *dev, comedi_devconfig *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (copy_from_user(&it, arg, sizeof(comedi_devconfig)))
|
||||
if (copy_from_user(&it, arg, sizeof(struct comedi_devconfig)))
|
||||
return -EFAULT;
|
||||
|
||||
it.board_name[COMEDI_NAMELEN - 1] = 0;
|
||||
|
@ -239,7 +239,7 @@ struct comedi_driver {
|
||||
|
||||
const char *driver_name;
|
||||
struct module *module;
|
||||
int (*attach) (struct comedi_device *, comedi_devconfig *);
|
||||
int (*attach) (struct comedi_device *, struct comedi_devconfig *);
|
||||
int (*detach) (struct comedi_device *);
|
||||
|
||||
/* number of elements in board_name and board_id arrays */
|
||||
@ -337,7 +337,7 @@ static inline struct comedi_subdevice *comedi_get_write_subdevice(
|
||||
}
|
||||
|
||||
void comedi_device_detach(struct comedi_device *dev);
|
||||
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
int comedi_driver_register(struct comedi_driver *);
|
||||
int comedi_driver_unregister(struct comedi_driver *);
|
||||
|
||||
|
@ -113,7 +113,7 @@ void comedi_device_detach(struct comedi_device *dev)
|
||||
__comedi_device_detach(dev);
|
||||
}
|
||||
|
||||
int comedi_device_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_driver *driv;
|
||||
int ret;
|
||||
@ -791,7 +791,7 @@ void comedi_reset_async_buf(struct comedi_async *async)
|
||||
|
||||
int comedi_auto_config(struct device *hardware_device, const char *board_name, const int *options, unsigned num_options)
|
||||
{
|
||||
comedi_devconfig it;
|
||||
struct comedi_devconfig it;
|
||||
int minor;
|
||||
struct comedi_device_file_info *dev_file_info;
|
||||
int retval;
|
||||
|
@ -105,7 +105,7 @@ struct subdev_8255_struct {
|
||||
#define CALLBACK_FUNC (((struct subdev_8255_struct *)s->private)->cb_func)
|
||||
#define subdevpriv ((struct subdev_8255_struct *)s->private)
|
||||
|
||||
static int dev_8255_attach(struct comedi_device *dev, comedi_devconfig * it);
|
||||
static int dev_8255_attach(struct comedi_device *dev, struct comedi_devconfig * it);
|
||||
static int dev_8255_detach(struct comedi_device *dev);
|
||||
static struct comedi_driver driver_8255 = {
|
||||
driver_name:"8255",
|
||||
@ -374,7 +374,7 @@ void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice * s)
|
||||
|
||||
*/
|
||||
|
||||
static int dev_8255_attach(struct comedi_device *dev, comedi_devconfig * it)
|
||||
static int dev_8255_attach(struct comedi_device *dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -22,7 +22,7 @@ Devices: [Adlink] ACL-7225b (acl7225b), [ICP] P16R16DIO (p16r16dio)
|
||||
#define ACL7225_DI_LO 2 /* Digital input low byte (DI0-DI7) */
|
||||
#define ACL7225_DI_HI 3 /* Digital input high byte (DI8-DI15) */
|
||||
|
||||
static int acl7225b_attach(struct comedi_device *dev, comedi_devconfig * it);
|
||||
static int acl7225b_attach(struct comedi_device *dev, struct comedi_devconfig * it);
|
||||
static int acl7225b_detach(struct comedi_device *dev);
|
||||
|
||||
typedef struct {
|
||||
@ -83,7 +83,7 @@ static int acl7225b_di_insn(struct comedi_device *dev, struct comedi_subdevice *
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int acl7225b_attach(struct comedi_device *dev, comedi_devconfig * it)
|
||||
static int acl7225b_attach(struct comedi_device *dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int iobase, iorange;
|
||||
|
@ -2542,7 +2542,7 @@ COMEDI_PCI_INITCLEANUP(driver_addi, addi_apci_tbl);
|
||||
/*
|
||||
+----------------------------------------------------------------------------+
|
||||
| Function name :static int i_ADDI_Attach(struct comedi_device *dev, |
|
||||
| comedi_devconfig *it) |
|
||||
| struct comedi_devconfig *it) |
|
||||
| |
|
||||
+----------------------------------------------------------------------------+
|
||||
| Task :Detects the card. |
|
||||
@ -2551,7 +2551,7 @@ COMEDI_PCI_INITCLEANUP(driver_addi, addi_apci_tbl);
|
||||
| allocation of data structures for the driver. |
|
||||
+----------------------------------------------------------------------------+
|
||||
| Input Parameters :struct comedi_device *dev |
|
||||
| comedi_devconfig *it |
|
||||
| struct comedi_devconfig *it |
|
||||
| |
|
||||
+----------------------------------------------------------------------------+
|
||||
| Return Value : 0 |
|
||||
@ -2559,7 +2559,7 @@ COMEDI_PCI_INITCLEANUP(driver_addi, addi_apci_tbl);
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
static int i_ADDI_Attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int i_ADDI_Attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, pages, i, n_subdevices;
|
||||
|
@ -456,7 +456,7 @@ typedef struct {
|
||||
static unsigned short pci_list_builded; /* set to 1 when list of card is known */
|
||||
|
||||
/* Function declarations */
|
||||
static int i_ADDI_Attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int i_ADDI_Detach(struct comedi_device *dev);
|
||||
static int i_ADDI_Reset(struct comedi_device *dev);
|
||||
|
||||
|
@ -106,7 +106,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((pci6208_private *)dev->private)
|
||||
|
||||
static int pci6208_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci6208_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci6208_detach(struct comedi_device * dev);
|
||||
|
||||
#define pci6208_board_nbr \
|
||||
@ -142,7 +142,7 @@ static int pci6208_ao_rinsn(struct comedi_device * dev, struct comedi_subdevice
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pci6208_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci6208_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int retval;
|
||||
|
@ -63,7 +63,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((adl_pci7296_private *)dev->private)
|
||||
|
||||
static int adl_pci7296_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int adl_pci7296_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_adl_pci7296 = {
|
||||
driver_name:"adl_pci7296",
|
||||
@ -72,7 +72,7 @@ static struct comedi_driver driver_adl_pci7296 = {
|
||||
detach:adl_pci7296_detach,
|
||||
};
|
||||
|
||||
static int adl_pci7296_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -58,7 +58,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((adl_pci7432_private *)dev->private)
|
||||
|
||||
static int adl_pci7432_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int adl_pci7432_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_adl_pci7432 = {
|
||||
driver_name:"adl_pci7432",
|
||||
@ -77,7 +77,7 @@ static int adl_pci7432_do_insn_bits(struct comedi_device * dev, struct comedi_su
|
||||
|
||||
/* */
|
||||
|
||||
static int adl_pci7432_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -70,7 +70,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((adl_pci8164_private *)dev->private)
|
||||
|
||||
static int adl_pci8164_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int adl_pci8164_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_adl_pci8164 = {
|
||||
driver_name:"adl_pci8164",
|
||||
@ -103,7 +103,7 @@ static int adl_pci8164_insn_write_buf0(struct comedi_device * dev,
|
||||
static int adl_pci8164_insn_write_buf1(struct comedi_device * dev,
|
||||
struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data);
|
||||
|
||||
static int adl_pci8164_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -265,7 +265,7 @@ TODO:
|
||||
// Function prototypes
|
||||
//
|
||||
|
||||
static int pci9111_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci9111_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci9111_detach(struct comedi_device * dev);
|
||||
static void pci9111_ai_munge(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
void *data, unsigned int num_bytes, unsigned int start_chan_index);
|
||||
@ -1246,7 +1246,7 @@ static int pci9111_reset(struct comedi_device * dev)
|
||||
// - Declare device driver capability
|
||||
//
|
||||
|
||||
static int pci9111_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci9111_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *subdevice;
|
||||
unsigned long io_base, io_range, lcr_io_base, lcr_io_range;
|
||||
|
@ -178,7 +178,7 @@ static const struct comedi_lrange range_pci9118hg = { 8, {
|
||||
|
||||
#define PCI9118_BIPOLAR_RANGES 4 /* used for test on mixture of BIP/UNI ranges */
|
||||
|
||||
static int pci9118_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci9118_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci9118_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -1835,7 +1835,7 @@ static int pci9118_reset(struct comedi_device * dev)
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int pci9118_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci9118_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, pages, i;
|
||||
|
@ -162,7 +162,7 @@ typedef struct{
|
||||
* 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_attach(struct comedi_device *dev,struct comedi_devconfig *it);
|
||||
static int adq12b_detach(struct comedi_device *dev);
|
||||
static struct comedi_driver driver_adq12b={
|
||||
driver_name: "adq12b",
|
||||
@ -184,7 +184,7 @@ static int adq12b_do_insn_bits(struct comedi_device *dev,struct comedi_subdevice
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int adq12b_attach(struct comedi_device *dev,comedi_devconfig *it)
|
||||
static int adq12b_attach(struct comedi_device *dev,struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -182,7 +182,7 @@ static const struct comedi_lrange range_pci171x_da = { 2, {
|
||||
}
|
||||
};
|
||||
|
||||
static int pci1710_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci1710_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci1710_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -1316,7 +1316,7 @@ static int pci1710_reset(struct comedi_device * dev)
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int pci1710_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci1710_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, subdev, n_subdevices;
|
||||
|
@ -143,7 +143,7 @@ MODULE_DEVICE_TABLE(pci, pci1723_pci_table);
|
||||
* the board, and also about the kernel module that contains
|
||||
* the device code.
|
||||
*/
|
||||
static int pci1723_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci1723_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci1723_detach(struct comedi_device * dev);
|
||||
|
||||
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
|
||||
@ -294,7 +294,7 @@ static int pci1723_dio_insn_bits(struct comedi_device * dev, struct comedi_subde
|
||||
* Attach is called by the Comedi core to configure the driver
|
||||
* for a pci1723 board.
|
||||
*/
|
||||
static int pci1723_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci1723_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, subdev, n_subdevices;
|
||||
|
@ -183,7 +183,7 @@ typedef enum {
|
||||
|
||||
#define OMBCMD_RETRY 0x03 /* 3 times try request before error */
|
||||
|
||||
static int pci_dio_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci_dio_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci_dio_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -750,7 +750,7 @@ static int pci_dio_reset(struct comedi_device * dev)
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int pci1760_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci1760_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int subdev = 0;
|
||||
@ -857,7 +857,7 @@ static int pci_dio_add_do(struct comedi_device * dev, struct comedi_subdevice *
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int CheckAndAllocCard(struct comedi_device * dev, comedi_devconfig * it,
|
||||
static int CheckAndAllocCard(struct comedi_device * dev, struct comedi_devconfig * it,
|
||||
struct pci_dev *pcidev)
|
||||
{
|
||||
pci_dio_private *pr, *prev;
|
||||
@ -883,7 +883,7 @@ static int CheckAndAllocCard(struct comedi_device * dev, comedi_devconfig * it,
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int pci_dio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci_dio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, subdev, n_subdevices, i, j;
|
||||
|
@ -161,7 +161,7 @@ static const struct comedi_lrange range_aio_aio12_8 = {
|
||||
}
|
||||
};
|
||||
|
||||
static int aio_aio12_8_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int aio_aio12_8_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int iobase;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -67,7 +67,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((aio_iiro_16_private *) dev->private)
|
||||
|
||||
static int aio_iiro_16_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int aio_iiro_16_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
|
||||
static int aio_iiro_16_detach(struct comedi_device * dev);
|
||||
|
||||
@ -87,7 +87,7 @@ static int aio_iiro_16_dio_insn_bits_read(struct comedi_device * dev,
|
||||
static int aio_iiro_16_dio_insn_bits_write(struct comedi_device * dev,
|
||||
struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data);
|
||||
|
||||
static int aio_iiro_16_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int aio_iiro_16_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int iobase;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -473,7 +473,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dio200_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_amplc_dio200 = {
|
||||
driver_name:DIO200_DRIVER_NAME,
|
||||
@ -1262,7 +1262,7 @@ dio200_subdev_8254_cleanup(struct comedi_device * dev, struct comedi_subdevice *
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int dio200_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dio200_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = 0;
|
||||
|
@ -165,7 +165,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pc236_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_amplc_pc236 = {
|
||||
driver_name:PC236_DRIVER_NAME,
|
||||
@ -264,7 +264,7 @@ pc236_find_pci(struct comedi_device * dev, int bus, int slot,
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pc236_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pc236_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = 0;
|
||||
|
@ -132,7 +132,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pc263_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_amplc_pc263 = {
|
||||
driver_name:PC263_DRIVER_NAME,
|
||||
@ -219,7 +219,7 @@ pc263_find_pci(struct comedi_device * dev, int bus, int slot,
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pc263_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pc263_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = 0;
|
||||
|
@ -426,7 +426,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci224_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_amplc_pci224 = {
|
||||
driver_name:DRIVER_NAME,
|
||||
@ -1323,7 +1323,7 @@ pci224_find_pci(struct comedi_device * dev, int bus, int slot,
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pci224_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci224_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
struct pci_dev *pci_dev;
|
||||
|
@ -601,7 +601,7 @@ static const unsigned char pci230_ao_bipolar[2] = { 0, 1 };
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci230_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_amplc_pci230 = {
|
||||
driver_name:"amplc_pci230",
|
||||
@ -702,7 +702,7 @@ static inline void pci230_ao_write_fifo(struct comedi_device * dev, short datum,
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pci230_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci230_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase1, iobase2;
|
||||
|
@ -97,7 +97,7 @@ union encvaluetype {
|
||||
|
||||
#define C6XDIGIO_TIME_OUT 20
|
||||
|
||||
static int c6xdigio_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int c6xdigio_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int c6xdigio_detach(struct comedi_device * dev);
|
||||
struct comedi_driver driver_c6xdigio = {
|
||||
driver_name:"c6xdigio",
|
||||
@ -428,7 +428,7 @@ static struct pnp_driver c6xdigio_pnp_driver = {
|
||||
.id_table = c6xdigio_pnp_tbl,
|
||||
};
|
||||
|
||||
static int c6xdigio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int c6xdigio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int result = 0;
|
||||
unsigned long iobase;
|
||||
|
@ -89,7 +89,7 @@ typedef struct {
|
||||
} das16cs_private;
|
||||
#define devpriv ((das16cs_private *)dev->private)
|
||||
|
||||
static int das16cs_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das16cs_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int das16cs_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_das16cs = {
|
||||
driver_name:"cb_das16_cs",
|
||||
@ -165,7 +165,7 @@ static const das16cs_board *das16cs_probe(struct comedi_device * dev,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int das16cs_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das16cs_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pcmcia_device *link;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -440,7 +440,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int cb_pcidas_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_cb_pcidas = {
|
||||
driver_name:"cb_pcidas",
|
||||
@ -508,7 +508,7 @@ static inline unsigned int cal_enable_bits(struct comedi_device * dev)
|
||||
* Attach is called by the Comedi core to configure the driver
|
||||
* for a particular board.
|
||||
*/
|
||||
static int cb_pcidas_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int cb_pcidas_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
struct pci_dev *pcidev;
|
||||
|
@ -1125,7 +1125,7 @@ static inline pcidas64_private *priv(struct comedi_device * dev)
|
||||
* 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 attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_cb_pcidas = {
|
||||
driver_name:"cb_pcidas64",
|
||||
@ -1673,7 +1673,7 @@ static inline void warn_external_queue(struct comedi_device * dev)
|
||||
* Attach is called by the Comedi core to configure the driver
|
||||
* for a particular board.
|
||||
*/
|
||||
static int attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
int index;
|
||||
|
@ -232,7 +232,7 @@ typedef struct {
|
||||
*/
|
||||
#define devpriv ((cb_pcidda_private *)dev->private)
|
||||
|
||||
static int cb_pcidda_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int cb_pcidda_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int cb_pcidda_detach(struct comedi_device * dev);
|
||||
//static int cb_pcidda_ai_rinsn(struct comedi_device *dev,struct comedi_subdevice *s,struct comedi_insn *insn,unsigned int *data);
|
||||
static int cb_pcidda_ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
@ -265,7 +265,7 @@ static struct comedi_driver driver_cb_pcidda = {
|
||||
* Attach is called by the Comedi core to configure the driver
|
||||
* for a particular board.
|
||||
*/
|
||||
static int cb_pcidda_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int cb_pcidda_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
struct pci_dev *pcidev;
|
||||
|
@ -127,7 +127,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcidio_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_cb_pcidio = {
|
||||
driver_name:"cb_pcidio",
|
||||
@ -166,7 +166,7 @@ static struct comedi_driver driver_cb_pcidio = {
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pcidio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcidio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev = NULL;
|
||||
int index;
|
||||
|
@ -175,7 +175,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int cb_pcimdas_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_cb_pcimdas = {
|
||||
driver_name:"cb_pcimdas",
|
||||
@ -197,7 +197,7 @@ static int cb_pcimdas_ao_rinsn(struct comedi_device * dev, struct comedi_subdevi
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int cb_pcimdas_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int cb_pcimdas_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
struct pci_dev *pcidev;
|
||||
|
@ -181,7 +181,7 @@ typedef struct {
|
||||
* 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 attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int detach(struct comedi_device * dev);
|
||||
static struct comedi_driver cb_pcimdda_driver = {
|
||||
driver_name:"cb_pcimdda",
|
||||
@ -226,7 +226,7 @@ static inline unsigned int figure_out_maxdata(int bits)
|
||||
*
|
||||
* Otherwise, returns a -errno on error
|
||||
*/
|
||||
static int probe(struct comedi_device * dev, const comedi_devconfig * it);
|
||||
static int probe(struct comedi_device * dev, const struct comedi_devconfig * it);
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
FUNCTION DEFINITIONS
|
||||
@ -238,7 +238,7 @@ static int probe(struct comedi_device * dev, const comedi_devconfig * it);
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int err;
|
||||
@ -425,7 +425,7 @@ static int ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
*
|
||||
* Otherwise, returns a -errno on error
|
||||
*/
|
||||
static int probe(struct comedi_device * dev, const comedi_devconfig * it)
|
||||
static int probe(struct comedi_device * dev, const struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
int index;
|
||||
|
@ -176,10 +176,10 @@ struct Private {
|
||||
* the board, and also about the kernel module that contains
|
||||
* the device code.
|
||||
*/
|
||||
static int bonding_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int bonding_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int bonding_detach(struct comedi_device *dev);
|
||||
/** Build Private array of all devices.. */
|
||||
static int doDevConfig(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int doDevConfig(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static void doDevUnconfig(struct comedi_device *dev);
|
||||
/* Ugly implementation of realloc that always copies memory around -- I'm lazy,
|
||||
* what can I say? I like to do wasteful memcopies.. :) */
|
||||
@ -224,7 +224,7 @@ static int bonding_dio_insn_config(struct comedi_device *dev, struct comedi_subd
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int bonding_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int bonding_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
|
||||
@ -394,7 +394,7 @@ static void *Realloc(const void *oldmem, size_t newlen, size_t oldlen)
|
||||
return newmem;
|
||||
}
|
||||
|
||||
static int doDevConfig(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int doDevConfig(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
int i;
|
||||
void *devs_opened[COMEDI_NUM_BOARD_MINORS];
|
||||
|
@ -90,7 +90,7 @@ pin, which can be used to wake up tasks.
|
||||
#define PARPORT_B 1
|
||||
#define PARPORT_C 2
|
||||
|
||||
static int parport_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int parport_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int parport_detach(struct comedi_device *dev);
|
||||
static struct comedi_driver driver_parport = {
|
||||
.driver_name = "comedi_parport",
|
||||
@ -291,7 +291,7 @@ static irqreturn_t parport_interrupt(int irq, void *d PT_REGS_ARG)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int parport_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int parport_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
int ret;
|
||||
unsigned int irq;
|
||||
|
@ -122,7 +122,7 @@ static inline RTIME nano2count(long long ns)
|
||||
* task period because analog input tends to be slow. */
|
||||
#define SPEED_LIMIT 100000 /* in nanoseconds */
|
||||
|
||||
static int timer_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int timer_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int timer_detach(struct comedi_device * dev);
|
||||
static int timer_inttrig(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
unsigned int trig_num);
|
||||
@ -607,7 +607,7 @@ static int timer_start_cmd(struct comedi_device * dev, struct comedi_subdevice *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int timer_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int timer_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
struct comedi_subdevice *s, *emul_s;
|
||||
|
@ -93,7 +93,7 @@ struct waveform_private {
|
||||
};
|
||||
#define devpriv ((struct waveform_private *)dev->private)
|
||||
|
||||
static int waveform_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int waveform_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int waveform_detach(struct comedi_device *dev);
|
||||
static struct comedi_driver driver_waveform = {
|
||||
.driver_name = "comedi_test",
|
||||
@ -192,7 +192,7 @@ static void waveform_ai_interrupt(unsigned long arg)
|
||||
comedi_event(dev, dev->read_subdev);
|
||||
}
|
||||
|
||||
static int waveform_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int waveform_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int amplitude = it->options[0];
|
||||
|
@ -75,7 +75,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((contec_private *)dev->private)
|
||||
|
||||
static int contec_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int contec_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_contec = {
|
||||
driver_name:"contec_pci_dio",
|
||||
@ -97,7 +97,7 @@ static int contec_cmdtest(struct comedi_device * dev, struct comedi_subdevice *
|
||||
static int contec_ns_to_timer(unsigned int *ns, int round);
|
||||
#endif
|
||||
|
||||
static int contec_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -296,7 +296,7 @@ typedef struct daqboard2000_hw {
|
||||
#define DAQBOARD2000_PosRefDacSelect 0x0100
|
||||
#define DAQBOARD2000_NegRefDacSelect 0x0000
|
||||
|
||||
static int daqboard2000_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int daqboard2000_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int daqboard2000_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver_daqboard2000 = {
|
||||
@ -717,7 +717,7 @@ static int daqboard2000_8255_cb(int dir, int port, int data,
|
||||
return result;
|
||||
}
|
||||
|
||||
static int daqboard2000_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int daqboard2000_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int result = 0;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -827,7 +827,7 @@ static int das08_counter_config(struct comedi_device * dev, struct comedi_subdev
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int das08_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das08_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
|
||||
static struct comedi_driver driver_das08 = {
|
||||
driver_name: DRV_NAME,
|
||||
@ -952,7 +952,7 @@ int das08_common_attach(struct comedi_device * dev, unsigned long iobase)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int das08_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das08_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -56,7 +56,7 @@ static struct pcmcia_device *cur_dev = NULL;
|
||||
|
||||
#define thisboard ((const struct das08_board_struct *)dev->board_ptr)
|
||||
|
||||
static int das08_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das08_cs_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
|
||||
static struct comedi_driver driver_das08_cs = {
|
||||
driver_name:"das08_cs",
|
||||
@ -69,7 +69,7 @@ static struct comedi_driver driver_das08_cs = {
|
||||
offset:sizeof(struct das08_board_struct),
|
||||
};
|
||||
|
||||
static int das08_cs_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das08_cs_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -698,7 +698,7 @@ static const struct das16_board_struct das16_boards[] = {
|
||||
|
||||
#define n_das16_boards ((sizeof(das16_boards))/(sizeof(das16_board)))
|
||||
|
||||
static int das16_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das16_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int das16_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_das16 = {
|
||||
driver_name:"das16",
|
||||
@ -1304,7 +1304,7 @@ static void reg_dump(struct comedi_device * dev)
|
||||
inb(dev->iobase + DAS1600_STATUS_B));
|
||||
}
|
||||
|
||||
static int das16_probe(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das16_probe(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int status;
|
||||
int diobits;
|
||||
@ -1366,7 +1366,7 @@ static int das1600_mode_detect(struct comedi_device * dev)
|
||||
* 3 Clock speed (in MHz)
|
||||
*/
|
||||
|
||||
static int das16_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das16_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
@ -166,7 +166,7 @@ static const das16m1_board das16m1_boards[] = {
|
||||
|
||||
#define das16m1_num_boards ((sizeof(das16m1_boards)) / (sizeof(das16m1_boards[0])))
|
||||
|
||||
static int das16m1_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das16m1_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int das16m1_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_das16m1 = {
|
||||
driver_name:"das16m1",
|
||||
@ -635,7 +635,7 @@ static int das16m1_irq_bits(unsigned int irq)
|
||||
* 1 IRQ
|
||||
*/
|
||||
|
||||
static int das16m1_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das16m1_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
@ -180,7 +180,7 @@ enum {
|
||||
das1802hr, das1802hr_da, das1801hc, das1802hc, das1801ao, das1802ao
|
||||
};
|
||||
|
||||
static int das1800_attach(struct comedi_device * dev, 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_probe(struct comedi_device * dev);
|
||||
static int das1800_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
|
||||
@ -590,7 +590,7 @@ static int das1800_init_dma(struct comedi_device * dev, unsigned int dma0,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int das1800_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das1800_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = it->options[0];
|
||||
|
@ -98,7 +98,7 @@ This driver has suffered bitrot.
|
||||
#define C2 0x80
|
||||
#define RWLH 0x30
|
||||
|
||||
static int das6402_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das6402_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int das6402_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_das6402 = {
|
||||
driver_name:"das6402",
|
||||
@ -299,7 +299,7 @@ static int das6402_detach(struct comedi_device * dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int das6402_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das6402_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned int irq;
|
||||
unsigned long iobase;
|
||||
|
@ -242,7 +242,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((das800_private *)dev->private)
|
||||
|
||||
static int das800_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int das800_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int das800_detach(struct comedi_device * dev);
|
||||
static int das800_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
|
||||
|
||||
@ -441,7 +441,7 @@ static irqreturn_t das800_interrupt(int irq, void *d PT_REGS_ARG)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static int das800_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int das800_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = it->options[0];
|
||||
|
@ -258,7 +258,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dmm32at_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dmm32at = {
|
||||
driver_name:"dmm32at",
|
||||
@ -313,7 +313,7 @@ void dmm32at_setaitimer(struct comedi_device * dev, unsigned int nansec);
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int dmm32at_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dmm32at_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -88,7 +88,7 @@ Configuration options:
|
||||
#define DT2801_STATUS 1
|
||||
#define DT2801_CMD 1
|
||||
|
||||
static int dt2801_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt2801_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt2801_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt2801 = {
|
||||
driver_name:"dt2801",
|
||||
@ -478,7 +478,7 @@ static const struct comedi_lrange *ai_range_lkup(int type, int opt)
|
||||
[4] - dac0 range 0=[-10,10], 1=[-5,5], 2=[-2.5,2.5] 3=[0,10], 4=[0,5]
|
||||
[5] - dac1 range 0=[-10,10], 1=[-5,5], 2=[-2.5,2.5] 3=[0,10], 4=[0,5]
|
||||
*/
|
||||
static int dt2801_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt2801_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -212,7 +212,7 @@ static const boardtype boardtypes[] = {
|
||||
|
||||
#define this_board ((const boardtype *)dev->board_ptr)
|
||||
|
||||
static int dt2811_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt2811_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt2811_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt2811 = {
|
||||
driver_name:"dt2811",
|
||||
@ -308,7 +308,7 @@ static irqreturn_t dt2811_interrupt(int irq, void *d PT_REGS_ARG)
|
||||
2 == unipolar 5V (0V -- +5V)
|
||||
*/
|
||||
|
||||
static int dt2811_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt2811_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
//int i, irq;
|
||||
//unsigned long irqs;
|
||||
|
@ -59,7 +59,7 @@ addition, the clock does not seem to be very accurate.
|
||||
#define DT2814_ENB 0x10
|
||||
#define DT2814_CHANMASK 0x0f
|
||||
|
||||
static int dt2814_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt2814_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt2814_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt2814 = {
|
||||
driver_name:"dt2814",
|
||||
@ -243,7 +243,7 @@ static int dt2814_ai_cmd(struct comedi_device * dev, struct comedi_subdevice * s
|
||||
|
||||
}
|
||||
|
||||
static int dt2814_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt2814_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int i, irq;
|
||||
int ret;
|
||||
|
@ -75,7 +75,7 @@ static const struct comedi_lrange range_dt2815_ao_20_current = { 1, {
|
||||
#define DT2815_DATA 0
|
||||
#define DT2815_STATUS 1
|
||||
|
||||
static int dt2815_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt2815_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt2815_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt2815 = {
|
||||
driver_name:"dt2815",
|
||||
@ -177,7 +177,7 @@ static int dt2815_ao_insn(struct comedi_device * dev, struct comedi_subdevice *
|
||||
1 == current
|
||||
*/
|
||||
|
||||
static int dt2815_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt2815_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int i;
|
||||
|
@ -47,7 +47,7 @@ Configuration options:
|
||||
#define DT2817_CR 0
|
||||
#define DT2817_DATA 1
|
||||
|
||||
static int dt2817_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt2817_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt2817_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt2817 = {
|
||||
driver_name:"dt2817",
|
||||
@ -131,7 +131,7 @@ static int dt2817_dio_insn_bits(struct comedi_device * dev, struct comedi_subdev
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int dt2817_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt2817_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -394,7 +394,7 @@ typedef struct {
|
||||
if(_i){b} \
|
||||
}while(0)
|
||||
|
||||
static int dt282x_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt282x_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt282x_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt282x = {
|
||||
driver_name:"dt282x",
|
||||
@ -1240,7 +1240,7 @@ enum { opt_iobase = 0, opt_irq, opt_dma1, opt_dma2, /* i/o base, irq, dma channe
|
||||
9 ao0 0=±10 V, 1=0-10 V, 2=±5 V, 3=0-5 V, 4=±2.5 V
|
||||
10 ao1 0=±10 V, 1=0-10 V, 2=±5 V, 3=0-5 V, 4=±2.5 V
|
||||
*/
|
||||
static int dt282x_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt282x_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int i, irq;
|
||||
int ret;
|
||||
|
@ -271,7 +271,7 @@ typedef struct {
|
||||
} dt3k_private;
|
||||
#define devpriv ((dt3k_private *)dev->private)
|
||||
|
||||
static int dt3000_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dt3000_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dt3000_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_dt3000 = {
|
||||
driver_name:"dt3000",
|
||||
@ -797,7 +797,7 @@ static int dt3k_mem_insn_read(struct comedi_device * dev, struct comedi_subdevic
|
||||
|
||||
static int dt_pci_probe(struct comedi_device * dev, int bus, int slot);
|
||||
|
||||
static int dt3000_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dt3000_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int bus, slot;
|
||||
|
@ -1009,7 +1009,7 @@ static int dt9812_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s
|
||||
return n;
|
||||
}
|
||||
|
||||
static int dt9812_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int dt9812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
int i;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -40,7 +40,7 @@ static const struct comedi_lrange range_fl512 = { 4, {
|
||||
}
|
||||
};
|
||||
|
||||
static int fl512_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int fl512_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int fl512_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver_fl512 = {
|
||||
@ -124,7 +124,7 @@ static int fl512_ao_insn_readback(struct comedi_device * dev,
|
||||
/*
|
||||
* start attach
|
||||
*/
|
||||
static int fl512_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int fl512_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned long iobase;
|
||||
struct comedi_subdevice *s; /* pointer to the subdevice:
|
||||
|
@ -52,7 +52,7 @@ support could be added to this driver.
|
||||
#include "plx9080.h"
|
||||
#include "comedi_fc.h"
|
||||
|
||||
static int hpdi_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int hpdi_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int hpdi_detach(struct comedi_device * dev);
|
||||
void abort_dma(struct comedi_device * dev, unsigned int channel);
|
||||
static int hpdi_cmd(struct comedi_device * dev, struct comedi_subdevice * s);
|
||||
@ -552,7 +552,7 @@ static int setup_dma_descriptors(struct comedi_device * dev,
|
||||
return transfer_size;
|
||||
}
|
||||
|
||||
static int hpdi_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int hpdi_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pci_dev *pcidev;
|
||||
int i;
|
||||
|
@ -123,7 +123,7 @@ static const char range_codes_analog[] = { 0x00, 0x20, 0x10, 0x30 };
|
||||
Forward declarations
|
||||
==============================================================================
|
||||
*/
|
||||
static int icp_multi_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int icp_multi_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int icp_multi_detach(struct comedi_device *dev);
|
||||
|
||||
/*
|
||||
@ -864,13 +864,13 @@ static int icp_multi_reset(struct comedi_device *dev)
|
||||
|
||||
Parameters:
|
||||
struct comedi_device *dev Pointer to current device structure
|
||||
comedi_devconfig *it Pointer to current device configuration
|
||||
struct comedi_devconfig *it Pointer to current device configuration
|
||||
|
||||
Returns:int 0 = success
|
||||
|
||||
==============================================================================
|
||||
*/
|
||||
static int icp_multi_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int icp_multi_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret, subdev, n_subdevices;
|
||||
|
@ -156,7 +156,7 @@ typedef struct {
|
||||
#define devpriv ((pci20xxx_private *)dev->private)
|
||||
#define CHAN (CR_CHAN(it->chanlist[0]))
|
||||
|
||||
static int pci20xxx_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pci20xxx_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pci20xxx_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver_pci20xxx = {
|
||||
@ -199,7 +199,7 @@ static int pci20xxx_dio_init(struct comedi_device * dev, struct comedi_subdevice
|
||||
1 == unipolar 10V (0V -- +10V)
|
||||
2 == bipolar 5V (-5V -- +5V)
|
||||
*/
|
||||
static int pci20xxx_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pci20xxx_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned char i;
|
||||
int ret;
|
||||
|
@ -103,7 +103,7 @@ static int comedi_load_firmware(struct comedi_device * dev,
|
||||
#define PCI_DEVICE_ID_JR3_3_CHANNEL 0x3113
|
||||
#define PCI_DEVICE_ID_JR3_4_CHANNEL 0x3114
|
||||
|
||||
static int jr3_pci_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int jr3_pci_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int jr3_pci_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver_jr3_pci = {
|
||||
@ -770,7 +770,7 @@ static void jr3_pci_poll_dev(unsigned long data)
|
||||
add_timer(&devpriv->timer);
|
||||
}
|
||||
|
||||
static int jr3_pci_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int jr3_pci_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int result = 0;
|
||||
struct pci_dev *card = NULL;
|
||||
|
@ -48,7 +48,7 @@ Kolter Electronic PCI Counter Card.
|
||||
|
||||
/*-- function prototypes ----------------------------------------------------*/
|
||||
|
||||
static int cnt_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int cnt_detach(struct comedi_device * dev);
|
||||
|
||||
static DEFINE_PCI_DEVICE_TABLE(cnt_pci_table) = {
|
||||
@ -144,7 +144,7 @@ static int cnt_rinsn(struct comedi_device * dev,
|
||||
|
||||
/*-- attach -----------------------------------------------------------------*/
|
||||
|
||||
static int cnt_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *subdevice;
|
||||
struct pci_dev *pci_device;
|
||||
|
@ -118,7 +118,7 @@ static const me4000_board_t me4000_boards[] = {
|
||||
/*-----------------------------------------------------------------------------
|
||||
Comedi function prototypes
|
||||
---------------------------------------------------------------------------*/
|
||||
static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int me4000_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int me4000_detach(struct comedi_device *dev);
|
||||
static struct comedi_driver driver_me4000 = {
|
||||
driver_name:"me4000",
|
||||
@ -130,7 +130,7 @@ static struct comedi_driver driver_me4000 = {
|
||||
/*-----------------------------------------------------------------------------
|
||||
Meilhaus function prototypes
|
||||
---------------------------------------------------------------------------*/
|
||||
static int me4000_probe(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int get_registers(struct comedi_device *dev, struct pci_dev *pci_dev_p);
|
||||
static int init_board_info(struct comedi_device *dev, struct pci_dev *pci_dev_p);
|
||||
static int init_ao_context(struct comedi_device *dev);
|
||||
@ -247,7 +247,7 @@ static const struct comedi_lrange me4000_ao_range = {
|
||||
}
|
||||
};
|
||||
|
||||
static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int me4000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int result;
|
||||
@ -369,7 +369,7 @@ static int me4000_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int me4000_probe(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct pci_dev *pci_device;
|
||||
int result, i;
|
||||
|
@ -144,7 +144,7 @@ from http://www.comedi.org
|
||||
#define ME_COUNTER_VALUE_B 0x0022 /* R | - */
|
||||
|
||||
/* Function prototypes */
|
||||
static int me_attach(struct comedi_device *dev, comedi_devconfig *it);
|
||||
static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int me_detach(struct comedi_device *dev);
|
||||
|
||||
static const struct comedi_lrange me2000_ai_range = {
|
||||
@ -632,7 +632,7 @@ static int me_reset(struct comedi_device *dev)
|
||||
* - Register PCI device
|
||||
* - Declare device driver capability
|
||||
*/
|
||||
static int me_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int me_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{
|
||||
struct pci_dev *pci_device;
|
||||
struct comedi_subdevice *subdevice;
|
||||
|
@ -144,7 +144,7 @@ static const struct comedi_lrange range_mpc624_bipolar10 = {
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
static int mpc624_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int mpc624_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int mpc624_detach(struct comedi_device * dev);
|
||||
//----------------------------------------------------------------------------
|
||||
static struct comedi_driver driver_mpc624 = {
|
||||
@ -158,7 +158,7 @@ static struct comedi_driver driver_mpc624 = {
|
||||
static int mpc624_ai_rinsn(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
struct comedi_insn * insn, unsigned int * data);
|
||||
//----------------------------------------------------------------------------
|
||||
static int mpc624_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int mpc624_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -44,7 +44,7 @@ typedef struct {
|
||||
} mpc8260cpm_private;
|
||||
#define devpriv ((mpc8260cpm_private *)dev->private)
|
||||
|
||||
static int mpc8260cpm_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int mpc8260cpm_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int mpc8260cpm_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_mpc8260cpm = {
|
||||
driver_name:"mpc8260cpm",
|
||||
@ -60,7 +60,7 @@ static int mpc8260cpm_dio_config(struct comedi_device * dev, struct comedi_subde
|
||||
static int mpc8260cpm_dio_bits(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
struct comedi_insn * insn, unsigned int * data);
|
||||
|
||||
static int mpc8260cpm_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int mpc8260cpm_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int i;
|
||||
|
@ -82,7 +82,7 @@ Devices: [Quanser Consulting] MultiQ-3 (multiq3)
|
||||
|
||||
#define MULTIQ3_TIMEOUT 30
|
||||
|
||||
static int multiq3_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int multiq3_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int multiq3_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_multiq3 = {
|
||||
driver_name:"multiq3",
|
||||
@ -235,7 +235,7 @@ static void encoder_reset(struct comedi_device * dev)
|
||||
options[2] - number of encoder chips installed
|
||||
*/
|
||||
|
||||
static int multiq3_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int multiq3_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int result = 0;
|
||||
unsigned long iobase;
|
||||
|
@ -75,7 +75,7 @@ Updated: Sat, 25 Jan 2003 13:24:40 -0800
|
||||
#define Rising_Edge_Detection_Enable(x) (0x018+(x))
|
||||
#define Falling_Edge_Detection_Enable(x) (0x020+(x))
|
||||
|
||||
static int ni6527_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int ni6527_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int ni6527_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_ni6527 = {
|
||||
driver_name:"ni6527",
|
||||
@ -361,7 +361,7 @@ static int ni6527_intr_insn_config(struct comedi_device * dev, struct comedi_sub
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int ni6527_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni6527_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
@ -102,7 +102,7 @@ static inline unsigned Filter_Enable(unsigned port)
|
||||
#define OverflowIntEnable 0x02
|
||||
#define EdgeIntEnable 0x01
|
||||
|
||||
static int ni_65xx_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int ni_65xx_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int ni_65xx_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_ni_65xx = {
|
||||
driver_name:"ni_65xx",
|
||||
@ -615,7 +615,7 @@ static int ni_65xx_intr_insn_config(struct comedi_device * dev, struct comedi_su
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int ni_65xx_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni_65xx_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned i;
|
||||
|
@ -444,7 +444,7 @@ static inline const ni_660x_board *board(struct comedi_device * dev)
|
||||
|
||||
#define n_ni_660x_boards (sizeof(ni_660x_boards)/sizeof(ni_660x_boards[0]))
|
||||
|
||||
static int ni_660x_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int ni_660x_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int ni_660x_detach(struct comedi_device * dev);
|
||||
static void init_tio_chip(struct comedi_device * dev, int chipset);
|
||||
static void ni_660x_select_pfi_output(struct comedi_device * dev, unsigned pfi_channel,
|
||||
@ -980,7 +980,7 @@ static void ni_660x_free_mite_rings(struct comedi_device * dev)
|
||||
}
|
||||
}
|
||||
|
||||
static int ni_660x_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni_660x_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
@ -108,7 +108,7 @@ typedef struct {
|
||||
#define devpriv ((ni_670x_private *)dev->private)
|
||||
#define n_ni_670x_boards (sizeof(ni_670x_boards)/sizeof(ni_670x_boards[0]))
|
||||
|
||||
static int ni_670x_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int ni_670x_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver_ni_670x = {
|
||||
@ -133,7 +133,7 @@ static int ni_670x_dio_insn_bits(struct comedi_device * dev, struct comedi_subde
|
||||
static int ni_670x_dio_insn_config(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
struct comedi_insn * insn, unsigned int * data);
|
||||
|
||||
static int ni_670x_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int ret;
|
||||
|
@ -167,7 +167,7 @@ typedef struct {
|
||||
|
||||
#define devpriv ((a2150_private *)dev->private)
|
||||
|
||||
static int a2150_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int a2150_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int a2150_detach(struct comedi_device * dev);
|
||||
static int a2150_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
|
||||
|
||||
@ -322,7 +322,7 @@ static int a2150_probe(struct comedi_device * dev)
|
||||
return ID_BITS(status);
|
||||
}
|
||||
|
||||
static int a2150_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int a2150_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = it->options[0];
|
||||
|
@ -178,7 +178,7 @@ typedef struct {
|
||||
} atao_private;
|
||||
#define devpriv ((atao_private *)dev->private)
|
||||
|
||||
static int atao_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int atao_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_atao = {
|
||||
driver_name:"ni_at_ao",
|
||||
@ -207,7 +207,7 @@ static int atao_calib_insn_read(struct comedi_device * dev, struct comedi_subdev
|
||||
static int atao_calib_insn_write(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
struct comedi_insn * insn, unsigned int * data);
|
||||
|
||||
static int atao_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -338,7 +338,7 @@ static struct pnp_device_id device_ids[] = {
|
||||
|
||||
MODULE_DEVICE_TABLE(pnp, device_ids);
|
||||
|
||||
static int ni_atmio_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int ni_atmio_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int ni_atmio_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_atmio = {
|
||||
driver_name:"ni_atmio",
|
||||
@ -404,7 +404,7 @@ static int ni_isapnp_find_board(struct pnp_dev **dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ni_atmio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni_atmio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pnp_dev *isapnp_dev;
|
||||
int ret;
|
||||
|
@ -123,7 +123,7 @@ static const atmio16_board_t atmio16_boards[] = {
|
||||
#define boardtype ((const atmio16_board_t *)dev->board_ptr)
|
||||
|
||||
/* function prototypes */
|
||||
static int atmio16d_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int atmio16d_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int atmio16d_detach(struct comedi_device * dev);
|
||||
static irqreturn_t atmio16d_interrupt(int irq, void *d PT_REGS_ARG);
|
||||
static int atmio16d_ai_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
@ -704,7 +704,7 @@ static int atmio16d_dio_insn_config(struct comedi_device * dev, struct comedi_su
|
||||
options[12] - dac1 coding
|
||||
*/
|
||||
|
||||
static int atmio16d_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int atmio16d_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned int irq;
|
||||
unsigned long iobase;
|
||||
|
@ -55,7 +55,7 @@ static struct pcmcia_device *pcmcia_cur_dev = NULL;
|
||||
|
||||
#define DIO700_SIZE 8 // size of io region used by board
|
||||
|
||||
static int dio700_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dio700_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dio700_detach(struct comedi_device * dev);
|
||||
|
||||
enum dio700_bustype { pcmcia_bustype };
|
||||
@ -350,7 +350,7 @@ EXPORT_SYMBOL(subdev_700_init_irq);
|
||||
EXPORT_SYMBOL(subdev_700_cleanup);
|
||||
EXPORT_SYMBOL(subdev_700_interrupt);
|
||||
|
||||
static int dio700_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dio700_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = 0;
|
||||
|
@ -56,7 +56,7 @@ static struct pcmcia_device *pcmcia_cur_dev = NULL;
|
||||
|
||||
#define DIO24_SIZE 4 // size of io region used by board
|
||||
|
||||
static int dio24_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int dio24_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int dio24_detach(struct comedi_device * dev);
|
||||
|
||||
enum dio24_bustype { pcmcia_bustype };
|
||||
@ -107,7 +107,7 @@ static struct comedi_driver driver_dio24 = {
|
||||
offset:sizeof(dio24_board),
|
||||
};
|
||||
|
||||
static int dio24_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int dio24_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase = 0;
|
||||
|
@ -163,7 +163,7 @@ NI manuals:
|
||||
#define INIT_A1_BITS 0x70 // put hardware conversion counter output in harmless state (a1 mode 0)
|
||||
#define COUNTER_B_BASE_REG 0x18
|
||||
|
||||
static int labpc_attach(struct comedi_device * dev, 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 irqreturn_t labpc_interrupt(int irq, void *d PT_REGS_ARG);
|
||||
static int labpc_drain_fifo(struct comedi_device * dev);
|
||||
@ -643,7 +643,7 @@ int labpc_common_attach(struct comedi_device * dev, unsigned long iobase,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int labpc_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned long iobase = 0;
|
||||
unsigned int irq = 0;
|
||||
|
@ -79,7 +79,7 @@ NI manuals:
|
||||
|
||||
static struct pcmcia_device *pcmcia_cur_dev = NULL;
|
||||
|
||||
static int labpc_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
|
||||
static const labpc_board labpc_cs_boards[] = {
|
||||
{
|
||||
@ -126,7 +126,7 @@ static struct comedi_driver driver_labpc_cs = {
|
||||
.offset = sizeof(labpc_board),
|
||||
};
|
||||
|
||||
static int labpc_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned long iobase = 0;
|
||||
unsigned int irq = 0;
|
||||
|
@ -4289,7 +4289,7 @@ static int ni_alloc_private(struct comedi_device * dev)
|
||||
return 0;
|
||||
};
|
||||
|
||||
static int ni_E_init(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int ni_E_init(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned j;
|
||||
|
@ -225,7 +225,7 @@ static uint16_t mio_cs_win_in(struct comedi_device * dev, int addr)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int mio_cs_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int mio_cs_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int mio_cs_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_ni_mio_cs = {
|
||||
driver_name:"ni_mio_cs",
|
||||
@ -401,7 +401,7 @@ static void mio_cs_config(struct pcmcia_device *link)
|
||||
link->dev_node = &dev_node;
|
||||
}
|
||||
|
||||
static int mio_cs_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int mio_cs_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct pcmcia_device *link;
|
||||
unsigned int irq;
|
||||
|
@ -287,7 +287,7 @@ enum FPGA_Control_Bits {
|
||||
#define IntEn (TransferReady|CountExpired|Waited|PrimaryTC|SecondaryTC)
|
||||
#endif
|
||||
|
||||
static int nidio_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int nidio_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int nidio_detach(struct comedi_device * dev);
|
||||
static int ni_pcidio_cancel(struct comedi_device * dev, struct comedi_subdevice * s);
|
||||
|
||||
@ -1149,7 +1149,7 @@ static int pci_6534_upload_firmware(struct comedi_device * dev, int options[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nidio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int nidio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int i;
|
||||
|
@ -1207,7 +1207,7 @@ static const ni_board ni_boards[] = {
|
||||
|
||||
#define n_pcimio_boards ((sizeof(ni_boards)/sizeof(ni_boards[0])))
|
||||
|
||||
static int pcimio_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcimio_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcimio_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_pcimio = {
|
||||
driver_name: DRV_NAME,
|
||||
@ -1616,7 +1616,7 @@ static int pcimio_detach(struct comedi_device * dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int pcimio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcimio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -154,7 +154,7 @@ static const boardtype boardtypes[] = {
|
||||
#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
|
||||
#define this_board ((const boardtype *)dev->board_ptr)
|
||||
|
||||
static int pcl711_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl711_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_pcl711 = {
|
||||
driver_name:"pcl711",
|
||||
@ -508,7 +508,7 @@ static int pcl711_detach(struct comedi_device * dev)
|
||||
}
|
||||
|
||||
/* Initialization */
|
||||
static int pcl711_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -56,7 +56,7 @@ See the source for configuration details.
|
||||
|
||||
// #define PCL724_IRQ 1 /* no IRQ support now */
|
||||
|
||||
static int pcl724_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl724_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl724_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -122,7 +122,7 @@ static int subdev_8255mapped_cb(int dir, int port, int data,
|
||||
}
|
||||
}
|
||||
|
||||
static int pcl724_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl724_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned long iobase;
|
||||
unsigned int iorange;
|
||||
|
@ -20,7 +20,7 @@ Devices: [Advantech] PCL-725 (pcl725)
|
||||
#define PCL725_DO 0
|
||||
#define PCL725_DI 1
|
||||
|
||||
static int pcl725_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl725_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl725_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_pcl725 = {
|
||||
driver_name:"pcl725",
|
||||
@ -59,7 +59,7 @@ static int pcl725_di_insn(struct comedi_device * dev, struct comedi_subdevice *
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int pcl725_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl725_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -111,7 +111,7 @@ static const struct comedi_lrange *const rangelist_728[] = {
|
||||
&range_4_20mA, &range_0_20mA
|
||||
};
|
||||
|
||||
static int pcl726_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl726_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl726_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -237,7 +237,7 @@ static int pcl726_do_insn_bits(struct comedi_device * dev, struct comedi_subdevi
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int pcl726_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl726_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -26,7 +26,7 @@ The ACL-7130 card have an 8254 timer/counter not supported by this driver.
|
||||
#define PCL730_DIO_LO 2 /* TTL Digital I/O low byte (D0-D7) */
|
||||
#define PCL730_DIO_HI 3 /* TTL Digital I/O high byte (D8-D15) */
|
||||
|
||||
static int pcl730_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl730_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl730_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -89,7 +89,7 @@ static int pcl730_di_insn(struct comedi_device * dev, struct comedi_subdevice *
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int pcl730_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl730_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -292,7 +292,7 @@ static const struct comedi_lrange range_a821pgh_ai = { 4, {
|
||||
}
|
||||
};
|
||||
|
||||
static int pcl812_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl812_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl812_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -1262,7 +1262,7 @@ static void pcl812_reset(struct comedi_device * dev)
|
||||
/*
|
||||
==============================================================================
|
||||
*/
|
||||
static int pcl812_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl812_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret, subdev;
|
||||
unsigned long iobase;
|
||||
|
@ -146,7 +146,7 @@ static const boardtype boardtypes[] = {
|
||||
#define devpriv ((pcl816_private *)dev->private)
|
||||
#define this_board ((const boardtype *)dev->board_ptr)
|
||||
|
||||
static int pcl816_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl816_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl816_detach(struct comedi_device * dev);
|
||||
|
||||
#ifdef unused
|
||||
@ -1011,7 +1011,7 @@ static void free_resources(struct comedi_device * dev)
|
||||
Initialization
|
||||
|
||||
*/
|
||||
static int pcl816_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl816_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -244,7 +244,7 @@ static const struct comedi_lrange range718_bipolar0_5 = { 1, {BIP_RANGE(0.5),} }
|
||||
static const struct comedi_lrange range718_unipolar2 = { 1, {UNI_RANGE(2),} };
|
||||
static const struct comedi_lrange range718_unipolar1 = { 1, {BIP_RANGE(1),} };
|
||||
|
||||
static int pcl818_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcl818_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcl818_detach(struct comedi_device * dev);
|
||||
|
||||
#ifdef unused
|
||||
@ -1675,7 +1675,7 @@ static void free_resources(struct comedi_device * dev)
|
||||
Initialization
|
||||
|
||||
*/
|
||||
static int pcl818_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcl818_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
unsigned long iobase;
|
||||
|
@ -62,7 +62,7 @@ Copy/pasted/hacked from pcm724.c
|
||||
#define CR_A_MODE(a) ((a)<<5)
|
||||
#define CR_CW 0x80
|
||||
|
||||
static int pcm3724_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcm3724_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcm3724_detach(struct comedi_device * dev);
|
||||
|
||||
typedef struct {
|
||||
@ -251,7 +251,7 @@ static int subdev_3724_insn_config(struct comedi_device * dev, struct comedi_sub
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int pcm3724_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcm3724_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned long iobase;
|
||||
unsigned int iorange;
|
||||
|
@ -28,7 +28,7 @@ Configuration options:
|
||||
#define PCM3730_DIB 2
|
||||
#define PCM3730_DIC 3
|
||||
|
||||
static int pcm3730_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcm3730_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcm3730_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_pcm3730 = {
|
||||
driver_name:"pcm3730",
|
||||
@ -63,7 +63,7 @@ static int pcm3730_di_insn_bits(struct comedi_device * dev, struct comedi_subdev
|
||||
return 2;
|
||||
}
|
||||
|
||||
static int pcm3730_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcm3730_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -76,7 +76,7 @@ struct pcmad_priv_struct {
|
||||
};
|
||||
#define devpriv ((struct pcmad_priv_struct *)dev->private)
|
||||
|
||||
static int pcmad_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcmad_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcmad_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_pcmad = {
|
||||
driver_name:"pcmad",
|
||||
@ -126,7 +126,7 @@ static int pcmad_ai_insn_read(struct comedi_device * dev, struct comedi_subdevic
|
||||
* 2 0=single ended 1=differential
|
||||
* 3 0=straight binary 1=two's comp
|
||||
*/
|
||||
static int pcmad_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcmad_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -105,7 +105,7 @@ typedef struct {
|
||||
* the board, and also about the kernel module that contains
|
||||
* the device code.
|
||||
*/
|
||||
static int pcmda12_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcmda12_detach(struct comedi_device * dev);
|
||||
|
||||
static void zero_chans(struct comedi_device * dev);
|
||||
@ -149,7 +149,7 @@ static int ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pcmda12_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -264,7 +264,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcmmio_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver = {
|
||||
@ -321,7 +321,7 @@ static void unlock_port(struct comedi_device * dev, int asic, int port);
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pcmmio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcmmio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int sdev_no, chans_left, n_dio_subdevs, n_subdevs, port, asic,
|
||||
|
@ -222,7 +222,7 @@ typedef struct {
|
||||
* 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_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int pcmuio_detach(struct comedi_device * dev);
|
||||
|
||||
static struct comedi_driver driver = {
|
||||
@ -279,7 +279,7 @@ static void unlock_port(struct comedi_device * dev, int asic, int port);
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int pcmuio_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int pcmuio_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
int sdev_no, chans_left, n_subdevs, port, asic, thisasic_chanct = 0;
|
||||
|
@ -41,7 +41,7 @@ Configuration options:
|
||||
|
||||
#include <linux/ioport.h>
|
||||
|
||||
static int poc_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int poc_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int poc_detach(struct comedi_device * dev);
|
||||
static int readback_insn(struct comedi_device * dev, struct comedi_subdevice * s,
|
||||
struct comedi_insn * insn, unsigned int * data);
|
||||
@ -113,7 +113,7 @@ static struct comedi_driver driver_poc = {
|
||||
offset:sizeof(boards[0]),
|
||||
};
|
||||
|
||||
static int poc_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int poc_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
struct comedi_subdevice *s;
|
||||
unsigned long iobase;
|
||||
|
@ -197,7 +197,7 @@ static const struct comedi_lrange range_daqp_ao = { 1, {BIP_RANGE(5)} };
|
||||
|
||||
/* comedi interface code */
|
||||
|
||||
static int daqp_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int daqp_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int daqp_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_daqp = {
|
||||
driver_name:"quatech_daqp_cs",
|
||||
@ -856,7 +856,7 @@ static int daqp_do_insn_write(struct comedi_device * dev, struct comedi_subdevic
|
||||
* when it is inserted.
|
||||
*/
|
||||
|
||||
static int daqp_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int daqp_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
int ret;
|
||||
local_info_t *local = dev_table[it->options[0]];
|
||||
|
@ -680,7 +680,7 @@ struct rtdPrivate {
|
||||
* 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_attach(struct comedi_device *dev, struct comedi_devconfig *it);
|
||||
static int rtd_detach(struct comedi_device *dev);
|
||||
|
||||
static struct comedi_driver rtd520Driver = {
|
||||
@ -715,7 +715,7 @@ static int rtd520_probe_fifo_depth(struct comedi_device *dev);
|
||||
* in the driver structure, dev->board_ptr contains that
|
||||
* address.
|
||||
*/
|
||||
static int rtd_attach(struct comedi_device *dev, comedi_devconfig *it)
|
||||
static int rtd_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
{ /* board name and options flags */
|
||||
struct comedi_subdevice *s;
|
||||
struct pci_dev *pcidev;
|
||||
|
@ -129,7 +129,7 @@ static const boardtype boardtypes[] = {
|
||||
|
||||
#define this_board ((const boardtype *)dev->board_ptr)
|
||||
|
||||
static int rti800_attach(struct comedi_device * dev, comedi_devconfig * it);
|
||||
static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it);
|
||||
static int rti800_detach(struct comedi_device * dev);
|
||||
static struct comedi_driver driver_rti800 = {
|
||||
driver_name:"rti800",
|
||||
@ -307,7 +307,7 @@ static int rti800_do_insn_bits(struct comedi_device * dev, struct comedi_subdevi
|
||||
options[8] - dac1 coding
|
||||
*/
|
||||
|
||||
static int rti800_attach(struct comedi_device * dev, comedi_devconfig * it)
|
||||
static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it)
|
||||
{
|
||||
unsigned int irq;
|
||||
unsigned long iobase;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user