mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00

This edits the headers in every file so the copyright notice mentions RWTH Aachen University. We also update some copyright years and fix various comments so the header is the same across all of VILLASframework. * Harmonize comment and code-style Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com> * Harmonize comment and code-style Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com> --------- Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
18 lines
464 B
Bash
Executable file
18 lines
464 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Reset PCI devices like FPGAs after a reflash
|
|
#
|
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
|
# SPDX-FileCopyrightText: 2017 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage: $0 BUS:DEV.FNC"
|
|
exit 1
|
|
fi
|
|
|
|
BDF=$1
|
|
|
|
echo "1" > /sys/bus/pci/devices/${BDF}/remove
|
|
echo "1" > /sys/bus/pci/rescan
|
|
echo "1" > /sys/bus/pci/devices/${BDF}/reset
|