Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sdhci/sdhci_pci.c
Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | sdhci_pci_attach(device_t dev) | ||||
/* Activate the interrupt */ | /* Activate the interrupt */ | ||||
err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, | err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_MISC | INTR_MPSAFE, | ||||
NULL, sdhci_pci_intr, sc, &sc->intrhand); | NULL, sdhci_pci_intr, sc, &sc->intrhand); | ||||
if (err) | if (err) | ||||
device_printf(dev, "Can't setup IRQ\n"); | device_printf(dev, "Can't setup IRQ\n"); | ||||
pci_enable_busmaster(dev); | pci_enable_busmaster(dev); | ||||
/* Process cards detection. */ | /* Process cards detection. */ | ||||
for (i = 0; i < sc->num_slots; i++) { | for (i = 0; i < sc->num_slots; i++) { | ||||
#ifdef MMCCAM | |||||
sdhci_cam_start_slot(&sc->slots[i]); | |||||
#else | |||||
sdhci_start_slot(&sc->slots[i]); | sdhci_start_slot(&sc->slots[i]); | ||||
#endif | |||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
sdhci_pci_detach(device_t dev) | sdhci_pci_detach(device_t dev) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |