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