summaryrefslogtreecommitdiffstats
path: root/sys/dev/spibus/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/spibus/spi.h')
-rw-r--r--sys/dev/spibus/spi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/spibus/spi.h b/sys/dev/spibus/spi.h
index 663f5ff..4f89e94 100644
--- a/sys/dev/spibus/spi.h
+++ b/sys/dev/spibus/spi.h
@@ -1,6 +1,7 @@
/* $FreeBSD$ */
struct spi_command {
+ int cs;
void *tx_cmd;
uint32_t tx_cmd_sz;
void *rx_cmd;
@@ -10,3 +11,5 @@ struct spi_command {
void *rx_data;
uint32_t rx_data_sz;
};
+
+#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
OpenPOWER on IntegriCloud