diff options
author | msmith <msmith@FreeBSD.org> | 2001-07-30 08:59:43 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-07-30 08:59:43 +0000 |
commit | f3637b944d3ff9ce2560aca5c4ebfb9546237ab3 (patch) | |
tree | 4565ade0f1c229c587d2a413b5006f1c6133c8f7 /sys/dev/acpica/acpivar.h | |
parent | 19f490118823e7ffc57548dc393848d40cdfce0c (diff) | |
download | FreeBSD-src-f3637b944d3ff9ce2560aca5c4ebfb9546237ab3.zip FreeBSD-src-f3637b944d3ff9ce2560aca5c4ebfb9546237ab3.tar.gz |
- Prevent the ACPI code from being loaded as a module other than at
boot time. Loading as a module once the system is up and running
doesn't make any sense.
- Fix acpi_FindIndexedResource (it would only check the first resource),
changes the calling interface.
- Add a new helper function (acpi_AppendBufferResource) to help building
buffers containing resources.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r-- | sys/dev/acpica/acpivar.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index f6c21a3..42cfec7 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -206,7 +206,8 @@ extern ACPI_STATUS acpi_EvaluateInteger(ACPI_HANDLE handle, char *path, int *num extern ACPI_STATUS acpi_ForeachPackageObject(ACPI_OBJECT *obj, void (* func)(ACPI_OBJECT *comp, void *arg), void *arg); -extern ACPI_STATUS acpi_FindIndexedResource(ACPI_RESOURCE *resbuf, int index, ACPI_RESOURCE **resp); +extern ACPI_STATUS acpi_FindIndexedResource(ACPI_BUFFER *buf, int index, ACPI_RESOURCE **resp); +extern ACPI_STATUS acpi_AppendBufferResource(ACPI_BUFFER *buf, ACPI_RESOURCE *res); extern ACPI_STATUS acpi_SetSleepState(struct acpi_softc *sc, int state); extern ACPI_STATUS acpi_Enable(struct acpi_softc *sc); @@ -230,6 +231,8 @@ struct acpi_parse_resource_set { extern struct acpi_parse_resource_set acpi_res_parse_set; extern ACPI_STATUS acpi_parse_resources(device_t dev, ACPI_HANDLE handle, struct acpi_parse_resource_set *set); +/* XXX until Intel fix this in their headers, based on NEXT_RESOURCE */ +#define ACPI_RESOURCE_NEXT(Res) (ACPI_RESOURCE *)((UINT8 *) Res + Res->Length) /* * ACPI event handling |