diff options
| author | Ian Abbott <[email protected]> | 2017-01-04 10:55:40 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-01-10 17:38:32 +0100 |
| commit | f8d7b3b2f921ca5194a239a13b29b31bcfccd303 (patch) | |
| tree | b9f81cc019ce748e13df1d032be52a5ccf00dd07 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 7680a227293676eec528e4ef966769e65275d697 (diff) | |
staging: comedi: daqboard2000: check result of FPGA programming
According to an old, GPL'ed Linux driver at
<ftp://ftp.mccdaq.com/downloads/iotech_software/DaqBoard_1000_2000_Series/Linux_driver_kernelv2.4.x/>,
after programming the FPGA, the General Purpose Input (USERI) of the PLX
PCI-9080 should go high shortly after a valid FPGA bitstream has been
loaded. Add a new function `daqboard2000_wait_fpga_programmed()` to
wait for that, performing up to 200 checks over a 20 ms period (this is
loosely based on `pollFPGADone()` in the above-mentioned old driver).
Return 0 if the FPGA appears to have loaded successfully, or
`-ETIMEDOUT` if it runs out of checks. Call it from the firmware
loading callback `daqboard2000_load_firmware()` after writing the
firmware to the FPGA to check it is programmed successfully.
Signed-off-by: Ian Abbott <[email protected]>
Reviewed-by: H Hartley Sweeten <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions