eepro100 has to jump through hoops to add capability at a specific offset. It's cleaner to simply add an API for that.
Michael S. Tsirkin (2): pci: add API to add capability at a known offset eepro100: convert to new capability API hw/eepro100.c | 22 +++++++++------------- hw/pci.c | 16 ++++++++++++---- hw/pci.h | 2 ++ 3 files changed, 23 insertions(+), 17 deletions(-)