|  | 
 
| 還記得在linux上面有hdparm可以幫您enabled DMA, 那在FreeBSD呢?就我所知目前FreeBSD 5.x預設都已經enabled DMA, 那要怎麼確認目前所使用的DMA mode, atacontrol這tool可幫助我們! 
 
 
 # atacontrol list列出你目前system內所有的DMA channel 
 
 
 
 # atacontrol info 0列出特定channel的info 
 
 
 
 # atatcontrol cap 0 ad0列出channel 0內ad0的完整info 
 
 
 
 # atacontrol mode 0列出channel 0所使用的DMA mode 
 
 
 
 # atacontrol mode 0 [mode]設定channel 0的DMA mode, 在這邊[mode]可使用udma2, udma3, and so on, 詳細mode與atatcontrol用法請man 8 atacontrol 
 
 # atacontrol mode 0 [Mastermode] [Slavemode]for instance 
 
 
 
 # atacontrol mode 0 udma100 udma33上面代表channel 0的Master mode設定為ATA-100, 而Slave mode設定為ATA-33 
 
 Reference: http://ifgh.blogdns.net/blog/category/1/19
 | 
 |