mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Add opaque programmer registration infrastructure
An opaque programmer does not allow direct flash access and only offers abstract probe/read/erase/write methods. Due to that, opaque programmers need their own infrastructure and registration framework. Corresponding to flashrom svn r1459. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
6
print.c
6
print.c
@ -32,13 +32,11 @@
|
||||
char *flashbuses_to_text(enum chipbustype bustype)
|
||||
{
|
||||
char *ret = calloc(1, 1);
|
||||
if (bustype == BUS_UNKNOWN) {
|
||||
ret = strcat_realloc(ret, "Unknown, ");
|
||||
/*
|
||||
* FIXME: Once all chipsets and flash chips have been updated, NONSPI
|
||||
* will cease to exist and should be eliminated here as well.
|
||||
*/
|
||||
} else if (bustype == BUS_NONSPI) {
|
||||
if (bustype == BUS_NONSPI) {
|
||||
ret = strcat_realloc(ret, "Non-SPI, ");
|
||||
} else {
|
||||
if (bustype & BUS_PARALLEL)
|
||||
@ -49,6 +47,8 @@ char *flashbuses_to_text(enum chipbustype bustype)
|
||||
ret = strcat_realloc(ret, "FWH, ");
|
||||
if (bustype & BUS_SPI)
|
||||
ret = strcat_realloc(ret, "SPI, ");
|
||||
if (bustype & BUS_PROG)
|
||||
ret = strcat_realloc(ret, "Programmer-specific, ");
|
||||
if (bustype == BUS_NONE)
|
||||
ret = strcat_realloc(ret, "None, ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user