diff options
Diffstat (limited to 'libhw_generic/include/libhw/generic/spi.h')
-rw-r--r-- | libhw_generic/include/libhw/generic/spi.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libhw_generic/include/libhw/generic/spi.h b/libhw_generic/include/libhw/generic/spi.h index aeeca37..c97232a 100644 --- a/libhw_generic/include/libhw/generic/spi.h +++ b/libhw_generic/include/libhw/generic/spi.h @@ -10,6 +10,7 @@ #include <stddef.h> /* for size_t */ #include <libobj/obj.h> +#include <libhw/generic/io.h> enum spi_mode { SPI_MODE_0 = 0, /* clk_polarity=0 (idle low), clk_phase=0 (sample on rise) */ @@ -18,12 +19,6 @@ enum spi_mode { SPI_MODE_3 = 3, /* clk_polarity=1 (idle high), clk_phase=1 (sample on fall) */ }; -struct bidi_iovec { - void *iov_read_dst; - void *iov_write_src; - size_t iov_len; -}; - /* This API assumes that an SPI frame is a multiple of 8-bits. * * It is my understanding that this is a common constraint of SPI @@ -37,7 +32,7 @@ struct bidi_iovec { * non-multiple-of-8 number of bits. */ #define spi_LO_IFACE \ - LO_FUNC(void, readwritev, const struct bidi_iovec *iov, int iovcnt) + LO_FUNC(void, readwritev, const struct duplex_iovec *iov, int iovcnt) LO_INTERFACE(spi) #endif /* _LIBHW_GENERIC_SPI_H_ */ |