Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sdhci/sdhci_acpi.c
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | sdhci_acpi_write_multi_4(device_t dev, struct sdhci_slot *slot __unused, | ||||
struct sdhci_acpi_softc *sc = device_get_softc(dev); | struct sdhci_acpi_softc *sc = device_get_softc(dev); | ||||
bus_write_multi_stream_4(sc->mem_res, off, data, count); | bus_write_multi_stream_4(sc->mem_res, off, data, count); | ||||
} | } | ||||
static const struct sdhci_acpi_device * | static const struct sdhci_acpi_device * | ||||
sdhci_acpi_find_device(device_t dev) | sdhci_acpi_find_device(device_t dev) | ||||
{ | { | ||||
const char *hid; | char *hid; | ||||
int i, uid; | int i, uid; | ||||
ACPI_HANDLE handle; | ACPI_HANDLE handle; | ||||
ACPI_STATUS status; | ACPI_STATUS status; | ||||
int rv; | |||||
hid = ACPI_ID_PROBE(device_get_parent(dev), dev, sdhci_ids); | rv = ACPI_ID_PROBE(device_get_parent(dev), dev, sdhci_ids, &hid); | ||||
if (hid == NULL) | if (rv > 0) | ||||
return (NULL); | return (NULL); | ||||
handle = acpi_get_handle(dev); | handle = acpi_get_handle(dev); | ||||
status = acpi_GetInteger(handle, "_UID", &uid); | status = acpi_GetInteger(handle, "_UID", &uid); | ||||
if (ACPI_FAILURE(status)) | if (ACPI_FAILURE(status)) | ||||
uid = 0; | uid = 0; | ||||
for (i = 0; sdhci_acpi_devices[i].hid != NULL; i++) { | for (i = 0; sdhci_acpi_devices[i].hid != NULL; i++) { | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |