Page MenuHomeFreeBSD

Support fixed size, varible location acpi resources
ClosedPublic

Authored by andrew on Jul 8 2021, 3:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 3:59 PM
Unknown Object (File)
Oct 5 2024, 1:30 AM
Unknown Object (File)
Oct 5 2024, 1:28 AM
Unknown Object (File)
Oct 5 2024, 1:26 AM
Unknown Object (File)
Oct 2 2024, 10:39 PM
Unknown Object (File)
Sep 30 2024, 11:33 PM
Unknown Object (File)
Sep 30 2024, 11:07 PM
Unknown Object (File)
Sep 30 2024, 3:53 PM
Subscribers

Details

Summary

These have been found in some Arm ACPI tables generated by edk2, e.g.
when describing the pl011 uart on the Arm AEMv8 model.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew requested review of this revision.Jul 8 2021, 3:42 PM
sys/dev/acpica/acpi_resource.c
430

Typo?

This revision is now accepted and ready to land.Jul 9 2021, 2:21 PM

What devices have these? This looks good

In D31110#700204, @imp wrote:

What devices have these? This looks good

Some of the Arm Models (Simulators) have the following for their uart:

Scope (_SB)
    {
        Device (COM0)
        {
            Name (_UID, Zero)  // _UID: Unique ID
            Name (_HID, "ARMH0011")  // _HID: Hardware ID
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                Return (0x0F)
            }

            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite,
                    0x0000000000000000, // Granularity
                    0x000000001C0B0000, // Range Minimum
                    0x000000001C0B0FFF, // Range Maximum
                    0x0000000000000000, // Translation Offset
                    0x0000000000001000, // Length
                    ,, , AddressRangeMemory, TypeStatic)
                Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
                {
                    0x00000026,
                }
            })
        }
    }