|
@@ -163,6 +163,20 @@ struct apci3120_private {
|
|
unsigned short ctrl;
|
|
unsigned short ctrl;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static void apci3120_addon_write(struct comedi_device *dev,
|
|
|
|
+ unsigned int val, unsigned int reg)
|
|
|
|
+{
|
|
|
|
+ struct apci3120_private *devpriv = dev->private;
|
|
|
|
+
|
|
|
|
+ /* 16-bit interface for AMCC add-on registers */
|
|
|
|
+
|
|
|
|
+ outw(reg, devpriv->addon + APCI3120_ADDON_ADDR_REG);
|
|
|
|
+ outw(val & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG);
|
|
|
|
+
|
|
|
|
+ outw(reg + 2, devpriv->addon + APCI3120_ADDON_ADDR_REG);
|
|
|
|
+ outw((val >> 16) & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG);
|
|
|
|
+}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* There are three timers on the board. They all use the same base
|
|
* There are three timers on the board. They all use the same base
|
|
* clock with a fixed prescaler for each timer. The base clock used
|
|
* clock with a fixed prescaler for each timer. The base clock used
|