]> git.ipfire.org Git - thirdparty/pciutils.git/commit
CXL: Code clean-up
authorMartin Mares <mj@ucw.cz>
Sun, 30 Oct 2022 12:23:12 +0000 (13:23 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 30 Oct 2022 12:23:12 +0000 (13:23 +0100)
commit2849db6749c75b465b38efbc603a4cf33076d05a
treed3378e6c4e06610b82cb02e597c2920092039205
parente5eb34c946017291e9c659c224bf0a1646270dad
CXL: Code clean-up

- We now pass capability length and revision to functions
  instead of reading them from config space again and again.

- Centralize fetching of the capability.

- Add checks for overrunning capability length.

- Avoid out-of-bounds reads from the array of register names.

- Sort capability list by ID.
ls-ecaps.c