Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | a9750ed | 2021-05-03 14:02:49 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_SPI_H |
| 8 | #define _UAPI_SPI_H |
| 9 | #include <linux/const.h> |
| 10 | #define SPI_CPHA _BITUL(0) |
| 11 | #define SPI_CPOL _BITUL(1) |
| 12 | #define SPI_MODE_0 (0 | 0) |
| 13 | #define SPI_MODE_1 (0 | SPI_CPHA) |
| 14 | #define SPI_MODE_2 (SPI_CPOL | 0) |
| 15 | #define SPI_MODE_3 (SPI_CPOL | SPI_CPHA) |
| 16 | #define SPI_MODE_X_MASK (SPI_CPOL | SPI_CPHA) |
| 17 | #define SPI_CS_HIGH _BITUL(2) |
| 18 | #define SPI_LSB_FIRST _BITUL(3) |
| 19 | #define SPI_3WIRE _BITUL(4) |
| 20 | #define SPI_LOOP _BITUL(5) |
| 21 | #define SPI_NO_CS _BITUL(6) |
| 22 | #define SPI_READY _BITUL(7) |
| 23 | #define SPI_TX_DUAL _BITUL(8) |
| 24 | #define SPI_TX_QUAD _BITUL(9) |
| 25 | #define SPI_RX_DUAL _BITUL(10) |
| 26 | #define SPI_RX_QUAD _BITUL(11) |
| 27 | #define SPI_CS_WORD _BITUL(12) |
| 28 | #define SPI_TX_OCTAL _BITUL(13) |
| 29 | #define SPI_RX_OCTAL _BITUL(14) |
| 30 | #define SPI_3WIRE_HIZ _BITUL(15) |
Christopher Ferris | 80ae69d | 2022-08-02 16:32:21 -0700 | [diff] [blame] | 31 | #define SPI_RX_CPHA_FLIP _BITUL(16) |
Christopher Ferris | 8666d04 | 2023-09-06 14:55:31 -0700 | [diff] [blame] | 32 | #define SPI_MOSI_IDLE_LOW _BITUL(17) |
| 33 | #define SPI_MODE_USER_MASK (_BITUL(18) - 1) |
Christopher Ferris | a9750ed | 2021-05-03 14:02:49 -0700 | [diff] [blame] | 34 | #endif |