Lines Matching refs:channel
98 #define APO_IDECONF_EN(channel) (0x00000001 << (1 - (channel)))
103 #define APO_IDECONF_WR_BUFF_EN(channel) (0x00001000 << ((1 - (channel)) << 1))
104 #define APO_IDECONF_RD_PREF_EN(channel) (0x00002000 << ((1 - (channel)) << 1))
107 #define APO_IDECONF_IO_NAT(channel) \
108 (0x00400000 << (1 - (channel))) /* VIA 580 only */
109 #define APO_IDECONF_FIFO_TRSH(channel, x) \
110 ((x) & 0x3) << ((1 - (channel)) << 1 + 24)
121 #define APO_CTLMISC_FIFO_FLSH_RD(channel) (0x00100000 << (1 - (channel)))
122 #define APO_CTLMISC_FIFO_FLSH_DMA(channel) (0x00400000 << (1 - (channel)))
126 #define APO_DATATIM_MASK(channel) (0xffff << ((1 - (channel)) << 4))
127 #define APO_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \
128 (((1 - (channel)) << 4) + ((1 - (drive)) << 3)))
129 #define APO_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \
130 (((1 - (channel)) << 4) + ((1 - (drive)) << 3) + 4))
137 #define APO_UDMA_MASK(channel) (0xffff << ((1 - (channel)) << 4))
138 #define APO_UDMA_TIME(channel, drive, x) (((x) & 0xf) << \
139 (((1 - (channel)) << 4) + ((1 - (drive)) << 3)))
140 #define APO_UDMA_PIO_MODE(channel, drive) (0x20 << \
141 (((1 - (channel)) << 4) + ((1 - (drive)) << 3))) /* via only */
142 #define APO_UDMA_EN(channel, drive) (0x40 << \
143 (((1 - (channel)) << 4) + ((1 - (drive)) << 3)))
144 #define APO_UDMA_EN_MTH(channel, drive) (0x80 << \
145 (((1 - (channel)) << 4) + ((1 - (drive)) << 3)))
146 #define APO_UDMA_CLK66(channel) (0x08 << ((1 - (channel)) << 4)) /* via only */