mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
tree: Fix drivers to pass programmer_cfg to pcidev_init()
Allow for programmer_cfg plumbing in pcidev.c The pci drivers impacted are plumbed here as well. Change-Id: Ie0c9d1c0866d44f64d037c596f2e30547fcfd58f Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66671 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:

committed by
Edward O'Callaghan

parent
ea938173a4
commit
5d63d3f884
@ -52,7 +52,7 @@ struct pci_dev mock_pci_dev = {
|
||||
.device_id = NON_ZERO,
|
||||
};
|
||||
|
||||
struct pci_dev *__wrap_pcidev_init(void *devs, int bar)
|
||||
struct pci_dev *__wrap_pcidev_init(const struct programmer_cfg *cfg, void *devs, int bar)
|
||||
{
|
||||
LOG_ME;
|
||||
return &mock_pci_dev;
|
||||
|
@ -19,10 +19,12 @@
|
||||
#include <stdio.h>
|
||||
#include "flash.h"
|
||||
|
||||
struct programmer_cfg; /* defined in programmer.h */
|
||||
|
||||
char *__wrap_strdup(const char *s);
|
||||
void __wrap_physunmap(void *virt_addr, size_t len);
|
||||
void *__wrap_physmap(const char *descr, uintptr_t phys_addr, size_t len);
|
||||
struct pci_dev *__wrap_pcidev_init(void *devs, int bar);
|
||||
struct pci_dev *__wrap_pcidev_init(const struct programmer_cfg *cfg, void *devs, int bar);
|
||||
uintptr_t __wrap_pcidev_readbar(void *dev, int bar);
|
||||
void __wrap_sio_write(uint16_t port, uint8_t reg, uint8_t data);
|
||||
uint8_t __wrap_sio_read(uint16_t port, uint8_t reg);
|
||||
|
Reference in New Issue
Block a user