cleanup.sh 241 B

12345678910111213
  1. #!/bin/bash
  2. function pci {
  3. PCILIB_PATH="/root/pcitool"
  4. LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
  5. }
  6. pci --start-dma dma1r
  7. pci -w dma1r_reset_request 1
  8. pci -w dma1r_reset 1
  9. pci -r dma1r_running
  10. pci --free-kernel-memory dma