summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_resource.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a De Morgan bug: If we only expect a memory range OR anmarcel2002-12-231-8/+8
| | | | | | | | | | I/O port range, then we should ignore a resource if it's NOT a memory range AND NOT an I/O port range. The OR in the condition caused us to ignore perfectly valid memory addresses. While here, remove redundant parenthesis and reindent the debug print to avoid long lines.
* Oops, missed this one. Fix a printf format error on 64 bit systemspeter2002-10-041-2/+2
| | | | where sizes are long instead of int.
* Brutally deal with __func__ being 'const char *' on gcc-3.1.peter2002-05-191-1/+1
|
* Match namespace cleanup changes in ACPI CA 20020217 update.msmith2002-02-231-19/+20
| | | | | Use ACPI_SUCCESS/ACPI_FAILURE consistently. The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.
* Fix irq/drq handling. IRQ and DRQ resource information can be gettakawata2002-01-311-26/+41
| | | | | in one object for one resource. Array of values in a object means possible values for the object.
* Staticise devclasses and some unnecessarily global variables.msmith2002-01-081-1/+1
|
* Allocate system resource IRQs as shareable; this is the typical case.msmith2001-09-061-1/+1
|
* Don't claim memory resources owned by a PNP0C01 device ("system memory")msmith2001-08-311-3/+6
| | | | as some systems claim the entire physical address space is owned by it.
* Don't activate placeholder resources; it can be very expensive in themsmith2001-08-311-3/+3
| | | | SYS_RES_MEMORY case, and it shouldn't be necessary.
* Retarget the resource parser slightly. We only fetch current resourcesmsmith2001-08-301-36/+287
| | | | | | | | | | | | | | | | for the device now (we should really just be parsing a passed-in resource buffer). Wrap long lines so this is (more) readable. Support Address16 and Address32 resources, in the CONSUMER case. Support DRQs so that we can handle ISA devices. Support ExtendedIrqs (we ignore most of their attributes) Add a placeholder device for system memory and system resources. This takes the place of the nexus placeholder, which only attaches to ISA.
* Updates to match the ACPI CA 20010816 import:msmith2001-08-261-24/+24
| | | | | - New debug macro (ACPI_DEBUG_PRINT), reducing debug-case code size. - New debug level/subsystem codes.
* Convert from acpi_strerror() to AcpiFormatException()msmith2001-07-211-1/+1
| | | | Fix dangling include of the dear departed acpi_ecreg.h
* Update for new debug layer constant names in the ACPI CA 20010615msmith2001-06-291-1/+1
| | | | import.
* - Updates for new constant naming in the ACPI CA 20010518 update.msmith2001-05-291-19/+19
| | | | | | | | | | | - Use __func__ instead of __FUNCTION. - Support power-off to S3 or S5 (takawata) - Enable ACPI debugging earlier (with a sysinit) - Fix a deadlock in the EC code (takawata) - Improve arithmetic and reduce the risk of spurious wakeup in AcpiOsSleep. - Add AcpiOsGetThreadId. - Simplify mutex code (still disabled).
* - Convert a lot of homebrew debugging output to use the ACPI CA debuggingmsmith2000-12-081-55/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | infrastructure. It's not perfect, but it's a lot better than what we've been using so far. The following rules apply to this: o BSD component names should be capitalised o Layer names should be taken from the non-CA set for now. We may elect to add some new BSD-specific layers later. - Make it possible to turn off selective debugging flags or layers by listing them in debug.acpi.layer or debug.acpi.level prefixed with !. - Fully implement support for avoiding nodes in the ACPI namespace. Nodes may be listed in the debug.acpi.avoid environment variable; these nodes and all their children will be ignored (although still scanned over) by ACPI functions which scan the namespace. Multiple nodes can be specified, separated by whitespace. - Implement support for selectively disabling ACPI subsystem components via the debug.acpi.disable environment variable. The following components can be disabled: o bus creation/scanning of the ACPI 'bus' o children attachment of children to the ACPI 'bus' o button the acpi_button control-method button driver o ec the acpi_ec embedded-controller driver o isa acpi replacement of PnP BIOS for ISA device discovery o lid the control-method lid switch driver o pci pci root-bus discovery o processor CPU power/speed management o thermal system temperature detection and control o timer ACPI timecounter Multiple components may be disabled by specifying their name(s) separated by whitespace. - Add support for ioctl registration. ACPI subsystem components may register ioctl handlers with the /dev/acpi generic ioctl handler, allowing us to avoid the need for a multitude of /dev/acpi* control devices, etc.
* Initial FreeBSD OSPM (operating system power management) modules formsmith2000-10-281-0/+343
ACPICA. Most of these are still works in progress. Support exists for: - Fixed feature and control method power, lid and sleep buttons. - Detection of ISA PnP devices using ACPI namespace. - Detection of PCI root busses using ACPI namespace. - CPU throttling and sleep states (incomplete) - Thermal monitoring and cooling control (incomplete) - Interface to platform embedded controllers (mostly complete) - ACPI timer (incomplete) - Simple userland control of sleep states. - Shutdown and poweroff.
OpenPOWER on IntegriCloud