Added generic SPI protocol handler with read and write support.

This commit is contained in:
Michael Brown
2006-12-04 18:32:55 +00:00
parent 946967f09c
commit 1961ba44e1
2 changed files with 127 additions and 0 deletions

View File

@@ -188,4 +188,9 @@ struct spi_bus {
*/
#define SPI_MODE_THREEWIRE ( SPI_MODE_MICROWIRE_PLUS | SPI_MODE_SSPOL )
extern int spi_read ( struct nvs_device *nvs, unsigned int address,
void *data, size_t len );
extern int spi_write ( struct nvs_device *nvs, unsigned int address,
const void *data, size_t len );
#endif /* _GPXE_SPI_H */