[flashrom] [PATCH RFC] Access PCI BARs through sysfs

Patrick Georgi pgeorgi at google.com
Thu Feb 26 13:10:38 CET 2015


2015-02-26 1:57 GMT+01:00 Ed Swierk <eswierk at skyportsystems.com>:
> Running flashrom on a Linux system with CONFIG_STRICT_DEVMEM=y, I can now
> successfully program the SPI flash on an Intel 10G NIC using the

> +#if !defined(__DJGPP__) && !defined(__LIBPAYLOAD__)
> +static void *pcidev_mapbar_sysfs(struct pci_dev *dev, const char *descr, int bar, off_t offset, size_t length)
Isn't that actually Linux specific, instead of non-djgpp-or-libpayload specific?


Patrick
-- 
Google Germany GmbH
ABC-Str. 19
20354 Hamburg

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores




More information about the flashrom mailing list