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)
Feb 21 2024, 6:02 AM
Unknown Object (File)
Feb 18 2024, 2:29 PM
Unknown Object (File)
Dec 23 2023, 9:10 AM
Unknown Object (File)
Dec 20 2023, 3:54 AM
Unknown Object (File)
Dec 16 2023, 5:45 AM
Unknown Object (File)
Dec 14 2023, 10:35 PM
Unknown Object (File)
Oct 14 2023, 8:12 AM
Unknown Object (File)
Sep 15 2023, 10:32 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,
                }
            })
        }
    }