13 #include <linux/module.h>
16 #include <linux/pci.h>
17 #include <linux/slab.h>
24 #define COMPLETE_BAR 0
25 #define SYNOPSYS_DW_MCI_VENDOR_ID 0x700
26 #define SYNOPSYS_DW_MCI_DEVICE_ID 0x1107
28 #define DW_MCI_CAPABILITIES (MMC_CAP_4_BIT_DATA | MMC_CAP_MMC_HIGHSPEED |\
29 MMC_CAP_SD_HIGHSPEED | MMC_CAP_8_BIT_DATA |\
35 .bus_hz = 33 * 1000 * 1000,
36 .detect_delay_ms = 200,
63 host->
pdata = &pci_board_data;
71 pci_set_drvdata(pdev, host);
74 goto err_probe_failed;
90 struct dw_mci *host = pci_get_drvdata(pdev);
93 pci_set_drvdata(pdev,
NULL);
100 #ifdef CONFIG_PM_SLEEP
105 struct dw_mci *host = pci_get_drvdata(pdev);
107 ret = dw_mci_suspend(host);
115 struct dw_mci *host = pci_get_drvdata(pdev);
117 ret = dw_mci_resume(host);
121 #define dw_mci_pci_suspend NULL
122 #define dw_mci_pci_resume NULL
133 static struct pci_driver dw_mci_pci_driver = {
134 .name =
"dw_mmc_pci",
135 .id_table = dw_mci_pci_id,
136 .probe = dw_mci_pci_probe,
137 .remove = dw_mci_pci_remove,
139 .pm = &dw_mci_pci_pmops