~/bend-docscommunity

hpet.bend checks

raw source on the hub · import bend-osdev-acpi@0.1.2.0/hpet.bend as Hpet

bend-osdev-acpi, hpet.bend: the HPET Description Table, "HPET" (IA-PC HPET (High Precision Event Timers) Specification, revision 1.0a, Intel, 2004, section 3.2.4; its signature is reserved by ACPI 6.5, section 5.2.6), 56 bytes:

offset size field 36 4 Event Timer Block ID: bits 0-7 hardware revision, 8-12 number of comparators in the first block minus one, 13 COUNT_SIZE_CAP (64-bit counter), 15 legacy replacement IRQ routing capable, 16-31 PCI vendor ID 40 12 Base Address (a Generic Address Structure, gas.bend) 52 1 HPET Number 53 2 Main Counter Minimum Clock Tick in Periodic Mode 55 1 Page Protection and OEM Attribute

7 imports
import Base
import bend-osdev-word64@0.1.1.1/word64.bend as W
import bend-osdev-bytes@0.1.1.1/bytes.bend as B
import ./error.bend as E
import ./header.bend as H
import ./fields.bend as F
import ./gas.bend as G

Types

type AcpiHpet source · line 23 · raw

Data

Definitions

def hpet.read source · line 26 · raw

@ok:Bool -> @+h:0x437a65a35fd0c02411bea19819f9b33f/header.AcpiHeader -> @+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiHpet>

def AcpiHpet.of_sdt source · line 33 · raw

@t:0x437a65a35fd0c02411bea19819f9b33f/header.AcpiSdt -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiHpet>

def hpet.parse source · line 39 · raw

@r:Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, 0x437a65a35fd0c02411bea19819f9b33f/header.AcpiSdt> -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiHpet>

def AcpiHpet.parse source · line 46 · raw

@+o:0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets -> Result<&2, &2, 0x437a65a35fd0c02411bea19819f9b33f/error.AcpiError, AcpiHpet>

def AcpiHpet.block_id source · line 49 · raw

@t:AcpiHpet -> U32

def AcpiHpet.base source · line 54 · raw

@t:AcpiHpet -> 0x437a65a35fd0c02411bea19819f9b33f/gas.AcpiGas

def AcpiHpet.vendor_id source · line 60 · raw

@t:AcpiHpet -> U32

the fields of the Event Timer Block ID

def AcpiHpet.comparators source · line 63 · raw

@t:AcpiHpet -> U32

def AcpiHpet.counter_64 source · line 66 · raw

@t:AcpiHpet -> Bool

def AcpiHpet.legacy_capable source · line 69 · raw

@t:AcpiHpet -> Bool

def AcpiHpet.build source · line 72 · raw

@t:AcpiHpet -> 0x15cc157649e26d54c7c549cb80d4a2a9/bytes.Octets