apps/netcfg: show Broadcom for vendor id 14E4 #708

Merged
Burer merged 1 commits from igorsh/kolibrios:bcm57xx into bcm57xx 2026-09-20 09:45:11 +00:00
1 Commits
Author SHA1 Message Date
Igor Shutrov 778655cebf netcfg: show Broadcom for vendor id 14E4
The Company column is looked up in VendorsTab by PCI vendor id with a
linear scan, and the scan's terminator carries the fallback string, so an
id that is missing from the table prints the terminator's 'Unknown'. The
table had 0x166D (a different Broadcom id) but not 0x14E4, which is what
the NetXtreme 57xx parts report, so netcfg showed no vendor for the card
the bcm57xx driver drives.

Add 0x14E4 in the ascending run, with the same wording the 0x166D entry
and programs/testing/pcidev/vendors.inc already use.

Verified by assembling with fasm and walking VendorsTab in the resulting
binary: 31 entries, 0x14E4 resolves to 'Broadcom Corp.', 0x166D and
0x10B7 are unchanged, and ids still absent from the table fall back to
'Unknown' as before.

Assisted-by: ZCode:deepseek-flash
2026-09-20 00:56:10 +05:00