type AmlResource

bend-osdev-acpi@0.1.1.0 · aml_resource.bend:21

import bend-osdev-acpi@0.1.1.0/aml_resource.bend as AmlResource
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B

21type AmlResource is Data:
22  # IRQ: the mask of IRQs 0-15, and the flags byte (0x01 if absent: edge,
23  # active high)
24  AmlRIrq{mask: U32, flags: U32}
25  AmlRDma{mask: U32, flags: U32}
26  # I/O port: decode (1: 16-bit), minimum and maximum base, alignment,
27  # length
28  AmlRIo{decode: U32, min: U32, max: U32, align: U32, len: U32}
29  AmlRFixedIo{base: U32, len: U32}
30  # 32-bit memory: write status (1: writable), minimum and maximum base,
31  # alignment, length
32  AmlRMem32{writable: U32, min: U32, max: U32, align: U32, len: U32}
33  AmlRMem32Fixed{writable: U32, base: U32, len: U32}
34  # an address space descriptor (DWord, Word or QWord: width 32, 16, 64):
35  # resource type (0 memory, 1 I/O, 2 bus number), general flags, type
36  # specific flags, then granularity, minimum, maximum, translation offset
37  # and length, in an address-range record
38  AmlRAddr{width: U32, kind: U32, flags: U32, tflags: U32, range: AmlRange}
39  # extended interrupt: flags (bit 0 consumer, 1 edge, 2 active low,
40  # 3 shared, 4 wake capable) and the interrupt numbers
41  AmlRExtIrq{flags: U32, irqs: List<&2, U32>}
42  AmlROther{tag: U32, data: B.Octets}

Uses (4)

Used by (17)