mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
tests: Add init-shutdown test for nicrealtek
This patch adds a test and mocks for two pci functions that nicreltek is using. Main reason for this is to have at least one test for par master (currently there are none), in preparation for a change like CB:56103 but for par masters. BUG=b:181803212 TEST=ninja test Change-Id: Iaed14fe1d83c8eb45ec185ebd3f1c97cb81941f4 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/56470 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
56c82fe623
commit
e0ece4a4bb
@ -37,6 +37,11 @@ typedef struct libusb_device_handle libusb_device_handle;
|
||||
struct libusb_context;
|
||||
typedef struct libusb_context libusb_context;
|
||||
|
||||
/* Define struct pci_dev to avoid dependency on pci.h */
|
||||
struct pci_dev {
|
||||
unsigned int device_id;
|
||||
};
|
||||
|
||||
struct io_mock {
|
||||
void *state;
|
||||
|
||||
|
Reference in New Issue
Block a user