summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2018-10-26Add acpipci(4) on amd64. For now this only calls the PCI-specific _OSCMark Kettenis
method to let the ACPI implementation know what features we support.
2018-09-19Delete checks of the CST bit_width ('vendor') field, as new Ryzen machinesPhilip Guenther
are showing up with vendor 2 and it doesn't seem to mean anything: Linux doesn't check it at all, so this exhibits all the normal ACPI spec lossage tested in snaps for a few weeks shrug kettenis@
2018-08-30Move softbutton check before the check that skips attaching certain acpiMark Kettenis
devices. Fixes regression caused by matching on _CID in addition to matching on _HID. ok matthieu@, mlarkin@
2018-08-25Match ACPI devices based on _CID if no match for _HID is found.Mark Kettenis
ok mpi@
2018-08-19Add support for multiple PCI segments. Only really implemented for arm64Mark Kettenis
for now as amd64/i386 firmware still caters for legacy OSes that only support a single PCI segment. ok patrick@
2018-08-11Match "ARMH0011".Mark Kettenis
2018-08-03Let ahci(4) match on _CLS instead of _HID when attaching at acpi(4). AvoidsMark Kettenis
having to add many more _HID entries to the match table. ok deraadt@, mlarkin@
2018-07-10Make legacy interrupts work in acpipci(4).Mark Kettenis
ok patrick@
2018-07-05Add acpipci(4), a driver that supports generic ECAM-compatible PCI hostMark Kettenis
bridges based on information provided by ACPI. ok mlarkin@
2018-07-04Properly pass around the PCI "chipset tag" in acpi(4) and refactorMark Kettenis
acpimcfg(4) to call an MD initialization functions that sets up a tag for PCI ECAM. ok guenther@, mlarkin@, krw@
2018-07-02Allow pluart(4) to attach to acpi(4).Mark Kettenis
ok mlarkin@, patrick@
2018-07-02Allow xhci(4) to attach to acpi(4).Mark Kettenis
ok dlg@, patrick@, mpi@
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
ok millert, kettenis, jcs, phessler, deraadt, mpi
2018-07-01Allow ahci(4) to attach to acpi(4).Mark Kettenis
ok deraadt@
2018-07-01Move acpi(4) attach glue into acpi_machdep.c.Mark Kettenis
ok guenther@, deraadt@
2018-07-01Remove semicolon before printing the AML name.Mark Kettenis
spotted by deraadt@
2018-07-01Allow com(4) to attach to acpi(4). For now we will only use this on arm64Mark Kettenis
where this is needed to support serial console in ACPI mode. ok mlarkin@
2018-07-01Add support for _DSD Device Properties.Mark Kettenis
ok mlarkin@
2018-07-01Add definitions for SPCR tables.Mark Kettenis
ok mlarkin@
2018-06-30Typo in comment in previous file which I said I'd address in the originalMike Larkin
commit and forgot to do. (Sufrace -> Surface)
2018-06-30acpisurface(4): driver for Surface Pro 4 and Surface Book hardwareMike Larkin
buttons. ok phessler, deraadt, kettenis
2018-06-30Add intr_enable() function, intended for MI use to amd64 and i386 and useMark Kettenis
this in the acpi(4) suspend/resume code paths. ok deraadt@
2018-06-29Use <stdint.h> types.Mark Kettenis
ok mpi@, jung@, krw@, deraadt@
2018-06-29ACPI: Allow (with warning) GPE handler reassignment, instead of returningMike Larkin
a failure code. ok kettenis
2018-06-26knfMike Larkin
2018-06-26Let acpi(4) pass down the bus dma tag.Mark Kettenis
ok deraadt@
2018-06-25Reorganize acpi(4) code a bit in preparation for upcoming arm64 support.Mark Kettenis
ok deraadt@
2018-06-24If ACPI tables are present, set a global variable to point at theirMark Kettenis
(physical) address such that acpidump(8) can read it and dump the tables on arm64 systems. ok deraadt@
2018-06-12Don't panic on I/O to unregistered regionspaces. Needed to unbreak the GPDMike Larkin
pocket which has a questionable BIOS. The code will now simply printf and return to the caller without doing any I/O in this case. The spec defines this to be undefined behaviour anyway. ok kettenis, deraadt, pirofti
2018-05-23Print a message if AML attempts to access a part of the Operation RegionMark Kettenis
that we haven't implemented yet.
2018-05-22Call acpi_attach_deps() for the child devices before attempting to powerMark Kettenis
them on. Prevents a panic on the AZW Z83-S that is somewhat buggy and checks whether the GPO3 controller is available and then pokes a pin on GPO2. It shouldn't do that but we should make sure all the devices that it depends on attach first anyway. ok patrick@
2018-05-22acpithinkpad(4): add port replicator indicator sensorMike Larkin
Note: the sensor will report state UNKNOWN until at least one port replicator event (docked / undocked) is received. Diff from Tobias Tschinkowitz, thanks. ok stsp@. deraadt@ also ok'ed an earlier version of the diff
2018-05-21Implement GPIO functionality.Mark Kettenis
2018-05-21Add ccpmic(4), a driver for the "Intel" Crystal Cove PMIC. This is actuallyMark Kettenis
a ROHM part (BD2613GW) and once more the datasheet is only available under NDA. Disabled for now until bugs in dwiic(4) are fixed.
2018-05-21Implement power management Operation Region support.Mark Kettenis
2018-05-21Put controllers and child devices in D0 by calling _PS0 when we attach theMark Kettenis
controller. Some BIOSen deliver them to us in D3. Override card detect if ACPI says that the child devices are non-removable. ok mlarkin@
2018-05-21Pass interrupt description along as well.Mark Kettenis
ok mlarkin@
2018-05-20Add tipmic(4), a driver for the "Intel" Dollar Cove TI PMIC. This is actuallyMark Kettenis
a TI part (SND9039) but the datasheet is only available under NDA because it contains "Intel proprietary information". Initial implementation handles the thermal sensors, providing data to acpi(4) which is used by acpitz(4). Power management functionality will be added later. Disabled for now until some bugs in dwiic(4) are fixed.
2018-05-20Pass the acpi node corresponding to the i2c device down as the cookie.Mark Kettenis
ok mlarkin@
2018-05-20Wake up the acpi thread after scheduling a gpio event.Mark Kettenis
ok mpi@
2018-05-19Fix GenericSerialBus support by parsing ExtendedAccessField correctly.Mark Kettenis
ok mlarkin@
2018-05-18This needs some #ifndef SMALL_KERNEL as well. Fixes RAMDISK_CD.Mark Kettenis
2018-05-17Sprinkle some #ifndef SMALL_KERNEL such that RAMDISK kernels cuild again.Mark Kettenis
pointed out by stsp@
2018-05-17Implement GenericSerialBus OpRegion support.Mark Kettenis
ok mlarkin@
2018-05-17Implement LoadTable().Mark Kettenis
ok mlarkin@
2018-04-30Use acpi_register_gpio() to register gpio space like we do for chvgpio(4).Mark Kettenis
ok mpi@
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
2018-04-05typo in printf - was _PRO, should be _PR0Mike Larkin
ok kettenis
2018-03-27Add acpicmos(4), a driver that implements SystemCMOS OperationRegionMark Kettenis
access support. This fixes machines where the AML doesn't check whether support for this OperationRegion type has been registered by the OS. ok mlarkin@
2018-03-14On newer machines IPMI attaches only using the ACPI tables instead ofPatrick Wildt
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@