[SeaBIOS] [PATCH 2/4] pci: add foreachcap() helper