提交 82beb5d8 编写于 作者: S Sergei Shtylyov 提交者: Jeff Garzik

pata_hpt366: fix timing register documentation

The comment in the driver actually describes HPT37x's timing register layout,
which is different from HPT36x.  Fix it and reformat the comment, while at it.

Bump the driver version, accounting for several patches that forgot to do it.
Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 9cd13bdb
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <linux/libata.h> #include <linux/libata.h>
#define DRV_NAME "pata_hpt366" #define DRV_NAME "pata_hpt366"
#define DRV_VERSION "0.6.2" #define DRV_VERSION "0.6.7"
struct hpt_clock { struct hpt_clock {
u8 xfer_mode; u8 xfer_mode;
...@@ -36,24 +36,22 @@ struct hpt_clock { ...@@ -36,24 +36,22 @@ struct hpt_clock {
/* key for bus clock timings /* key for bus clock timings
* bit * bit
* 0:3 data_high_time. inactive time of DIOW_/DIOR_ for PIO and MW * 0:3 data_high_time. Inactive time of DIOW_/DIOR_ for PIO and MW DMA.
* DMA. cycles = value + 1 * cycles = value + 1
* 4:8 data_low_time. active time of DIOW_/DIOR_ for PIO and MW * 4:7 data_low_time. Active time of DIOW_/DIOR_ for PIO and MW DMA.
* DMA. cycles = value + 1 * cycles = value + 1
* 9:12 cmd_high_time. inactive time of DIOW_/DIOR_ during task file * 8:11 cmd_high_time. Inactive time of DIOW_/DIOR_ during task file
* register access. * register access.
* 13:17 cmd_low_time. active time of DIOW_/DIOR_ during task file * 12:15 cmd_low_time. Active time of DIOW_/DIOR_ during task file
* register access. * register access.
* 18:21 udma_cycle_time. clock freq and clock cycles for UDMA xfer. * 16:18 udma_cycle_time. Clock cycles for UDMA xfer?
* during task file register access. * 19:21 pre_high_time. Time to initialize 1st cycle for PIO and MW DMA xfer.
* 22:24 pre_high_time. time to initialize 1st cycle for PIO and MW DMA * 22:24 cmd_pre_high_time. Time to initialize 1st PIO cycle for task file
* xfer.
* 25:27 cmd_pre_high_time. time to initialize 1st PIO cycle for task
* register access. * register access.
* 28 UDMA enable * 28 UDMA enable.
* 29 DMA enable * 29 DMA enable.
* 30 PIO_MST enable. if set, the chip is in bus master mode during * 30 PIO_MST enable. If set, the chip is in bus master mode during
* PIO. * PIO xfer.
* 31 FIFO enable. * 31 FIFO enable.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册