diff options
author | njl <njl@FreeBSD.org> | 2005-02-05 22:28:36 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-05 22:28:36 +0000 |
commit | 91da9ee9862682a904c81cb681b35c97f57c2f5d (patch) | |
tree | 10024df0268cec88bc7178a3ca893917f7750e99 /sys/dev/acpica/acpivar.h | |
parent | 847a21ef1075a69823ce60cd0c0061637aea4b96 (diff) | |
download | FreeBSD-src-91da9ee9862682a904c81cb681b35c97f57c2f5d.zip FreeBSD-src-91da9ee9862682a904c81cb681b35c97f57c2f5d.tar.gz |
Convert the acpi_bus_alloc_gas() and acpi_PkgGas() APIs to output the memory
type. This is needed if the resource is to be released later. The RID is
still also present, though less necessary since rman_get_rid() can be used
to obtain it from the resource.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index a06717e..4478252 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -282,8 +282,8 @@ int acpi_parse_prw(ACPI_HANDLE h, struct acpi_prw_data *prw); ACPI_STATUS acpi_Startup(void); void acpi_UserNotify(const char *subsystem, ACPI_HANDLE h, uint8_t notify); -struct resource *acpi_bus_alloc_gas(device_t dev, int *rid, - ACPI_GENERIC_ADDRESS *gas); +int acpi_bus_alloc_gas(device_t dev, int *type, int *rid, + ACPI_GENERIC_ADDRESS *gas, struct resource **res); struct acpi_parse_resource_set { void (*set_init)(device_t dev, void *arg, void **context); @@ -387,8 +387,8 @@ int acpi_acad_get_acline(int *); int acpi_PkgInt(ACPI_OBJECT *res, int idx, ACPI_INTEGER *dst); int acpi_PkgInt32(ACPI_OBJECT *res, int idx, uint32_t *dst); int acpi_PkgStr(ACPI_OBJECT *res, int idx, void *dst, size_t size); -int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *rid, - struct resource **dst); +int acpi_PkgGas(device_t dev, ACPI_OBJECT *res, int idx, int *type, + int *rid, struct resource **dst); ACPI_HANDLE acpi_GetReference(ACPI_HANDLE scope, ACPI_OBJECT *obj); #ifndef ACPI_MAX_THREADS |