},
};
-#define this_board ((const struct dt3k_boardtype *)dev->board_ptr)
-
#define DT3000_SIZE (4*0x1000)
/* dual-ported RAM location definitions */
static int dt3k_ai_cmdtest(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_cmd *cmd)
{
+ const struct dt3k_boardtype *this_board = comedi_board(dev);
int err = 0;
int tmp;
static int dt3000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
+ const struct dt3k_boardtype *this_board;
struct dt3k_private *devpriv;
struct pci_dev *pcidev;
struct comedi_subdevice *s;
if (!pcidev)
return -EIO;
comedi_set_hw_dev(dev, &pcidev->dev);
+ this_board = comedi_board(dev);
ret = comedi_pci_enable(pcidev, "dt3000");
if (ret < 0)