Lines Matching +full:0 +full:x10001

33 #define SDRICOH_PCI_REGION 0
34 #define SDRICOH_PCI_REGION_SIZE 0x1000
37 #define R104_VERSION 0x104
38 #define R200_CMD 0x200
39 #define R204_CMD_ARG 0x204
40 #define R208_DATAIO 0x208
41 #define R20C_RESP 0x20c
42 #define R21C_STATUS 0x21c
43 #define R2E0_INIT 0x2e0
44 #define R2E4_STATUS_RESP 0x2e4
45 #define R2F0_RESET 0x2f0
46 #define R224_MODE 0x224
47 #define R226_BLOCKSIZE 0x226
48 #define R228_POWER 0x228
49 #define R230_DATA 0x230
52 #define STATUS_CMD_FINISHED 0x00000001
53 #define STATUS_TRANSFER_FINISHED 0x00000004
54 #define STATUS_CARD_INSERTED 0x00000020
55 #define STATUS_CARD_LOCKED 0x00000080
56 #define STATUS_CMD_TIMEOUT 0x00400000
57 #define STATUS_READY_TO_READ 0x01000000
58 #define STATUS_READY_TO_WRITE 0x02000000
59 #define STATUS_BUSY 0x40000000
68 PCMCIA_DEVICE_PROD_ID12("RICOH", "Bay1Controller", 0xd9f522ed,
69 0xc3901202),
70 PCMCIA_DEVICE_PROD_ID12("RICOH", "Bay Controller", 0xd9f522ed,
71 0xace80909),
92 dev_vdbg(host->dev, "rl %x 0x%x\n", reg, value); in sdricoh_readl()
100 dev_vdbg(host->dev, "wl %x 0x%x\n", reg, value); in sdricoh_writel()
108 dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value); in sdricoh_readw()
116 dev_vdbg(host->dev, "ww %x 0x%x\n", reg, value); in sdricoh_writew()
123 dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value); in sdricoh_readb()
137 unsigned int status = 0; in sdricoh_query_status()
150 if (status & 0x7F0000) { in sdricoh_query_status()
154 return 0; in sdricoh_query_status()
165 sdricoh_writel(host, R21C_STATUS, 0x18); in sdricoh_mmc_cmd()
170 host->app_cmd = 0; in sdricoh_mmc_cmd()
176 sdricoh_writel(host, R200_CMD, (0x10000 << 8) | opcode); in sdricoh_mmc_cmd()
180 return 0; in sdricoh_mmc_cmd()
197 return 0; in sdricoh_mmc_cmd()
203 sdricoh_writel(host, R2F0_RESET, 0x10001); in sdricoh_reset()
204 sdricoh_writel(host, R2E0_INIT, 0x10000); in sdricoh_reset()
205 if (sdricoh_readl(host, R2E0_INIT) != 0x10000) in sdricoh_reset()
207 sdricoh_writel(host, R2E0_INIT, 0x10007); in sdricoh_reset()
209 sdricoh_writel(host, R224_MODE, 0x2000000); in sdricoh_reset()
210 sdricoh_writel(host, R228_POWER, 0xe0); in sdricoh_reset()
214 sdricoh_writel(host, R21C_STATUS, 0x18); in sdricoh_reset()
216 return 0; in sdricoh_reset()
223 u32 data = 0; in sdricoh_blockio()
228 sdricoh_writel(host, R21C_STATUS, 0x18); in sdricoh_blockio()
235 *buf = data & 0xFF; in sdricoh_blockio()
244 sdricoh_writel(host, R21C_STATUS, 0x18); in sdricoh_blockio()
259 return 0; in sdricoh_blockio()
273 sdricoh_writel(host, R21C_STATUS, 0x18); in sdricoh_request()
278 sdricoh_writel(host, R208_DATAIO, 0); in sdricoh_request()
287 for (i = 0; i < 4; i++) { in sdricoh_request()
297 cmd->resp[0] = sdricoh_readl(host, R20C_RESP); in sdricoh_request()
301 if (data && cmd->error == 0) { in sdricoh_request()
307 sdricoh_writel(host, R21C_STATUS, 0x837f031e); in sdricoh_request()
308 for (i = 0; i < data->blocks; i++) { in sdricoh_request()
349 sdricoh_writel(host, R228_POWER, 0xc0e0); in sdricoh_set_ios()
352 sdricoh_writel(host, R224_MODE, 0x2000300); in sdricoh_set_ios()
353 sdricoh_writel(host, R228_POWER, 0x40e0); in sdricoh_set_ios()
355 sdricoh_writel(host, R224_MODE, 0x2000340); in sdricoh_set_ios()
359 sdricoh_writel(host, R224_MODE, 0x2000320); in sdricoh_set_ios()
360 sdricoh_writel(host, R228_POWER, 0xe0); in sdricoh_set_ios()
407 if (readl(iobase + R104_VERSION) != 0x4000) { in sdricoh_init_mmc()
449 return 0; in sdricoh_init_mmc()
464 " %s %s ...\n", pcmcia_dev->prod_id[0], pcmcia_dev->prod_id[1]); in sdricoh_pcmcia_probe()
474 return 0; in sdricoh_pcmcia_probe()
504 return 0; in sdricoh_pcmcia_suspend()
512 return 0; in sdricoh_pcmcia_resume()
536 "Use this when unlocked cards are shown readonly (default 0)");