summaryrefslogtreecommitdiffstats
path: root/sys/dev/spibus/spi.h
blob: 4f89e94353c7053b88a4f47e0370b2f97cd63e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* $FreeBSD$ */

struct spi_command {
	int	cs;
	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;
};

#define	SPI_CHIP_SELECT_HIGH	0x1		/* Chip select high (else low) */
OpenPOWER on IntegriCloud