pcitest.sh 824 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. echo "BAR tests"
  4. echo
  5. bar=0
  6. while [ $bar -lt 6 ]
  7. do
  8. pcitest -b $bar
  9. bar=`expr $bar + 1`
  10. done
  11. echo
  12. echo "Interrupt tests"
  13. echo
  14. pcitest -i 0
  15. pcitest -l
  16. pcitest -i 1
  17. msi=1
  18. while [ $msi -lt 33 ]
  19. do
  20. pcitest -m $msi
  21. msi=`expr $msi + 1`
  22. done
  23. echo
  24. pcitest -i 2
  25. msix=1
  26. while [ $msix -lt 2049 ]
  27. do
  28. pcitest -x $msix
  29. msix=`expr $msix + 1`
  30. done
  31. echo
  32. echo "Read Tests"
  33. echo
  34. pcitest -i 1
  35. pcitest -r -s 1
  36. pcitest -r -s 1024
  37. pcitest -r -s 1025
  38. pcitest -r -s 1024000
  39. pcitest -r -s 1024001
  40. echo
  41. echo "Write Tests"
  42. echo
  43. pcitest -w -s 1
  44. pcitest -w -s 1024
  45. pcitest -w -s 1025
  46. pcitest -w -s 1024000
  47. pcitest -w -s 1024001
  48. echo
  49. echo "Copy Tests"
  50. echo
  51. pcitest -c -s 1
  52. pcitest -c -s 1024
  53. pcitest -c -s 1025
  54. pcitest -c -s 1024000
  55. pcitest -c -s 1024001
  56. echo