# This command must be executed to reload the PCIe40 driver after an FPGA has been reprogrammed.
# _ The tool performs the following steps, in order:
RELOAD_MODULE=0
RELOAD_ALL=1
USE_CACHE=0
FLUSH_CACHE=0
QUIET=0
#ug`pcie40_reload.synopsis`
# *pcie40_reload* [-m] [-a] [-c] [-f] [-q]
# *pcie40_reload* [-c] [-f] [-q]
function usage {
echo"pcie40_reload [-m] [-a] [-c] [-f] [-q]">&2
echo" -m reload kernel module">&2
echo" -a reload all devices">&2
echo"pcie40_reload [-c] [-f] [-q]">&2
echo" -c always read cache">&2
echo" -f always overwrite cache">&2
echo" -q suppress dmesg output">&2
...
...
@@ -27,16 +23,6 @@ function usage {
while getopts"macfqh" opt;do
case$optin
#ug`pcie40_reload.options`mod
# *-m*::
# Remove and then re-insert module into kernel (this is required after a driver update).
m)RELOAD_MODULE=1
;;
#ug`pcie40_reload.options`all
# *-a*::
# Reload all interface (by default only the interfaces where the FPGA has been reprogrammed are reloaded).
a)RELOAD_ALL=1
;;
#ug`pcie40_reload.options`cache
# *-c*::
# Take the device list from the local cache, if it exists. By default the cache is used only if no PCIe40 interface appears under sysfs. With this option the cache contents are used instead. This can be useful in case a reload was issued too early (while one FPGA was still being reprogrammed) and the corresponding sysfs nodes do not exist anymore.