1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00
Files
flashrom/libflashrom.map
Anastasia Klimchuk 18303f193a libflashrom: Add probing v2 which can find all matching chips
Probing v2 can (if requested) go through all flashchips and find
all the matching chip definitions. This is the way cli behaves,
so cli becomes a client of probing v2.

Previously cli and libflashrom had different probing logic, and
different code in different source files.

This patch also adds tests for probing v2.

Testing from the cli:
./flashrom -p dummy:emulate=W25Q128FV -r dump.rom
./flashrom -p dummy:emulate=MX25L6436 -r dump.rom
./flashrom -p dummy:emulate=MX25L6436 -c "MX25L6473E" -r dump.rom
./flashrom -p dummy:emulate=SST25VF032B -E
./flashrom -p dummy:emulate=S25FL128L -r dump.rom
./flashrom -p dummy:emulate=INVALID -r dump.rom
./flashrom -p dummy:emulate=MX25L6436 -c "NONEXISTENT" -r dump.rom

Change-Id: Idfcf377a8071e22028ba98515f08495ed2a6e9f0
Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/87341
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
2025-05-12 09:24:34 +00:00

52 lines
1.4 KiB
Plaintext

LIBFLASHROM_1.0 {
global:
flashrom_data_free;
flashrom_flag_get;
flashrom_flag_set;
flashrom_flash_erase;
flashrom_flash_getsize;
flashrom_flash_probe;
flashrom_flash_probe_v2;
flashrom_flash_release;
flashrom_image_read;
flashrom_image_verify;
flashrom_image_write;
flashrom_init;
flashrom_layout_add_region;
flashrom_layout_exclude_region;
flashrom_layout_get_region_range;
flashrom_layout_include_region;
flashrom_layout_new;
flashrom_layout_read_fmap_from_buffer;
flashrom_layout_read_fmap_from_rom;
flashrom_layout_read_from_ifd;
flashrom_layout_release;
flashrom_layout_set;
flashrom_programmer_init;
flashrom_programmer_shutdown;
flashrom_set_log_callback;
flashrom_set_log_callback_v2;
flashrom_set_log_level;
flashrom_set_progress_callback;
flashrom_set_progress_callback_v2;
flashrom_shutdown;
flashrom_supported_boards;
flashrom_supported_chipsets;
flashrom_supported_flash_chips;
flashrom_supported_programmers;
flashrom_version_info;
flashrom_wp_cfg_new;
flashrom_wp_cfg_release;
flashrom_wp_get_available_ranges;
flashrom_wp_get_mode;
flashrom_wp_get_range;
flashrom_wp_ranges_get_count;
flashrom_wp_ranges_get_range;
flashrom_wp_ranges_release;
flashrom_wp_read_cfg;
flashrom_wp_set_mode;
flashrom_wp_set_range;
flashrom_wp_write_cfg;
local: *;
};