def AcpiExample.host

bend-osdev-acpi@0.1.1.0 · example.bend:263

import bend-osdev-acpi@0.1.1.0/example.bend as Example
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs

263# the host the DSDT runs against: the LPC bridge's PIRQ registers (PCI
264# config space of device 0x1F, from offset 0x60: PIRQA routed to IRQ 11,
265# PIRQB disabled) and the EC's temperature byte (offset 0x10: 30 degrees)
266def AcpiExample.host() -> Hs.AmlMemHost:
267  +pci = Hs.AmlMemHost.poke(Hs.AmlMemHost.new(), 2, W.W64.add(Hs.AmlPci.address(0, 0, 31, 0, 0), W.W64.from_u32(96)), B.Octets.of_list([11, 128, 10, 5]))
268  Hs.AmlMemHost.poke(pci, 3, W.W64.from_u32(16), B.Octets.of_list([30]))

Uses (8)

Used by (1)