19a795dfaSWarner Losh /* $FreeBSD$ */ 29a795dfaSWarner Losh 39a795dfaSWarner Losh struct spi_command { 4*cc906398SWarner Losh int cs; 59a795dfaSWarner Losh void *tx_cmd; 69a795dfaSWarner Losh uint32_t tx_cmd_sz; 79a795dfaSWarner Losh void *rx_cmd; 89a795dfaSWarner Losh uint32_t rx_cmd_sz; 99a795dfaSWarner Losh void *tx_data; 109a795dfaSWarner Losh uint32_t tx_data_sz; 119a795dfaSWarner Losh void *rx_data; 129a795dfaSWarner Losh uint32_t rx_data_sz; 139a795dfaSWarner Losh }; 14*cc906398SWarner Losh 15*cc906398SWarner Losh #define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */ 16