diff options
author | njl <njl@FreeBSD.org> | 2004-03-03 18:34:42 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-03-03 18:34:42 +0000 |
commit | 902e092d18e937bd398302e1ce5156f228194093 (patch) | |
tree | 5d2239d2c8d58c89883ebf2aa344260e91fb189c /sys/dev/acpica/acpi_pcib_acpi.c | |
parent | 753cd4eacb825efbc5a6467dff1b2ba0f4748a1a (diff) | |
download | FreeBSD-src-902e092d18e937bd398302e1ce5156f228194093.zip FreeBSD-src-902e092d18e937bd398302e1ce5156f228194093.tar.gz |
Change to acpi_{Get,Set}Integer to provide both methods. Convert all
callers to the new API.
Submitted by: Mark Santcroos <marks@ripe.net>
Diffstat (limited to 'sys/dev/acpica/acpi_pcib_acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi_pcib_acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi_pcib_acpi.c b/sys/dev/acpica/acpi_pcib_acpi.c index 637d7fb..640706a 100644 --- a/sys/dev/acpica/acpi_pcib_acpi.c +++ b/sys/dev/acpica/acpi_pcib_acpi.c @@ -158,7 +158,7 @@ acpi_pcib_acpi_attach(device_t dev) * if _BBN is zero and pcib0 already exists, we try to read our * bus number from the configuration registers at address _ADR. */ - status = acpi_EvaluateInteger(sc->ap_handle, "_BBN", &sc->ap_bus); + status = acpi_GetInteger(sc->ap_handle, "_BBN", &sc->ap_bus); if (ACPI_FAILURE(status)) { if (status != AE_NOT_FOUND) { device_printf(dev, "could not evaluate _BBN - %s\n", @@ -177,7 +177,7 @@ acpi_pcib_acpi_attach(device_t dev) busok = 1; if (sc->ap_bus == 0 && devclass_get_device(pcib_devclass, 0) != dev) { busok = 0; - status = acpi_EvaluateInteger(sc->ap_handle, "_ADR", &addr); + status = acpi_GetInteger(sc->ap_handle, "_ADR", &addr); if (ACPI_FAILURE(status)) { if (status != AE_NOT_FOUND) { device_printf(dev, "could not evaluate _ADR - %s\n", @@ -216,7 +216,7 @@ acpi_pcib_acpi_attach(device_t dev) * Get our segment number by evaluating _SEG * It's OK for this to not exist. */ - if (ACPI_FAILURE(status = acpi_EvaluateInteger(sc->ap_handle, "_SEG", &sc->ap_segment))) { + if (ACPI_FAILURE(status = acpi_GetInteger(sc->ap_handle, "_SEG", &sc->ap_segment))) { if (status != AE_NOT_FOUND) { device_printf(dev, "could not evaluate _SEG - %s\n", AcpiFormatException(status)); return_VALUE(ENXIO); |