0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.224.38.165


Current Path : /proc/self/root/usr/src/linux-headers-4.15.0-1021-aws/tools/pci/
Upload File :
Current File : //proc/self/root/usr/src/linux-headers-4.15.0-1021-aws/tools/pci/pcitest.sh

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

echo "BAR tests"
echo

bar=0

while [ $bar -lt 6 ]
do
	pcitest -b $bar
	bar=`expr $bar + 1`
done
echo

echo "Interrupt tests"
echo

pcitest -l
msi=1

while [ $msi -lt 33 ]
do
        pcitest -m $msi
        msi=`expr $msi + 1`
done
echo

echo "Read Tests"
echo

pcitest -r -s 1
pcitest -r -s 1024
pcitest -r -s 1025
pcitest -r -s 1024000
pcitest -r -s 1024001
echo

echo "Write Tests"
echo

pcitest -w -s 1
pcitest -w -s 1024
pcitest -w -s 1025
pcitest -w -s 1024000
pcitest -w -s 1024001
echo

echo "Copy Tests"
echo

pcitest -c -s 1
pcitest -c -s 1024
pcitest -c -s 1025
pcitest -c -s 1024000
pcitest -c -s 1024001
echo