Lines Matching +full:0 +full:x2000
41 #define BOARD_NORMAL 0
55 #define CTRL 0x16fc
56 #define STAT 0x2004
57 #define L(v) (((v)<<16)|((v) & 0x0000ffff))
58 #define H(v) (((v)>>16)|((v) & 0xffff0000))
64 void __iomem *dma = priv(host)->dma + 0x2000; in NCR5380_pwrite()
66 if(!len) return 0; in NCR5380_pwrite()
68 writeb(0x02, priv(host)->base + CTRL); in NCR5380_pwrite()
75 if(status & 0x80) in NCR5380_pwrite()
77 if(!(status & 0x40)) in NCR5380_pwrite()
88 if(len == 0) in NCR5380_pwrite()
93 writeb(0x12, priv(host)->base + CTRL); in NCR5380_pwrite()
95 while(len > 0) in NCR5380_pwrite()
99 if(status & 0x80) in NCR5380_pwrite()
101 if(status & 0x40) in NCR5380_pwrite()
104 if(--len == 0) in NCR5380_pwrite()
109 if(status & 0x80) in NCR5380_pwrite()
111 if(status & 0x40) in NCR5380_pwrite()
114 if(--len == 0) in NCR5380_pwrite()
119 writeb(priv(host)->ctrl | 0x40, priv(host)->base + CTRL); in NCR5380_pwrite()
127 void __iomem *dma = priv(host)->dma + 0x2000; in NCR5380_pread()
129 if(!len) return 0; in NCR5380_pread()
131 writeb(0x00, priv(host)->base + CTRL); in NCR5380_pread()
137 if(status & 0x80) in NCR5380_pread()
139 if(!(status & 0x40)) in NCR5380_pread()
150 if(len == 0) in NCR5380_pread()
155 writeb(0x10, priv(host)->base + CTRL); in NCR5380_pread()
157 while(len > 0) in NCR5380_pread()
161 if(status & 0x80) in NCR5380_pread()
163 if(status & 0x40) in NCR5380_pread()
166 if(--len == 0) in NCR5380_pread()
171 if(status & 0x80) in NCR5380_pread()
173 if(status & 0x40) in NCR5380_pread()
176 if(--len == 0) in NCR5380_pread()
181 writeb(priv(host)->ctrl | 0x40, priv(host)->base + CTRL); in NCR5380_pread()
190 writeb(0, base + CTRL); in cumanascsi_read()
192 val = readb(base + 0x2100 + (reg << 2)); in cumanascsi_read()
194 priv(host)->ctrl = 0x40; in cumanascsi_read()
195 writeb(0x40, base + CTRL); in cumanascsi_read()
204 writeb(0, base + CTRL); in cumanascsi_write()
206 writeb(value, base + 0x2100 + (reg << 2)); in cumanascsi_write()
208 priv(host)->ctrl = 0x40; in cumanascsi_write()
209 writeb(0x40, base + CTRL); in cumanascsi_write()
256 NCR5380_init(host, 0); in cumanascsi1_probe()
258 priv(host)->ctrl = 0; in cumanascsi1_probe()
259 writeb(0, priv(host)->base + CTRL); in cumanascsi1_probe()
275 printk("scsi%d: at port 0x%08lx irq %d", in cumanascsi1_probe()
319 { 0xffff, 0xffff }