Changeset View
Changeset View
Standalone View
Standalone View
stable/12/sys/dev/acpica/acpi.c
Show First 20 Lines • Show All 863 Lines • ▼ Show 20 Lines | acpi_child_location_str_method(device_t cbdev, device_t child, char *buf, | ||||
if (dinfo->ad_handle) { | if (dinfo->ad_handle) { | ||||
snprintf(buf, buflen, "handle=%s", acpi_name(dinfo->ad_handle)); | snprintf(buf, buflen, "handle=%s", acpi_name(dinfo->ad_handle)); | ||||
if (ACPI_SUCCESS(acpi_GetInteger(dinfo->ad_handle, "_PXM", &pxm))) { | if (ACPI_SUCCESS(acpi_GetInteger(dinfo->ad_handle, "_PXM", &pxm))) { | ||||
snprintf(buf2, 32, " _PXM=%d", pxm); | snprintf(buf2, 32, " _PXM=%d", pxm); | ||||
strlcat(buf, buf2, buflen); | strlcat(buf, buf2, buflen); | ||||
} | } | ||||
} else { | } else { | ||||
snprintf(buf, buflen, "unknown"); | snprintf(buf, buflen, ""); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
/* PnP information for devctl(8) */ | /* PnP information for devctl(8) */ | ||||
static int | static int | ||||
acpi_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf, | acpi_child_pnpinfo_str_method(device_t cbdev, device_t child, char *buf, | ||||
size_t buflen) | size_t buflen) | ||||
▲ Show 20 Lines • Show All 3,427 Lines • Show Last 20 Lines |