diff options
| author | Michael Brown | 2006-12-04 19:32:55 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-04 19:32:55 +0100 |
| commit | 1961ba44e18a9691c60abed0cde8c7e0fe862f62 (patch) | |
| tree | 756f2b2aa4d6a672c632d3c7aa2f304b5ec8c40d /src/include/gpxe | |
| parent | Abstracted out part of the concept of an SPI device to a generalised NVS (diff) | |
| download | ipxe-1961ba44e18a9691c60abed0cde8c7e0fe862f62.tar.gz ipxe-1961ba44e18a9691c60abed0cde8c7e0fe862f62.tar.xz ipxe-1961ba44e18a9691c60abed0cde8c7e0fe862f62.zip | |
Added generic SPI protocol handler with read and write support.
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/spi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gpxe/spi.h b/src/include/gpxe/spi.h index bf60efc23..beda2bcd6 100644 --- a/src/include/gpxe/spi.h +++ b/src/include/gpxe/spi.h @@ -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 */ |
