static unsigned char dio200_read8(struct comedi_device *dev,
unsigned int offset)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
if (board->is_pcie)
offset <<= 3;
static void dio200_write8(struct comedi_device *dev,
unsigned int offset, unsigned char val)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
if (board->is_pcie)
offset <<= 3;
static unsigned int dio200_read32(struct comedi_device *dev,
unsigned int offset)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
if (board->is_pcie)
offset <<= 3;
static void dio200_write32(struct comedi_device *dev,
unsigned int offset, unsigned int val)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
if (board->is_pcie)
offset <<= 3;
struct comedi_insn *insn,
unsigned int *data)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_intr *subpriv = s->private;
if (board->has_int_sce) {
static void dio200_stop_intr(struct comedi_device *dev,
struct comedi_subdevice *s)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_intr *subpriv = s->private;
subpriv->active = false;
static void dio200_start_intr(struct comedi_device *dev,
struct comedi_subdevice *s)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_intr *subpriv = s->private;
struct comedi_cmd *cmd = &s->async->cmd;
unsigned int n;
static int dio200_handle_read_intr(struct comedi_device *dev,
struct comedi_subdevice *s)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_intr *subpriv = s->private;
unsigned triggered;
unsigned intstat;
unsigned int offset,
unsigned valid_isns)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_intr *subpriv;
subpriv = comedi_alloc_spriv(s, sizeof(*subpriv));
unsigned int counter_number,
unsigned int gate_src)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_8254 *subpriv = s->private;
unsigned char byte;
struct comedi_subdevice *s,
unsigned int counter_number)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_8254 *subpriv = s->private;
if (!board->has_clk_gat_sce)
unsigned int counter_number,
unsigned int clock_src)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_8254 *subpriv = s->private;
unsigned char byte;
unsigned int counter_number,
unsigned int *period_ns)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_8254 *subpriv = s->private;
unsigned clock_src;
struct comedi_subdevice *s,
unsigned int offset)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct dio200_subdev_8254 *subpriv;
unsigned int chan;
int amplc_dio200_common_attach(struct comedi_device *dev, unsigned int irq,
unsigned long req_irq_flags)
{
- const struct dio200_board *board = comedi_board(dev);
+ const struct dio200_board *board = dev->board_ptr;
struct comedi_subdevice *s;
unsigned int n;
int ret;