Page MenuHomeFreeBSD

devinfo: Distinguish resources owned by unnamed devices from free resources
AcceptedPublic

Authored by jhb on Sat, Jan 25, 3:52 AM.

Details

Reviewers
imp
jrtc27
Summary

For resources owned by an unnamed device, list the device name as
"(unknown)" instead of using "----". In addition, if the -v flag is
given, output the pnpinfo and location info for the device if present.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62019
Build 58903: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sat, Jan 25, 3:52 AM
jhb created this revision.

Compared to the output from the previous review, the changed lines for devinfo -uv are:

I/O ports:
...
    0x20-0x21 (unknown) pnpinfo _HID=PNP0000 _UID=0 _CID=none at handle=\_SB_.PC00.ISA_.PIC_
...
    0xa0-0xa1 (unknown) pnpinfo _HID=PNP0000 _UID=0 _CID=none at handle=\_SB_.PC00.ISA_.PIC_

Without -v you just get (unknown). This seems useful to me though when looking at these ranges.

These are reserved resources, btw, that probably wasn't a thing that existed when devinfo(8) was written.

Yea, our ACPI impl has always been a bit weird when it comes to reserved ranges of things... The more insight we have into these devices, the better.

This revision is now accepted and ready to land.Sun, Jan 26, 12:57 AM