2006-07-17 21:18:03 +00:00
|
|
|
/* $FreeBSD$ */
|
2006-07-14 22:47:07 +00:00
|
|
|
|
|
|
|
struct spi_command {
|
2012-08-01 01:18:36 +00:00
|
|
|
int cs;
|
2006-07-14 22:47:07 +00:00
|
|
|
void *tx_cmd;
|
|
|
|
uint32_t tx_cmd_sz;
|
|
|
|
void *rx_cmd;
|
|
|
|
uint32_t rx_cmd_sz;
|
|
|
|
void *tx_data;
|
|
|
|
uint32_t tx_data_sz;
|
|
|
|
void *rx_data;
|
|
|
|
uint32_t rx_data_sz;
|
|
|
|
};
|
2012-08-01 01:18:36 +00:00
|
|
|
|
|
|
|
#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
|