xref: /kernel/linux/linux-5.10/include/linux/mmc/sdhci-pci-data.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/include/linux/mmc/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef LINUX_MMC_SDHCI_PCI_DATA_H
38c2ecf20Sopenharmony_ci#define LINUX_MMC_SDHCI_PCI_DATA_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_cistruct pci_dev;
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct sdhci_pci_data {
88c2ecf20Sopenharmony_ci	struct pci_dev	*pdev;
98c2ecf20Sopenharmony_ci	int		slotno;
108c2ecf20Sopenharmony_ci	int		rst_n_gpio; /* Set to -EINVAL if unused */
118c2ecf20Sopenharmony_ci	int		cd_gpio;    /* Set to -EINVAL if unused */
128c2ecf20Sopenharmony_ci	int		(*setup)(struct sdhci_pci_data *data);
138c2ecf20Sopenharmony_ci	void		(*cleanup)(struct sdhci_pci_data *data);
148c2ecf20Sopenharmony_ci};
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciextern struct sdhci_pci_data *(*sdhci_pci_get_data)(struct pci_dev *pdev,
178c2ecf20Sopenharmony_ci				int slotno);
188c2ecf20Sopenharmony_ci#endif
19

Indexes created Thu Nov 07 10:32:03 CST 2024