blob: 1d42872d22f36c8dfb1f9a67d7881820d2521e14 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Adrian Hunter52c506f2011-12-27 15:48:43 +02002#ifndef LINUX_MMC_SDHCI_PCI_DATA_H
3#define LINUX_MMC_SDHCI_PCI_DATA_H
4
5struct pci_dev;
6
7struct sdhci_pci_data {
8 struct pci_dev *pdev;
9 int slotno;
10 int rst_n_gpio; /* Set to -EINVAL if unused */
11 int cd_gpio; /* Set to -EINVAL if unused */
12 int (*setup)(struct sdhci_pci_data *data);
13 void (*cleanup)(struct sdhci_pci_data *data);
14};
15
16extern struct sdhci_pci_data *(*sdhci_pci_get_data)(struct pci_dev *pdev,
17 int slotno);
Adrian Hunter52c506f2011-12-27 15:48:43 +020018#endif