mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Move SPI declarations from flash.h to spi.h
As a consecuence, some of the files that used to include flash.h no longer need to do so. For this reason, flash.h includes are also deleted in this commit. Change-Id: I794a71536a3b85fde39f83c802fa0f5dd8d428e0 Signed-off-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/85539 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: David Reguera Garcia (Dreg) <regueragarciadavid@gmail.com> Reviewed-by: Matti Finder <matti.finder@gmail.com>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
971ea27d16
commit
ce825859c4
@ -16,6 +16,8 @@
|
||||
#ifndef __SPI_H__
|
||||
#define __SPI_H__ 1
|
||||
|
||||
#include "flash.h"
|
||||
|
||||
/*
|
||||
* Contains the generic SPI headers
|
||||
*/
|
||||
@ -235,6 +237,16 @@
|
||||
#define SPI_FLASHROM_BUG -5
|
||||
#define SPI_PROGRAMMER_ERROR -6
|
||||
|
||||
struct spi_command {
|
||||
unsigned int writecnt;
|
||||
unsigned int readcnt;
|
||||
const unsigned char *writearr;
|
||||
unsigned char *readarr;
|
||||
};
|
||||
#define NULL_SPI_CMD { 0, 0, NULL, NULL, }
|
||||
int spi_send_command(const struct flashctx *flash, unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr);
|
||||
int spi_send_multicommand(const struct flashctx *flash, struct spi_command *cmds);
|
||||
|
||||
void clear_spi_id_cache(void);
|
||||
|
||||
#endif /* !__SPI_H__ */
|
||||
|
Reference in New Issue
Block a user