aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2012-12-03 18:15:45 +0000
committerGreg Kroah-Hartman <[email protected]>2013-01-07 14:10:02 -0800
commit5c2d4cba9586ddc3505f51bddf935ddc65a0e0bb (patch)
treeb823db8754d98a932d18a991145a6334a2cdac57 /tools/perf/scripts/python
parentef6543dbad12c1086f3bc3565d8266352521d8a3 (diff)
staging: comedi: addi_apci_2032: use channel list
When setting up asynchronous commands for the special interrupt subdevice, use the channel list to decide which interrupt sources to enable. Set the maximum length of the channel list to be the same as the number of channels (2). Normally, the channel list would include channel 0, channel 1 or both. When reading the scan data in the interrupt routine, the readings from each channel in the channel list will be packed into a single unsigned short data value. Make each bit in this value correspond to an index in the channel list. Since all the channels in the channel list are read at the same time, insist that the scan end argument is the length of the channel list and that the conversion source is `TRIG_NOW`. Allocate some private data for the special interrupt subdevice to hold a spin-lock, the channels to be enabled and an indication of whether the command is still active. Stop the command if a buffer overflow occurs. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions