linux/include/uapi/linux/spi/spi.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
#ifndef _UAPI_SPI_H
#define _UAPI_SPI_H

#include <linux/const.h>

#define SPI_CPHA
#define SPI_CPOL

#define SPI_MODE_0
#define SPI_MODE_1
#define SPI_MODE_2
#define SPI_MODE_3
#define SPI_MODE_X_MASK

#define SPI_CS_HIGH
#define SPI_LSB_FIRST
#define SPI_3WIRE
#define SPI_LOOP
#define SPI_NO_CS
#define SPI_READY
#define SPI_TX_DUAL
#define SPI_TX_QUAD
#define SPI_RX_DUAL
#define SPI_RX_QUAD
#define SPI_CS_WORD
#define SPI_TX_OCTAL
#define SPI_RX_OCTAL
#define SPI_3WIRE_HIZ
#define SPI_RX_CPHA_FLIP
#define SPI_MOSI_IDLE_LOW

/*
 * All the bits defined above should be covered by SPI_MODE_USER_MASK.
 * The SPI_MODE_USER_MASK has the SPI_MODE_KERNEL_MASK counterpart in
 * 'include/linux/spi/spi.h'. The bits defined here are from bit 0 upwards
 * while in SPI_MODE_KERNEL_MASK they are from the other end downwards.
 * These bits must not overlap. A static assert check should make sure of that.
 * If adding extra bits, make sure to increase the bit index below as well.
 */
#define SPI_MODE_USER_MASK

#endif /* _UAPI_SPI_H */