--- zzzz-none-000/linux-4.9.279/drivers/mmc/host/sdhci-pci-core.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/mmc/host/sdhci-pci-core.c 2023-02-08 11:43:42.000000000 +0000 @@ -27,7 +27,41 @@ #include #include #include +#ifdef CONFIG_HW_MUTEXES +#include +#endif +#include "sdhci.h" + +/* + * PCI device IDs + */ +#define PCI_DEVICE_ID_INTEL_PCH_SDIO0 0x8809 +#define PCI_DEVICE_ID_INTEL_PCH_SDIO1 0x880a +#define PCI_DEVICE_ID_INTEL_BYT_EMMC 0x0f14 +#define PCI_DEVICE_ID_INTEL_BYT_SDIO 0x0f15 +#define PCI_DEVICE_ID_INTEL_BYT_SD 0x0f16 +#define PCI_DEVICE_ID_INTEL_BYT_EMMC2 0x0f50 + +/* + * PCI registers + */ + +#define PCI_SDHCI_IFPIO 0x00 +#define PCI_SDHCI_IFDMA 0x01 +#define PCI_SDHCI_IFVENDOR 0x02 + +#define PCI_SLOT_INFO 0x40 /* 8 bits */ +#define PCI_SLOT_INFO_SLOTS(x) ((x >> 4) & 7) +#define PCI_SLOT_INFO_FIRST_BAR_MASK 0x07 + +#define MAX_SLOTS 8 +struct sdhci_pci_chip; +struct sdhci_pci_slot; + +#ifdef CONFIG_HW_MUTEXES +#include +#endif #include "sdhci.h" #include "sdhci-pci.h" #include "sdhci-pci-o2micro.h" @@ -1749,6 +1783,7 @@ } ret = sdhci_add_host(host); + if (ret) goto remove;