Lines Matching refs:pcmcia
167 struct pcmcia_device *pcmcia = to_pcmcia_dev(pdev->dev.parent); in softingcs_reset() local
170 return pcmcia_write_config_byte(pcmcia, 2, v ? 0 : 0x20); in softingcs_reset()
175 struct pcmcia_device *pcmcia = to_pcmcia_dev(pdev->dev.parent); in softingcs_enable_irq() local
178 return pcmcia_write_config_byte(pcmcia, 0, v ? 0x60 : 0); in softingcs_enable_irq()
184 static int softingcs_probe_config(struct pcmcia_device *pcmcia, void *priv_data) in softingcs_probe_config() argument
191 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe_config()
202 return pcmcia_request_window(pcmcia, pres, memspeed); in softingcs_probe_config()
205 static void softingcs_remove(struct pcmcia_device *pcmcia) in softingcs_remove() argument
207 struct platform_device *pdev = pcmcia->priv; in softingcs_remove()
212 pcmcia_disable_device(pcmcia); in softingcs_remove()
225 static int softingcs_probe(struct pcmcia_device *pcmcia) in softingcs_probe() argument
237 pdat = softingcs_find_platform_data(pcmcia->manf_id, pcmcia->card_id); in softingcs_probe()
242 pcmcia->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IOMEM | in softingcs_probe()
244 ret = pcmcia_loop_config(pcmcia, softingcs_probe_config, (void *)pdat); in softingcs_probe()
248 ret = pcmcia_enable_device(pcmcia); in softingcs_probe()
252 pres = pcmcia->resource[PCMCIA_IOMEM_0]; in softingcs_probe()
270 pdev->dev.parent = &pcmcia->dev; in softingcs_probe()
271 pcmcia->priv = pdev; in softingcs_probe()
279 pdev->resource[1].start = pcmcia->irq; in softingcs_probe()
292 dev_info(&pcmcia->dev, "created %s\n", dev_name(&pdev->dev)); in softingcs_probe()
300 pcmcia_disable_device(pcmcia); in softingcs_probe()
301 pcmcia->priv = NULL; in softingcs_probe()
321 MODULE_DEVICE_TABLE(pcmcia, softingcs_ids);