1 /* $FreeBSD$ */ 2 3 struct spi_command { 4 int cs; 5 void *tx_cmd; 6 uint32_t tx_cmd_sz; 7 void *rx_cmd; 8 uint32_t rx_cmd_sz; 9 void *tx_data; 10 uint32_t tx_data_sz; 11 void *rx_data; 12 uint32_t rx_data_sz; 13 }; 14 15 #define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */ 16