dev: refactor pci config space for sysfs scanning
authorGeoffrey Blake <Geoffrey.Blake@arm.com>
Thu, 16 Oct 2014 09:49:57 +0000 (05:49 -0400)
committerGeoffrey Blake <Geoffrey.Blake@arm.com>
Thu, 16 Oct 2014 09:49:57 +0000 (05:49 -0400)
commit2d2006ddb3df926d79d0d744af81e8260f5c466c
treea6ac888662a8f0b1c90827f22c3abd260cba289c
parentd6732895a5c2e81da47ada339b5d9269c02e5e8b
dev: refactor pci config space for sysfs scanning

Sysfs on ubuntu scrapes the entire PCI config space
when it discovers a device using 4 byte accesses.
This was not supported by our devices, in particular the NIC
that implemented the extended PCI config space.  This change
allows the extended PCI config space to be accessed by
sysfs properly.
src/dev/pcidev.cc
src/dev/pcidev.hh
src/dev/pcireg.h