Flashrom patched for compiling with libpayload while still being able to compile with libpciutil; uses coreboot styled pci function names found in libpayload.
Signed-off-by: Sean Nelson snelson@nmt.edu
---
I've converted flashrom to use coreboot's pci style function naming. flash.h holds majority of code to translate pci functions to use libpciutil, and add additional code/functions need in libpayload. I tried to make minimal structural changes. I'd suggest someone re-implement or structure this patch into something more beautiful, and put in additional work with the Makefile. Maybe move some of the libpayload functions found in flash.h into libpayload.