SPI_IOC_MAGIC 107 include/linux/spi/spidev.h #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)]) SPI_IOC_MAGIC 111 include/linux/spi/spidev.h #define SPI_IOC_RD_MODE _IOR(SPI_IOC_MAGIC, 1, __u8) SPI_IOC_MAGIC 112 include/linux/spi/spidev.h #define SPI_IOC_WR_MODE _IOW(SPI_IOC_MAGIC, 1, __u8) SPI_IOC_MAGIC 115 include/linux/spi/spidev.h #define SPI_IOC_RD_LSB_FIRST _IOR(SPI_IOC_MAGIC, 2, __u8) SPI_IOC_MAGIC 116 include/linux/spi/spidev.h #define SPI_IOC_WR_LSB_FIRST _IOW(SPI_IOC_MAGIC, 2, __u8) SPI_IOC_MAGIC 119 include/linux/spi/spidev.h #define SPI_IOC_RD_BITS_PER_WORD _IOR(SPI_IOC_MAGIC, 3, __u8) SPI_IOC_MAGIC 120 include/linux/spi/spidev.h #define SPI_IOC_WR_BITS_PER_WORD _IOW(SPI_IOC_MAGIC, 3, __u8) SPI_IOC_MAGIC 123 include/linux/spi/spidev.h #define SPI_IOC_RD_MAX_SPEED_HZ _IOR(SPI_IOC_MAGIC, 4, __u32) SPI_IOC_MAGIC 124 include/linux/spi/spidev.h #define SPI_IOC_WR_MAX_SPEED_HZ _IOW(SPI_IOC_MAGIC, 4, __u32)