summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpireg.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pack the SPCR struct definition since the struct isn't naturally alignedpatrick2021-03-231-2/+2
| | | | | | | or padded, and hence e. g. the access to the PCI vendor/device id would be broken. The structs for the other tables all seem to be packed as well. ok kettenis@
* Add the IORT structure for named components. These give us the stream idspatrick2021-03-151-5/+13
| | | | | | | used towards an smmu(4) for non-PCI devices. The references are provided as ASCII printable paths. ok kettenis@
* Fix typo for ATS attribute member in IORT root complex struct.patrick2021-03-101-2/+2
|
* Fix IORT struct for Context and PMU interrupts. I misread bytes with bits.patrick2021-01-231-7/+5
| | | | ok kettenis@
* Add defines for the various ARM SMMU models.patrick2021-01-171-2/+8
| | | | ok kettenis@
* Add IORT structs for ARM SMMU versions 1 and 2.patrick2021-01-151-1/+35
| | | | ok kettenis@
* Split the IORT struct into two, as the current version not only containedpatrick2021-01-151-1/+4
| | | | | | the generic IORT node information but also the Root Complex's attributes. ok kettenis@
* Add IORT id for ARM SMMUv3.patrick2021-01-151-1/+2
| | | | ok kettenis@
* Move IO Remapping Table (IORT) struct defines to the common ACPI headerpatrick2021-01-151-1/+34
| | | | | | so that it can be used by more drivers. ok kettenis@
* Add acpi_ivhd_ext definitions to acpireg.hjordan2020-09-151-2/+21
| | | | ok kettenis@
* Use ACPI information to attach PCI busses like we do on arm64. There are akettenis2019-08-281-1/+2
| | | | | | | | | | | few additional quirks though, and attaching the PCI busses is delayed to replicate the existing code more closely. That may be changed in the future. Also tweak how we handle MSI support and respect to ACPI flag that says we shouldn't attempt to use MSIs. Some fallout is expected. ok patrick@
* Print proper ACPI version number.kettenis2019-06-101-2/+2
| | | | ok mlarkin@
* Add support for multiple PCI segments. Only really implemented for arm64kettenis2018-08-191-4/+8
| | | | | | | for now as amd64/i386 firmware still caters for legacy OSes that only support a single PCI segment. ok patrick@
* Add definitions for SPCR tables.kettenis2018-07-011-1/+30
| | | | ok mlarkin@
* Use <stdint.h> types.kettenis2018-06-291-174/+174
| | | | ok mpi@, jung@, krw@, deraadt@
* On newer machines IPMI attaches only using the ACPI tables instead ofpatrick2018-03-141-1/+2
| | | | | | | | | | | the SMBIOS table. Some machines even have IPMI defined in both tables. This attachment driver makes ipmi(4) available via ACPI. There can only attach one ipmi(4) device, either on ACPI or SMBIOS. Akin to the SMBIOS-attached ipmi(4) this driver is disabled by default. Feedback from jsg@ ok deraadt@
* try to attach acpisbs first and if successful, don't attach acpibatjcs2017-03-121-3/+3
|
* move vendor HIDs into their drivers, clean up some unused definesjcs2017-02-251-19/+1
| | | | ok kettenis
* attach acpithinkpad to LEN0268 HID found on newer thinkpadsjcs2017-02-251-1/+2
|
* Rename apic_proc_uid field to acpi_proc_uid in the acpi_madt_x2apic struct.kettenis2016-07-101-2/+2
| | | | | | It is the ACPI processor UID that is stored here. ok guenther@
* Add defines for Operation Region Address Space Identifiers and use them whenkettenis2016-05-071-1/+14
| | | | | | acpiec(4) calls the _REG method. ok mlarkin@
* Attach dwiic(4) on the Intel Bay Trail i2c controllers as well.kettenis2016-01-141-1/+2
|
* Improve emulation of PM registers on Hardware-redcued ACPI by emulatingkettenis2016-01-121-1/+3
| | | | | | | | SPL_TYPx, SLP_EN and WAK_STS using the new SLEEP_STATUS_REG and SLEEP_CONTROL_REG registers. Makes the transition into S5 (powerdown) work on the ASUS X205TA. ok deraadt@, mlarkin@
* Add dwiic, a driver for the Synopsys DesignWare i2c controller foundjcs2016-01-121-1/+9
| | | | | | | | | | | | | on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt
* Add HW_REDUCED_ACPI and LOW_POWER_S0_IDLE_CAPABLE FADT flags.kettenis2016-01-091-1/+3
|
* Define a new wscons mouse type for Synaptics clickpad devices that lackjsg2015-01-151-1/+2
| | | | | | | | | | physical buttons. This will be used if the acpi pnpid for the mouse matches a list provided by Synaptics found in Linux. Combined with the xenocara changes this will remove the need for an xorg config file for the x240/t440/t540 generation of thinkpads. ok matthieu@ shadchin@ kettenis@
* Add support for Power Resources for Dx states and the necessary hookmpi2013-11-061-1/+9
| | | | | | | | | | | | | | | | for PCI devices. This hook should be called twice, before and after changing the power state of a PCI device. Before setting the device to the new state, the ACPI layer will notify every power resources linked to the device for that state and make sure they are turned "_ON". After changing the state of the device, it will decrement the reference of every power resources linked to that device for the old state and turn them "_OFF" if they are no longer referenced. This fixes the no-USB after resume problem seen on various ThinkPad, problem initialy diagnosed with Alexander Polakov. ok kettenis@, deraadt@
* Disable acpivideo(4) on ASUS laptops.pirofti2012-07-131-1/+2
| | | | | | | | There are some models that panic whenever an event is received. Some cope, some don't. In order to get this right acpiec(4) requires major rework. Until then let machines boot. Discussed with deraadt@.
* Add X2APIC-related definitions for the MADT and silently skip them insteadkettenis2012-01-071-1/+23
| | | | of printing a warning.
* Import acpitoshiba driver.pirofti2011-06-161-1/+4
| | | | | | | | This is originally written by Hiroyuki Aizu, ported and integrated in our tree by Javier Vazquez <javama4 AT gmail> with tweaks and suggestions by me. Import prodded by deraadt@ and the lack of testers on tech@.
* attach acpithinkpad to newer lenovo models like the x120ejcs2011-04-271-2/+3
| | | | ok deraadt@
* Add support for Memory Mapped Configuration space access. This gives uskettenis2011-01-041-1/+12
| | | | | access to PCIe extended configuration space access on modern i386 and amd64 machines.
* spacing and indents that are driving me crazyderaadt2010-07-211-13/+13
|
* Add support for mapping ACPI to PCI devicesjordan2010-06-291-1/+3
| | | | ok kettenis, deraadt
* KNFjordan2010-06-281-17/+9
|
* Add definitions for Intel/AMD IOMMU ACPI tablesjordan2010-06-281-1/+211
|
* Clear ACPI fixed event status on resume (power buttons/etc) so that somemlarkin2010-06-271-1/+6
| | | | | | machines don't immediately resume after suspending to S3. Tested by kettenis@ and I on 5 or 6 machines, deraadt@ "yeah, looks good"
* New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitoring,cnst2009-07-231-1/+2
| | | | | | | | with sensor state support through limits provided by the ACPI. Tested on several ASUS motherboards kindly networked by Sam Fourman Jr. ok deraadt marco jordan
* Add PnP ID for PCIe host bridge.kettenis2009-04-111-1/+2
|
* suspend/resume bits so that we can develop this in tree. This is disabled.marco2009-02-191-2/+9
| | | | | | code from mlarkin and me help from art,toby,jordan and several others ok jordan, go for it deraadt
* Thinkpad -> ThinkPadsobrado2008-06-241-2/+2
|
* add acpithinkpad(4), an acpi support driver for ibm/lenovojcs2008-04-271-1/+2
| | | | | | | | | | thinkpads. provides functionality that the bios did on older, non-acpi thinkpads like respond to screen brightness keys and toggle the bluetooth device on and off. ok deraadt@ and marco@
* Introduce acpiasus(4), a driver for the ACPI based hotkeys found in manyjsing2008-04-241-1/+2
| | | | | | | | ASUS laptops (including the ASUS EeePC) - largely based on NetBSD's asus(4) driver. On the ASUS EeePC this allows us to enable/disable wireless, change screen brightness and use the volume keys. ok jsg@, weingart@
* Fix a typo to clean M's out of my tree.mk2006-12-121-2/+2
|
* Fix typo. Found by: Janek Richter <janek at openbug dot org>marco2006-10-121-2/+2
|
* add a few more ACPI device ids, as found on a Acer Aspire 1360.brad2006-10-101-1/+8
| | | | | From Maxim Bourmistrov <maxim at student dot chalmers dot se> via marco@, ok marco@
* Added support for read/write of PCI Config spacejordan2006-01-191-1/+10
| | | | | Help jason@ ok marco@
* Two helper macros for setting SLP_TYPx values.grange2006-01-061-1/+3
|
* Provide symbolic names for the acpi sleeping states and use it.grange2006-01-051-1/+11
|
* Cleaned up common power management register i/ojordan2005-12-161-15/+1
| | | | | | Added enter sleep state ioctl Hooked power button interrupt ok marco@